|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sistematica.isharedoc.service.dms.DocumentManagerImpl
public class DocumentManagerImpl
Nested Class Summary | |
---|---|
class |
DocumentManagerImpl.FileAclItem
|
Nested classes/interfaces inherited from interface it.sistematica.isharedoc.service.dms.DocumentManager |
---|
DocumentManager.CheckSignatureResult |
Field Summary | |
---|---|
protected static java.lang.ThreadLocal<Document.CheckoutApp> |
app
|
(package private) CloudManager |
cloudManager
|
(package private) it.neverworks.util.Configuration |
Configuration
|
(package private) it.neverworks.cache.ehcache.EhCache<java.util.Map<java.lang.String,DocumentManagerImpl.FileAclItem>> |
dmsAclCache
|
(package private) it.neverworks.data.EntityManager |
entities
|
static java.lang.String |
FIELD_CLASS
|
static java.lang.String |
FIELD_CONTENT
|
static java.lang.String |
FIELD_FILENAME
|
static java.lang.String |
FIELD_FULLTEXT
|
static java.lang.String |
FIELD_ID
|
static java.lang.String |
FIELD_PARENT
|
static java.lang.String |
FIELD_STATUS
|
static java.lang.String |
FIELD_TITLE
|
(package private) IndexService |
indexService
|
(package private) InstanceService |
instanceService
|
(package private) NotificationService |
notificationService
|
(package private) OrganizationService |
organitazionService
|
protected static java.lang.ThreadLocal<java.util.Stack<java.util.Properties>> |
propertiesStack
|
(package private) it.neverworks.scripting.PythonEnvironment |
pythonEnvironment
|
(package private) org.hibernate.SessionFactory |
sessionFactory
|
(package private) it.neverworks.application.service.TemporaryFileService |
temporaryFileService
|
(package private) it.neverworks.application.service.UserInfo |
userInfo
|
(package private) UtilityService |
utilityService
|
static long |
WEBDAV_CHECKOUT_MS
|
Fields inherited from interface it.sistematica.isharedoc.service.dms.DocumentManager |
---|
FILECLASS_ATTRIBUTE_COMPARATOR, HINT_APPLY_DEST_PERMS, HINT_REMOVE_PHYSICAL, HINT_REMOVE_SYS_ATTRIBUTES |
Constructor Summary | |
---|---|
DocumentManagerImpl()
|
Method Summary | |
---|---|
DocumentContent |
addVersionDocument(Document document,
java.lang.String name,
java.lang.String comments,
java.lang.String contentType,
java.io.InputStream stream,
long size)
Adds the version document. |
void |
afterCreate(File entity)
|
void |
afterSave(File entity)
|
void |
applyCreationPermissions(File file,
boolean applyDestinationPermission)
|
void |
archiveFolder(Folder folder,
java.util.Date archiveDate)
Archive folder. |
void |
beforeCreate(File entity)
|
boolean |
canAdmin(CloudFile cloudFile)
Can admin. |
boolean |
canAdmin(File file)
Can admin. |
void |
cancelCheckout(Document doc)
Cancel checkout. |
void |
cancelCheckout(Document doc,
boolean force)
|
boolean |
canRead(CloudFile cloudFile)
Can read. |
boolean |
canRead(File file)
Can read. |
boolean |
canWrite(CloudFile cloudFile)
Can write. |
boolean |
canWrite(File file)
Can write. |
DocumentContent |
checkin(Document doc,
java.lang.String comments)
Checkin. |
DocumentContent |
checkin(Document doc,
java.lang.String name,
java.io.InputStream stream,
long size,
java.lang.String contentType,
java.lang.String comments)
Checkin. |
DocumentContent |
checkout(Document doc)
Checkout. |
DocumentContent |
checkout(Document doc,
java.lang.String name,
java.io.InputStream stream,
long size,
java.lang.String contentType)
Checkout. |
DocumentContent |
checkout(Document doc,
java.lang.String name,
java.io.InputStream stream,
long size,
java.lang.String contentType,
java.util.concurrent.TimeUnit expireTimeUnit,
long expireDuration)
Checkout. |
DocumentContent |
checkout(Document doc,
java.util.concurrent.TimeUnit expireTimeUnit,
long expireDuration)
Checkout. |
DocumentManager.CheckSignatureResult |
checkSignature(java.io.InputStream is,
java.lang.String attachmentName)
Check signature. |
void |
checkTree(File file,
boolean traceInfo,
boolean repairDuplicatedFolder,
boolean repairDuplicatedDocument)
Ripara un albero di directory accorpando le cartelle che hanno lo stesso nome TODO: implementare lo scenario in cui esistono documenti con lo stesso nome |
void |
clearAcl(File file)
Clear acl. |
void |
clearFileRuleEventQueue()
Clear file rule event queue. |
void |
clearHints()
Clear hints. |
File |
clone(File fileToClone,
File destination,
java.lang.String newName,
boolean cloneContent,
boolean applyDestinationPermission)
Clone. |
File |
cloneTree(File fileToClone,
File destination,
java.lang.String newName,
boolean cloneContent,
boolean applyDestinationPermission)
|
java.io.InputStream |
convertTif2Pdf(java.io.File tif)
Convert tif2 pdf. |
void |
copy(java.io.File file,
File destinationFile)
Viene copiato il file o la directory in maniera ricorsiva nel destinationFile. |
DocumentContent |
createDocument(java.lang.String name,
java.lang.String comments,
java.lang.String contentType,
File parent,
ObjectTemplate objectTemplate,
ConfidentialityLevel confidentialityLevel,
java.io.InputStream stream,
long size)
Creates the document. |
Drive |
createDrive(java.lang.String name,
java.lang.String description,
boolean hidden,
it.neverworks.security.User owner)
Creates the drive. |
Folder |
createFolder(File parent,
java.lang.String name)
Creates the folder. |
Folder |
createFolder(File parent,
java.lang.String name,
ObjectTemplate ot)
Creates the folder. |
java.io.InputStream |
createItemInstanceWatermark(ItemInstance itemInstance,
CloudDocumentVersion documentContent)
Creates the item instance watermark. |
File |
createLink(File source,
File destination,
java.lang.String newName)
Creates the link. |
File |
createLink(File source,
File destination,
java.lang.String newName,
java.lang.String note)
Creates the link. |
RemoteDocument |
createRemoteFile(CloudFile source,
File destination,
java.lang.String newName)
Creates the remote file. |
void |
delete(File file)
Delete. |
void |
delete(java.lang.String fileId)
Delete. |
void |
deleteLogicalTree(File file)
Delete logical tree. |
boolean |
deleteVersion(DocumentContent content)
Delete version. |
void |
destroy(File file)
Destroy. |
ConfidentialityLevel |
findConfidentialityLevelId(java.lang.Long confidentialityLevelId)
Find confidentiality level id. |
ObjectTemplate |
findObjectTemplateId(java.lang.Long objectTemplateId)
Find object template id. |
Organization |
findOrganizationId(java.lang.Long organizationId)
Find organization id. |
it.neverworks.security.User |
findUserId(java.lang.String userId)
Find user id. |
DocumentContent |
forceCheckin(Document doc)
Force checkin. |
DocumentManagerImpl.FileAclItem |
getAcl(CloudFile cloudFile)
Gets the acl. |
DocumentManagerImpl.FileAclItem |
getAcl(CloudFile cloudFile,
boolean rebuildCache,
java.util.List<java.lang.String> trace)
Gets the acl. |
DocumentManagerImpl.FileAclItem |
getAcl(File file)
Gets the acl. |
DocumentManagerImpl.FileAclItem |
getAcl(File file,
boolean rebuildCache,
java.util.List<java.lang.String> trace)
Gets the acl. |
java.util.List<ObjectTemplate> |
getAuthorizedObjectTemplates()
Gets the authorized object templates. |
java.util.List<Document> |
getDocuments(File folder)
Gets the documents. |
java.lang.Boolean |
getDriveCanContainsDocuments()
Gets the drive can contains documents. |
File |
getFileByFileClassAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Gets the file by file class attribute. |
FileSet |
getFileSet(File file,
java.lang.String name)
Gets the file set. |
ItemInstance |
getFileSetInstance(File file,
java.lang.String name)
Gets the file set instance. |
java.util.List<Folder> |
getFolders(Folder parent)
Gets the folders. |
java.util.List<Folder> |
getTopFolders(Drive drive)
Gets the top folders. |
Topic |
getTopicByName(java.lang.String topicName,
java.lang.String parentSeparator)
Gets the topic by name. |
java.lang.Boolean |
getTopicCanContainsDocuments()
Gets the topic can contains documents. |
void |
importFolder(java.lang.String idImport,
java.lang.String parentIdImport,
java.lang.String uoCreazione,
java.lang.String titolazione,
java.lang.String oggetto,
java.util.Date dataCreazione,
java.util.Set<java.lang.String> lettori,
java.util.Set<java.lang.String> autori,
java.util.Map<java.lang.String,java.lang.Object> variables)
Import folder. |
void |
importFolderAttachments(ObjectTemplate objectTemplate,
java.lang.String idImport,
java.util.Collection<java.io.File> attachments,
java.lang.String attachmentDescription)
Import folder attachments. |
void |
importFolderMessageInstances(java.lang.String idImport,
java.lang.String messageInstancesList)
Import folder message instances. |
void |
importFolderRelations(java.lang.String idImport,
java.lang.String relations)
Import folder relations. |
java.lang.Boolean |
isLocked(CloudFile cloudFile)
Checks if is locked. |
boolean |
linkExists(File original,
File destination)
Link exists. |
File |
load(java.lang.Long id)
Load. |
Folder |
loadFolder(java.lang.Long id)
Load folder. |
DocumentSignatureInfo |
manageDocumentSignatureInfo(Document document)
Manage document signature info. |
DocumentSignatureInfo |
manageDocumentSignatureInfo(Document document,
java.util.Date timeStampRef)
Manage document signature info. |
void |
move(File file,
File destinationFile)
Move. |
void |
move(File file,
File destinationFile,
boolean applyDestinationPermission,
boolean removeSystemAttributes)
Move. |
FilePermission |
permissionAdd(File file,
AccessModeItem access,
java.lang.Boolean replaceAll,
java.lang.Boolean leaveTrack)
Permission add. |
FilePermission |
permissionAdd(File file,
Organization organization,
AccessModeItem access,
java.lang.Boolean includeAscending,
java.lang.Boolean replaceAll,
java.lang.Boolean leaveTrack)
Permission add. |
FilePermission |
permissionAdd(FilePermission permission,
java.lang.Boolean applyRecursively,
java.lang.Boolean replaceAll,
java.lang.Boolean leaveTrack)
Permission add. |
FilePermission |
permissionAdd(File file,
java.lang.String principalId,
AccessModeItem access,
java.lang.Boolean replaceAll,
java.lang.Boolean leaveTrack)
Permission add. |
FilePermission |
permissionAdd(File file,
Team team,
AccessModeItem access,
java.lang.Boolean replaceAll,
java.lang.Boolean leaveTrack)
Permission add. |
FilePermission |
permissionAdd(File file,
it.neverworks.security.User user,
AccessModeItem access,
java.lang.Boolean replaceAll,
java.lang.Boolean leaveTrack)
Permission add. |
boolean |
permissionExists(FilePermission permission)
Permission exists. |
void |
permissionRemove(File file,
java.lang.Boolean leaveTrack)
Permission remove. |
void |
permissionRemove(File file,
Organization organization,
java.lang.Boolean leaveTrack)
Permission remove. |
void |
permissionRemove(FilePermission permission,
java.lang.Boolean applyRecursively,
java.lang.Boolean leaveTrack)
Permission remove. |
void |
permissionRemove(File file,
java.lang.String principalId,
java.lang.Boolean leaveTrack)
Permission remove. |
void |
permissionRemove(File file,
Team team,
java.lang.Boolean leaveTrack)
Permission remove. |
void |
permissionRemove(File file,
it.neverworks.security.User user,
java.lang.Boolean leaveTrack)
Permission remove. |
void |
permissionRemoveAll(File file,
java.lang.Boolean leaveTrack)
Permission remove all. |
void |
permissionsApplyRecursive(File file,
boolean mergePermissions,
java.lang.Boolean leaveTrack)
Permissions apply recursive. |
void |
permissionsCopyFromFile(File from,
File to,
boolean mergePermissions,
java.lang.Boolean leaveTrack)
Permissions copy from file. |
void |
ping()
Ping. |
void |
processFileRuleEvent(FileRuleEvent event)
Process file rule event. |
void |
pushHints(java.util.Properties properties)
Push hints. |
void |
reorderMessageBoxFiles(MessageBox messageBox)
Reorder message box files. |
void |
repair(File entity)
Repair. |
void |
save(File file)
Save. |
void |
save(File file,
boolean applyDestinationPermission)
Save. |
boolean |
saveAttribute(File file,
java.lang.String fileClassName,
java.lang.String attributeName,
java.lang.String value)
Save attribute. |
boolean |
saveFileClass(File file,
java.lang.String fileClassName)
Save file class. |
void |
saveHome(IsharedocProfile profile)
Save home. |
java.util.List<File> |
searchFiles(java.lang.String queryString,
int maxResults)
Search files. |
void |
setCheckoutApp(Document.CheckoutApp checkoutApp)
Sets the checkout app. |
void |
setContentDirectory(java.lang.String directoryName)
|
void |
setDriveCanContainsDocuments(java.lang.Boolean driveCanContainsDocuments)
|
void |
setTopicCanContainsDocuments(java.lang.Boolean topicCanContainsDocuments)
|
void |
TEMP_archiveFolderRecursiveByIdImport(java.lang.String idImport,
java.util.Date archiveDate)
TEM p_archive folder recursive by id import. |
void |
trash(File file)
Trash. |
void |
unarchiveFolder(Folder folder)
Unarchive folder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long WEBDAV_CHECKOUT_MS
it.neverworks.scripting.PythonEnvironment pythonEnvironment
it.neverworks.application.service.UserInfo userInfo
it.neverworks.data.EntityManager entities
it.neverworks.util.Configuration Configuration
InstanceService instanceService
OrganizationService organitazionService
NotificationService notificationService
IndexService indexService
org.hibernate.SessionFactory sessionFactory
UtilityService utilityService
it.neverworks.application.service.TemporaryFileService temporaryFileService
CloudManager cloudManager
it.neverworks.cache.ehcache.EhCache<java.util.Map<java.lang.String,DocumentManagerImpl.FileAclItem>> dmsAclCache
public static java.lang.String FIELD_ID
public static java.lang.String FIELD_CLASS
public static java.lang.String FIELD_FULLTEXT
public static java.lang.String FIELD_TITLE
public static java.lang.String FIELD_CONTENT
public static java.lang.String FIELD_FILENAME
public static java.lang.String FIELD_PARENT
public static java.lang.String FIELD_STATUS
protected static java.lang.ThreadLocal<java.util.Stack<java.util.Properties>> propertiesStack
protected static java.lang.ThreadLocal<Document.CheckoutApp> app
Constructor Detail |
---|
public DocumentManagerImpl()
Method Detail |
---|
public void ping()
DocumentManager
ping
in interface DocumentManager
@Transactional public void checkTree(File file, boolean traceInfo, boolean repairDuplicatedFolder, boolean repairDuplicatedDocument)
checkTree
in interface DocumentManager
file
- the filetraceInfo
- the trace inforepairDuplicatedFolder
- the repair duplicated folderrepairDuplicatedDocument
- the repair duplicated documentpublic void pushHints(java.util.Properties properties)
DocumentManager
pushHints
in interface DocumentManager
properties
- the propertiespublic void clearHints()
DocumentManager
clearHints
in interface DocumentManager
public void setCheckoutApp(Document.CheckoutApp checkoutApp)
DocumentManager
setCheckoutApp
in interface DocumentManager
checkoutApp
- the new checkout apppublic void setContentDirectory(java.lang.String directoryName) throws java.io.IOException
java.io.IOException
public java.lang.Boolean getDriveCanContainsDocuments()
DocumentManager
getDriveCanContainsDocuments
in interface DocumentManager
public void setDriveCanContainsDocuments(java.lang.Boolean driveCanContainsDocuments)
public java.lang.Boolean getTopicCanContainsDocuments()
DocumentManager
getTopicCanContainsDocuments
in interface DocumentManager
public void setTopicCanContainsDocuments(java.lang.Boolean topicCanContainsDocuments)
@Transactional public void saveHome(IsharedocProfile profile)
DocumentManager
saveHome
in interface DocumentManager
profile
- the profile@Transactional public void save(File file)
DocumentManager
save
in interface DocumentManager
file
- the file@Transactional public void save(File file, boolean applyDestinationPermission)
DocumentManager
save
in interface DocumentManager
file
- the fileapplyDestinationPermission
- the apply destination permissionpublic void applyCreationPermissions(File file, boolean applyDestinationPermission)
public void beforeCreate(File entity)
public void afterCreate(File entity)
public void afterSave(File entity)
@Transactional public void repair(File entity)
DocumentManager
repair
in interface DocumentManager
entity
- the file@Transactional public void move(File file, File destinationFile)
DocumentManager
move
in interface DocumentManager
file
- the filedestinationFile
- the destination file@Transactional public void move(File file, File destinationFile, boolean applyDestinationPermission, boolean removeSystemAttributes)
DocumentManager
move
in interface DocumentManager
file
- the filedestinationFile
- the destination fileapplyDestinationPermission
- the apply destination permissionremoveSystemAttributes
- the remove system attributes@Transactional public void copy(java.io.File file, File destinationFile)
copy
in interface DocumentManager
file
- the source filedestinationFile
- the destination file@Transactional public void deleteLogicalTree(File file)
DocumentManager
deleteLogicalTree
in interface DocumentManager
file
- the file@Transactional public void trash(File file)
DocumentManager
trash
in interface DocumentManager
file
- the file@Transactional public void delete(File file)
DocumentManager
delete
in interface DocumentManager
file
- the file@Transactional public void delete(java.lang.String fileId)
DocumentManager
delete
in interface DocumentManager
fileId
- the file id@Transactional public void destroy(File file)
DocumentManager
destroy
in interface DocumentManager
file
- the file@Transactional public File clone(File fileToClone, File destination, java.lang.String newName, boolean cloneContent, boolean applyDestinationPermission)
DocumentManager
clone
in interface DocumentManager
fileToClone
- the file to clonedestination
- the destinationnewName
- the new namecloneContent
- the clone contentapplyDestinationPermission
- the apply destination permission
public File cloneTree(File fileToClone, File destination, java.lang.String newName, boolean cloneContent, boolean applyDestinationPermission)
@Transactional public boolean saveFileClass(File file, java.lang.String fileClassName)
DocumentManager
saveFileClass
in interface DocumentManager
file
- the filefileClassName
- the file class name
@Transactional public boolean saveAttribute(File file, java.lang.String fileClassName, java.lang.String attributeName, java.lang.String value)
DocumentManager
saveAttribute
in interface DocumentManager
file
- the filefileClassName
- the file class nameattributeName
- the attribute namevalue
- the value
public java.util.List<Folder> getFolders(Folder parent)
DocumentManager
getFolders
in interface DocumentManager
parent
- the parent
public java.util.List<Folder> getTopFolders(Drive drive)
DocumentManager
getTopFolders
in interface DocumentManager
drive
- the drive
public java.util.List<ObjectTemplate> getAuthorizedObjectTemplates()
DocumentManager
getAuthorizedObjectTemplates
in interface DocumentManager
@Transactional public boolean permissionExists(FilePermission permission)
DocumentManager
permissionExists
in interface DocumentManager
permission
- the permission
@Transactional public FilePermission permissionAdd(File file, AccessModeItem access, java.lang.Boolean replaceAll, java.lang.Boolean leaveTrack)
DocumentManager
permissionAdd
in interface DocumentManager
file
- the fileaccess
- the accessreplaceAll
- the replace allleaveTrack
- the leave track
@Transactional public FilePermission permissionAdd(File file, java.lang.String principalId, AccessModeItem access, java.lang.Boolean replaceAll, java.lang.Boolean leaveTrack)
DocumentManager
permissionAdd
in interface DocumentManager
file
- the fileprincipalId
- the principal idaccess
- the accessreplaceAll
- the replace allleaveTrack
- the leave track
@Transactional public FilePermission permissionAdd(File file, Organization organization, AccessModeItem access, java.lang.Boolean includeAscending, java.lang.Boolean replaceAll, java.lang.Boolean leaveTrack)
DocumentManager
permissionAdd
in interface DocumentManager
file
- the fileorganization
- the organizationaccess
- the accessincludeAscending
- the include ascendingreplaceAll
- the replace allleaveTrack
- the leave track
@Transactional public FilePermission permissionAdd(File file, it.neverworks.security.User user, AccessModeItem access, java.lang.Boolean replaceAll, java.lang.Boolean leaveTrack)
DocumentManager
permissionAdd
in interface DocumentManager
file
- the fileuser
- the useraccess
- the accessreplaceAll
- the replace allleaveTrack
- the leave track
@Transactional public FilePermission permissionAdd(File file, Team team, AccessModeItem access, java.lang.Boolean replaceAll, java.lang.Boolean leaveTrack)
DocumentManager
permissionAdd
in interface DocumentManager
file
- the fileteam
- the teamaccess
- the accessreplaceAll
- the replace allleaveTrack
- the leave track
@Transactional public FilePermission permissionAdd(FilePermission permission, java.lang.Boolean applyRecursively, java.lang.Boolean replaceAll, java.lang.Boolean leaveTrack)
DocumentManager
permissionAdd
in interface DocumentManager
permission
- the permissionapplyRecursively
- the apply recursivelyreplaceAll
- the replace allleaveTrack
- the leave track
@Transactional public void permissionRemove(File file, java.lang.Boolean leaveTrack)
DocumentManager
permissionRemove
in interface DocumentManager
file
- the fileleaveTrack
- the leave track@Transactional public void permissionRemove(File file, java.lang.String principalId, java.lang.Boolean leaveTrack)
DocumentManager
permissionRemove
in interface DocumentManager
file
- the fileprincipalId
- the principal idleaveTrack
- the leave track@Transactional public void permissionRemoveAll(File file, java.lang.Boolean leaveTrack)
DocumentManager
permissionRemoveAll
in interface DocumentManager
file
- the fileleaveTrack
- the leave track@Transactional public void permissionRemove(File file, it.neverworks.security.User user, java.lang.Boolean leaveTrack)
DocumentManager
permissionRemove
in interface DocumentManager
file
- the fileuser
- the userleaveTrack
- the leave track@Transactional public void permissionRemove(File file, Organization organization, java.lang.Boolean leaveTrack)
DocumentManager
permissionRemove
in interface DocumentManager
file
- the fileorganization
- the organizationleaveTrack
- the leave track@Transactional public void permissionRemove(File file, Team team, java.lang.Boolean leaveTrack)
DocumentManager
permissionRemove
in interface DocumentManager
file
- the fileteam
- the teamleaveTrack
- the leave track@Transactional public void permissionRemove(FilePermission permission, java.lang.Boolean applyRecursively, java.lang.Boolean leaveTrack)
DocumentManager
permissionRemove
in interface DocumentManager
permission
- the permissionapplyRecursively
- the apply recursivelyleaveTrack
- the leave track@Transactional public void permissionsApplyRecursive(File file, boolean mergePermissions, java.lang.Boolean leaveTrack)
DocumentManager
permissionsApplyRecursive
in interface DocumentManager
file
- the filemergePermissions
- the merge permissionsleaveTrack
- the leave track@Transactional public void permissionsCopyFromFile(File from, File to, boolean mergePermissions, java.lang.Boolean leaveTrack)
DocumentManager
permissionsCopyFromFile
in interface DocumentManager
from
- the fromto
- the tomergePermissions
- the merge permissionsleaveTrack
- the leave track@Transactional public java.lang.Boolean isLocked(CloudFile cloudFile)
DocumentManager
isLocked
in interface DocumentManager
cloudFile
- the cloud file
@Transactional public DocumentManagerImpl.FileAclItem getAcl(CloudFile cloudFile)
DocumentManager
getAcl
in interface DocumentManager
cloudFile
- the cloud file
@Transactional public DocumentManagerImpl.FileAclItem getAcl(CloudFile cloudFile, boolean rebuildCache, java.util.List<java.lang.String> trace)
DocumentManager
getAcl
in interface DocumentManager
cloudFile
- the cloud filerebuildCache
- the rebuild cachetrace
- the trace
public boolean canRead(CloudFile cloudFile)
DocumentManager
canRead
in interface DocumentManager
cloudFile
- the cloud file
public boolean canWrite(CloudFile cloudFile)
DocumentManager
canWrite
in interface DocumentManager
cloudFile
- the cloud file
public boolean canAdmin(CloudFile cloudFile)
DocumentManager
canAdmin
in interface DocumentManager
cloudFile
- the cloud file
@Transactional public DocumentManagerImpl.FileAclItem getAcl(File file)
DocumentManager
getAcl
in interface DocumentManager
file
- the file
@Transactional public DocumentManagerImpl.FileAclItem getAcl(File file, boolean rebuildCache, java.util.List<java.lang.String> trace)
DocumentManager
getAcl
in interface DocumentManager
file
- the filerebuildCache
- the rebuild cachetrace
- the trace
public void clearAcl(File file)
DocumentManager
clearAcl
in interface DocumentManager
file
- the filepublic boolean canRead(File file)
DocumentManager
canRead
in interface DocumentManager
file
- the file
public boolean canWrite(File file)
DocumentManager
canWrite
in interface DocumentManager
file
- the file
public boolean canAdmin(File file)
DocumentManager
canAdmin
in interface DocumentManager
file
- the file
@Transactional public File load(java.lang.Long id)
DocumentManager
load
in interface DocumentManager
id
- the id
@Transactional public Folder loadFolder(java.lang.Long id)
DocumentManager
loadFolder
in interface DocumentManager
id
- the id
@Transactional public Drive createDrive(java.lang.String name, java.lang.String description, boolean hidden, it.neverworks.security.User owner)
DocumentManager
createDrive
in interface DocumentManager
name
- the namedescription
- the descriptionhidden
- the hiddenowner
- the owner
@Transactional public Folder createFolder(File parent, java.lang.String name)
DocumentManager
createFolder
in interface DocumentManager
parent
- the parentname
- the name
@Transactional public Folder createFolder(File parent, java.lang.String name, ObjectTemplate ot)
DocumentManager
createFolder
in interface DocumentManager
parent
- the parentname
- the nameot
- the ot
public File createLink(File source, File destination, java.lang.String newName)
DocumentManager
createLink
in interface DocumentManager
source
- the sourcedestination
- the destinationnewName
- the new name
@Transactional public File createLink(File source, File destination, java.lang.String newName, java.lang.String note)
DocumentManager
createLink
in interface DocumentManager
source
- the sourcedestination
- the destinationnewName
- the new namenote
- the note
public RemoteDocument createRemoteFile(CloudFile source, File destination, java.lang.String newName)
DocumentManager
createRemoteFile
in interface DocumentManager
source
- the sourcedestination
- the destinationnewName
- the new name
@Transactional public boolean linkExists(File original, File destination)
DocumentManager
linkExists
in interface DocumentManager
original
- the originaldestination
- the destination
@Transactional public DocumentContent createDocument(java.lang.String name, java.lang.String comments, java.lang.String contentType, File parent, ObjectTemplate objectTemplate, ConfidentialityLevel confidentialityLevel, java.io.InputStream stream, long size)
DocumentManager
createDocument
in interface DocumentManager
name
- the namecomments
- the commentscontentType
- the content typeparent
- the parentobjectTemplate
- the object templateconfidentialityLevel
- the confidentiality levelstream
- the streamsize
- the size
@Transactional public DocumentContent addVersionDocument(Document document, java.lang.String name, java.lang.String comments, java.lang.String contentType, java.io.InputStream stream, long size)
DocumentManager
addVersionDocument
in interface DocumentManager
document
- the documentname
- the namecomments
- the commentscontentType
- the content typestream
- the streamsize
- the size
@Transactional public void archiveFolder(Folder folder, java.util.Date archiveDate)
DocumentManager
archiveFolder
in interface DocumentManager
folder
- the folderarchiveDate
- the archive date@Transactional public void unarchiveFolder(Folder folder)
DocumentManager
unarchiveFolder
in interface DocumentManager
folder
- the folder@Transactional public void TEMP_archiveFolderRecursiveByIdImport(java.lang.String idImport, java.util.Date archiveDate)
DocumentManager
TEMP_archiveFolderRecursiveByIdImport
in interface DocumentManager
idImport
- the id importarchiveDate
- the archive datepublic java.util.List<Document> getDocuments(File folder)
DocumentManager
getDocuments
in interface DocumentManager
folder
- the folder
public java.util.List<File> searchFiles(java.lang.String queryString, int maxResults)
DocumentManager
searchFiles
in interface DocumentManager
queryString
- the query stringmaxResults
- the max results
public void reorderMessageBoxFiles(MessageBox messageBox)
DocumentManager
reorderMessageBoxFiles
in interface DocumentManager
messageBox
- the message box@Transactional public void importFolder(java.lang.String idImport, java.lang.String parentIdImport, java.lang.String uoCreazione, java.lang.String titolazione, java.lang.String oggetto, java.util.Date dataCreazione, java.util.Set<java.lang.String> lettori, java.util.Set<java.lang.String> autori, java.util.Map<java.lang.String,java.lang.Object> variables) throws java.lang.Exception
DocumentManager
importFolder
in interface DocumentManager
idImport
- the id importparentIdImport
- the parent id importuoCreazione
- the uo creazionetitolazione
- the titolazioneoggetto
- the oggettodataCreazione
- the data creazionelettori
- the lettoriautori
- the autorivariables
- the variables
java.lang.Exception
- the exception@Transactional public void importFolderMessageInstances(java.lang.String idImport, java.lang.String messageInstancesList) throws java.lang.Exception
DocumentManager
importFolderMessageInstances
in interface DocumentManager
idImport
- the id importmessageInstancesList
- the message instances list
java.lang.Exception
- the exception@Transactional public void importFolderRelations(java.lang.String idImport, java.lang.String relations) throws java.lang.Exception
DocumentManager
importFolderRelations
in interface DocumentManager
idImport
- the id importrelations
- the relations
java.lang.Exception
- the exception@Transactional public void importFolderAttachments(ObjectTemplate objectTemplate, java.lang.String idImport, java.util.Collection<java.io.File> attachments, java.lang.String attachmentDescription) throws java.lang.Exception
DocumentManager
importFolderAttachments
in interface DocumentManager
objectTemplate
- the object templateidImport
- the id importattachments
- the attachmentsattachmentDescription
- the attachment description
java.lang.Exception
- the exception@Transactional public File getFileByFileClassAttribute(java.lang.String attributeName, java.lang.String attributeValue) throws java.lang.Exception
DocumentManager
getFileByFileClassAttribute
in interface DocumentManager
attributeName
- the attribute nameattributeValue
- the attribute value
java.lang.Exception
- the exceptionpublic java.io.InputStream convertTif2Pdf(java.io.File tif) throws java.lang.Exception
DocumentManager
convertTif2Pdf
in interface DocumentManager
tif
- the tif
java.lang.Exception
- the exceptionpublic Topic getTopicByName(java.lang.String topicName, java.lang.String parentSeparator)
DocumentManager
getTopicByName
in interface DocumentManager
topicName
- the topic nameparentSeparator
- the parent separator
public void clearFileRuleEventQueue()
DocumentManager
clearFileRuleEventQueue
in interface DocumentManager
public void processFileRuleEvent(FileRuleEvent event)
DocumentManager
processFileRuleEvent
in interface DocumentManager
event
- the event@Transactional public it.neverworks.security.User findUserId(java.lang.String userId)
DocumentManager
findUserId
in interface DocumentManager
userId
- the user id
@Transactional public Organization findOrganizationId(java.lang.Long organizationId)
DocumentManager
findOrganizationId
in interface DocumentManager
organizationId
- the organization id
@Transactional public ConfidentialityLevel findConfidentialityLevelId(java.lang.Long confidentialityLevelId)
DocumentManager
findConfidentialityLevelId
in interface DocumentManager
confidentialityLevelId
- the confidentiality level id
@Transactional public ObjectTemplate findObjectTemplateId(java.lang.Long objectTemplateId)
DocumentManager
findObjectTemplateId
in interface DocumentManager
objectTemplateId
- the object template id
public FileSet getFileSet(File file, java.lang.String name)
DocumentManager
getFileSet
in interface DocumentManager
file
- the filename
- the name
public ItemInstance getFileSetInstance(File file, java.lang.String name)
DocumentManager
getFileSetInstance
in interface DocumentManager
file
- the filename
- the name
public DocumentSignatureInfo manageDocumentSignatureInfo(Document document)
DocumentManager
manageDocumentSignatureInfo
in interface DocumentManager
document
- the document
public DocumentSignatureInfo manageDocumentSignatureInfo(Document document, java.util.Date timeStampRef)
DocumentManager
manageDocumentSignatureInfo
in interface DocumentManager
document
- the documenttimeStampRef
- the time stamp ref
public DocumentManager.CheckSignatureResult checkSignature(java.io.InputStream is, java.lang.String attachmentName)
DocumentManager
checkSignature
in interface DocumentManager
is
- the isattachmentName
- the attachment name
public java.io.InputStream createItemInstanceWatermark(ItemInstance itemInstance, CloudDocumentVersion documentContent) throws java.lang.Exception
DocumentManager
createItemInstanceWatermark
in interface DocumentManager
itemInstance
- the item instancedocumentContent
- the document content
java.lang.Exception
- the exception@Transactional public DocumentContent checkout(Document doc)
DocumentManager
checkout
in interface DocumentManager
doc
- the document
@Transactional public DocumentContent checkout(Document doc, java.util.concurrent.TimeUnit expireTimeUnit, long expireDuration)
DocumentManager
checkout
in interface DocumentManager
doc
- the documentexpireTimeUnit
- the expire time unitexpireDuration
- the expire duration
@Transactional public DocumentContent checkout(Document doc, java.lang.String name, java.io.InputStream stream, long size, java.lang.String contentType)
DocumentManager
checkout
in interface DocumentManager
doc
- the documentname
- the namestream
- the streamsize
- the sizecontentType
- the content type
@Transactional public DocumentContent checkout(Document doc, java.lang.String name, java.io.InputStream stream, long size, java.lang.String contentType, java.util.concurrent.TimeUnit expireTimeUnit, long expireDuration)
DocumentManager
checkout
in interface DocumentManager
doc
- the documentname
- the namestream
- the streamsize
- the sizecontentType
- the content typeexpireTimeUnit
- the expire time unitexpireDuration
- the expire duration
@Transactional public DocumentContent checkin(Document doc, java.lang.String name, java.io.InputStream stream, long size, java.lang.String contentType, java.lang.String comments)
DocumentManager
checkin
in interface DocumentManager
doc
- the documentname
- the namestream
- the streamsize
- the sizecontentType
- the content typecomments
- the comments
@Transactional public DocumentContent forceCheckin(Document doc)
DocumentManager
forceCheckin
in interface DocumentManager
doc
- the doc
@Transactional public DocumentContent checkin(Document doc, java.lang.String comments)
DocumentManager
checkin
in interface DocumentManager
doc
- the doccomments
- the comments
@Transactional public boolean deleteVersion(DocumentContent content)
DocumentManager
deleteVersion
in interface DocumentManager
content
- the content
@Transactional public void cancelCheckout(Document doc)
DocumentManager
cancelCheckout
in interface DocumentManager
doc
- the documentpublic void cancelCheckout(Document doc, boolean force)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |