|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDocumentManager
Field Summary | |
---|---|
static int |
TYPE_ALL
|
Method Summary | |
---|---|
DocumentConfig |
get(SessionConfig sessionConfig,
java.lang.String documentId,
ITransaction transaction)
Returns the DocumentConfig for a document with the given id. |
java.util.Collection<DocumentConfig> |
getChildren(SessionConfig sessionConfig,
java.lang.String serviceInstanceId,
java.lang.String folderId,
int type,
ITransaction transaction)
Returns the entries in the specified folder. |
java.util.Collection<java.lang.String> |
getFolderIdsByParentAndName(SessionConfig sessionConfig,
java.lang.String serviceInstanceId,
java.lang.String parentFolderId,
java.lang.String folderName,
ITransaction transaction)
Returns the ids of the folders child of the given parent and with the given name. |
java.lang.String |
getFolderPath(SessionConfig sessionConfig,
java.lang.String folderId,
ITransaction transaction)
Returns the virtual path to the folder. |
void |
moveDocument(SessionConfig sessionConfig,
java.lang.String documentId,
java.lang.String destFolderId,
ITransaction transaction)
Moves a document (or a folder) to another folder. |
Field Detail |
---|
static final int TYPE_ALL
Method Detail |
---|
DocumentConfig get(SessionConfig sessionConfig, java.lang.String documentId, ITransaction transaction) throws PortalException
sessionConfig
- identifier for the session.documentId
- the id of the document.transaction
- the transaction for persistence access.
PortalException
java.util.Collection<java.lang.String> getFolderIdsByParentAndName(SessionConfig sessionConfig, java.lang.String serviceInstanceId, java.lang.String parentFolderId, java.lang.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
java.util.Collection<DocumentConfig> getChildren(SessionConfig sessionConfig, java.lang.String serviceInstanceId, java.lang.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
java.lang.String getFolderPath(SessionConfig sessionConfig, java.lang.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, java.lang.String documentId, java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |