public interface IDocumentManager
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_ALL |
Modifier and Type | Method and Description |
---|---|
DocumentConfig |
get(SessionConfig sessionConfig,
String documentId,
ITransaction transaction)
Returns the DocumentConfig for a document with the given id.
|
Collection<DocumentConfig> |
getChildren(SessionConfig sessionConfig,
String serviceInstanceId,
String folderId,
int type,
ITransaction transaction)
Returns the entries in the specified folder.
|
Collection<String> |
getDocumentPublishToPrincipals(String documentId)
Return a the list of principals for which the
document is published to. |
Collection<String> |
getFolderIdsByParentAndName(SessionConfig sessionConfig,
String serviceInstanceId,
String parentFolderId,
String folderName,
ITransaction transaction)
Returns the ids of the folders child of the given parent and with the given name.
|
String |
getFolderPath(SessionConfig sessionConfig,
String folderId,
ITransaction transaction)
Returns the virtual path to the folder.
|
void |
moveDocument(SessionConfig sessionConfig,
String documentId,
String destFolderId,
ITransaction transaction)
Moves a document (or a folder) to another folder.
|
void |
updateDocumentHierarchyPublishTo(String documentId,
Collection<String> heritagePrincipalsId)
Update the list of principals the
document is published to |
static final int TYPE_ALL
DocumentConfig get(SessionConfig sessionConfig, String documentId, ITransaction transaction) throws PortalException
sessionConfig
- identifier for the session.documentId
- the id of the document.transaction
- the transaction for persistence access.PortalException
Collection<String> getFolderIdsByParentAndName(SessionConfig sessionConfig, String serviceInstanceId, String parentFolderId, String folderName, ITransaction transaction) throws PortalException
sessionConfig
- identifier for the session.serviceInstanceId
- the content's service instance id.parentFolderId
- the parent folder's id. Null if the folder must not have parent.folderName
- the folder name.transaction
- the transaction for persistence access.PortalException
Collection<DocumentConfig> getChildren(SessionConfig sessionConfig, String serviceInstanceId, String folderId, int type, ITransaction transaction) throws PortalException
sessionConfig
- identifier for the session.serviceInstanceId
- the document service instance id.folderId
- the id of the folder.type
- the entry types to be returned. Must be DocumentConfig.TYPE_FOLDER
, DocumentConfig.TYPE_DOCUMENT
or TYPE_ALL
.transaction
- the transaction for persistence access.PortalException
String getFolderPath(SessionConfig sessionConfig, String folderId, ITransaction transaction) throws PortalException
sessionConfig
- identifier for the session.folderId
- the id of the folder.transaction
- the transaction for persistence access.PortalException
void moveDocument(SessionConfig sessionConfig, String documentId, String destFolderId, ITransaction transaction) throws PortalException
sessionConfig
- identifier for the session.documentId
- the document's id.destFolderId
- the id of the destination folder.transaction
- the transaction for persistence access.PortalException
void updateDocumentHierarchyPublishTo(String documentId, Collection<String> heritagePrincipalsId) throws PortalException
Update the list of principals the document
is published to
When the document
type is a folder
, the entire file tree
inside it will also be updated taking into account their inheritance
.
documentId
- The document identifier
to updateheritagePrincipalsId
- The list of principals to set.PortalException
Collection<String> getDocumentPublishToPrincipals(String documentId) throws PortalException
document
is published to.documentId
- The document identifier
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.