TrashService instead.@Deprecated public interface TrashService extends TrashService
TrashService.FeatureDISABLE_TRASH_RENAMING, DOCUMENT_TRASHED, DOCUMENT_UNTRASHED, IS_TRASHED_FROM_DELETE_TRANSITION| Modifier and Type | Method and Description |
|---|---|
boolean |
canDelete(List<DocumentModel> docs,
Principal principal,
boolean checkProxies)
Deprecated.
since 10.1 only used in JSF part, no replacement
|
default boolean |
canPurgeOrUndelete(List<DocumentModel> docs,
Principal principal)
Deprecated.
since 10.1, use
TrashService.canPurgeOrUntrash(List, Principal) |
boolean |
checkDeletePermOnParents(List<DocumentModel> docs)
Deprecated.
since 10.1 only used in JSF part, no replacement
|
boolean |
folderAllowsDelete(DocumentModel folder)
Deprecated.
since 10.1 only used in JSF part, no replacement
|
DocumentModel |
getAboveDocument(DocumentModel doc,
Set<Path> paths)
Deprecated.
since 10.1 only used in JSF part, use
TrashService.getAboveDocument(DocumentModel, Principal) instead. |
TrashInfo |
getTrashInfo(List<DocumentModel> docs,
Principal principal,
boolean checkProxies,
boolean checkDeleted)
Deprecated.
since 10.1 only used in JSF part, no replacement
|
Set<DocumentRef> |
undeleteDocuments(List<DocumentModel> docs)
Deprecated.
since 10.1 use
TrashService.untrashDocuments(List) instead |
canPurgeOrUntrash, canPurgeOrUntrash, getAboveDocument, getDocuments, hasFeature, isTrashed, mangleName, purgeDocuments, purgeDocumentsUnder, trashDocument, trashDocuments, unmangleName, untrashDocument, untrashDocuments@Deprecated boolean folderAllowsDelete(DocumentModel folder)
folder - the foldertrue if the folder allows its children to be trashed@Deprecated boolean checkDeletePermOnParents(List<DocumentModel> docs)
docs - the documentstrue if one doc is in a folder that allows its children to be trashed@Deprecated boolean canDelete(List<DocumentModel> docs, Principal principal, boolean checkProxies)
docs - the documentsprincipal - the current user (to check locks)checkProxies - true to count proxies as non-deletabletrue if at least one doc is deletable@Deprecated default boolean canPurgeOrUndelete(List<DocumentModel> docs, Principal principal)
TrashService.canPurgeOrUntrash(List, Principal)Documents need to be in the trash for this to be true, in addition to the standard permission checks.
docs - the documentsprincipal - the current user (to check locks)true if the documents are purgeable/undeletable@Deprecated TrashInfo getTrashInfo(List<DocumentModel> docs, Principal principal, boolean checkProxies, boolean checkDeleted)
docs - the documentsprincipal - the current user (to check locks)checkProxies - true to count proxies as non-deletablecheckDeleted - true if documents have to be in the trashed state to be considered (otherwise
forbidden)@Deprecated DocumentModel getAboveDocument(DocumentModel doc, Set<Path> paths)
TrashService.getAboveDocument(DocumentModel, Principal) instead.This is used to find what safe document to redirect to when deleting some.
doc - the documentpaths - the paths@Deprecated Set<DocumentRef> undeleteDocuments(List<DocumentModel> docs)
TrashService.untrashDocuments(List) insteadAlso fires async events to untrash the children.
docs - the documents to undeleteCopyright © 2018 Nuxeo. All rights reserved.