it.sistematica.isharedoc.action.dms
Class FileAction
java.lang.Object
it.sistematica.isharedoc.action.BaseAction
it.sistematica.isharedoc.action.dms.FileAction
- All Implemented Interfaces:
- org.apache.struts2.interceptor.ParameterAware, org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.SessionAware
@Controller(value="dmsFileAction")
@Secured(value={"family:isharedoc.file","function:.view"})
public class FileAction
- extends BaseAction
Methods inherited from class it.sistematica.isharedoc.action.BaseAction |
dateFormat, escapeHTML, escapeJavascript, escapeXml, execute, getCancelMessage, getExceptionStack, getFileId, getFileName, getJsonResult, getParameters, getRedirectURL, getRequestId, getResultCode, getResultMessage, getSearch, getServletRequest, getSession, getTaskLink, prepareCloudFile, prepareEntity, prepareEntity, prepareEntityUsingString, prepareEntityUsingString, prepareExport, prepareExport, setFileId, setParameters, setServletRequest, setSession, trimToLength, trimToLength, unescapeHTML, unescapeJavascript, unescapeXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userInfo
it.neverworks.application.service.UserInfo userInfo
partitionService
PartitionService partitionService
documentManager
DocumentManager documentManager
cloudManager
CloudManager cloudManager
indexService
IndexService indexService
organizationService
OrganizationService organizationService
temporaryFileService
it.neverworks.application.service.TemporaryFileService temporaryFileService
replicaService
ReplicaService replicaService
avalaibleAttributes
public java.util.List<FileClassAttribute> avalaibleAttributes
FileAction
public FileAction()
detailDialog
public java.lang.String detailDialog()
detailTooltip
public java.lang.String detailTooltip()
fileDetailPanel
public java.lang.String fileDetailPanel()
filePermissionDialog
public java.lang.String filePermissionDialog()
permissions
public java.lang.String permissions()
searchDialog
public java.lang.String searchDialog()
fileRestoreDialog
public java.lang.String fileRestoreDialog()
permissionDetail
public java.lang.String permissionDetail()
linkedPanel
public java.lang.String linkedPanel()
createLinkDialog
public java.lang.String createLinkDialog()
moveFileDialog
public java.lang.String moveFileDialog()
pathPanel
public java.lang.String pathPanel()
getPermission
public FilePermission getPermission()
getDestinationClasses
public java.util.List<FileClass> getDestinationClasses()
setDestinationClasses
public void setDestinationClasses(java.util.List<FileClass> destinationClasses)
prepare
public void prepare()
prepareMoveFile
public void prepareMoveFile()
throws java.lang.Exception
- Throws:
java.lang.Exception
prepareRestore
public void prepareRestore()
throws java.lang.Exception
- Throws:
java.lang.Exception
prepareCloneTree
public void prepareCloneTree()
throws java.lang.Exception
- Throws:
java.lang.Exception
prepareCreateLink
public void prepareCreateLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
setFolderClonedName
public void setFolderClonedName(java.lang.String folderClonedName)
getCloudSession
public CloudSession getCloudSession()
getCloudFile
public CloudFile getCloudFile()
getCloudFileOriginal
public CloudFile getCloudFileOriginal()
getCloudFolderTarget
public CloudFolder getCloudFolderTarget()
linkedFiles
public java.lang.String linkedFiles()
parentFiles
public java.lang.String parentFiles()
attributesDialog
public java.lang.String attributesDialog()
getAvalaibleAttributes
public java.util.List<FileClassAttribute> getAvalaibleAttributes()
manageAttributes
public void manageAttributes(boolean isCreating)
saveNew
@Transactional
@Secured(value="function:.edit")
public java.lang.String saveNew()
throws java.lang.Exception
- Throws:
java.lang.Exception
save
@Secured(value="function:.edit")
@Transactional
public java.lang.String save()
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
addClass
@Transactional
@Secured(value="function:.edit")
public java.lang.String addClass()
removeClass
@Transactional
@Secured(value="function:.edit")
public java.lang.String removeClass()
cleanTrash
@Secured(value="function:.edit")
@Transactional
public java.lang.String cleanTrash()
trash
@Secured(value="function:.edit")
public java.lang.String trash()
trash
@Transactional(propagation=REQUIRES_NEW)
public void trash(CloudFile cf)
remove
@Transactional
@Secured(value="function:.edit")
public java.lang.String remove()
recovery
@Transactional
@Secured(value="function:.edit")
public java.lang.String recovery()
cloneTree
@Transactional
@Secured(value="function:.edit")
public java.lang.String cloneTree()
throws java.lang.Exception
- Throws:
java.lang.Exception
createLink
@Transactional
@Secured(value="function:.edit")
public java.lang.String createLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
moveFile
@Secured(value="function:.edit")
public java.lang.String moveFile()
throws java.lang.Exception
- Throws:
java.lang.Exception
move
@Transactional(propagation=REQUIRES_NEW)
public void move(CloudFile cf)
restore
@Transactional
@Secured(value="function:.edit")
public java.lang.String restore()
throws java.lang.Exception
- Throws:
java.lang.Exception
changeFileColor
@Transactional
@Secured(value="function:.edit")
public java.lang.String changeFileColor()
reindexDialog
@Secured(value="ROLE_ADMINISTRATOR")
public java.lang.String reindexDialog()
reindex
@Transactional
@Secured(value="ROLE_ADMINISTRATOR")
public java.lang.String reindex()
getMyOrganizations
public java.util.List<Organization> getMyOrganizations()
getOrganizations
public java.util.List<Organization> getOrganizations()
getUsers
public java.util.List<it.neverworks.security.User> getUsers()
getOtherFolders
public java.util.List<Folder> getOtherFolders()
errorsMessage
public java.lang.String errorsMessage(java.util.Map<CloudFile,java.lang.Exception> errors)
loadObjectTemplateById
public ObjectTemplate loadObjectTemplateById(java.lang.String id)
getObjectTemplates
public java.util.List<ObjectTemplate> getObjectTemplates()
getSelected
public java.util.List<java.lang.String> getSelected()
setSelected
public void setSelected(java.util.List<java.lang.String> selected)
isMultipleSelection
public boolean isMultipleSelection()
getSelectedCloudFiles
public java.util.List<CloudFile> getSelectedCloudFiles()
getCloudFiles
public java.util.List<CloudFile> getCloudFiles()
setCloudFiles
public void setCloudFiles(java.util.List<CloudFile> cloudFiles)
getFiles
public java.util.Collection<File> getFiles()
getLinks
public java.util.Collection<FileLink> getLinks()
getTypes
public java.lang.String getTypes()
setTypes
public void setTypes(java.lang.String types)
getCount
public int getCount()
getFile
public File getFile()
setFile
public void setFile(File file)
getDrives
public java.util.List<Drive> getDrives()
getReplicaServers
public java.util.List<ReplicaServer> getReplicaServers()
getFileSourceName
public java.lang.String getFileSourceName()
setFileSourceName
public void setFileSourceName(java.lang.String fileSourceName)
setApplyDestinationPermission
public void setApplyDestinationPermission(boolean applyDestinationPermission)
setRemoveSystemAttributes
public void setRemoveSystemAttributes(boolean removeSystemAttributes)
isCloneContent
public boolean isCloneContent()
setCloneContent
public void setCloneContent(boolean cloneContent)
getRepository
public java.lang.String getRepository()
setRepository
public void setRepository(java.lang.String repository)
getShowTypes
public java.lang.String getShowTypes()
setShowTypes
public void setShowTypes(java.lang.String showTypes)
isShowTopics
public boolean isShowTopics()
setShowTopics
public void setShowTopics(boolean showTopics)
isShowFolders
public boolean isShowFolders()
setShowFolders
public void setShowFolders(boolean showFolders)
isShowDocs
public boolean isShowDocs()
setShowDocs
public void setShowDocs(boolean showDocs)
isSelectTopics
public boolean isSelectTopics()
setSelectTopics
public void setSelectTopics(boolean selectTopics)
isSelectFolders
public boolean isSelectFolders()
setSelectFolders
public void setSelectFolders(boolean selectFolders)
isSelectDocs
public boolean isSelectDocs()
setSelectDocs
public void setSelectDocs(boolean selectDocs)
isSelectDrives
public boolean isSelectDrives()
setSelectDrives
public void setSelectDrives(boolean selectDrives)
isInternal
public boolean isInternal()
setInternal
public void setInternal(boolean internal)
getCloudParent
public CloudFolder getCloudParent()
getTmpName
public java.lang.String getTmpName()
setTmpName
public void setTmpName(java.lang.String tmpName)
setContentType
public void setContentType(java.lang.String contentType)
setFileName
public void setFileName(java.lang.String fileName)
- Overrides:
setFileName
in class BaseAction