Interface IDocumentManager
- All Superinterfaces:
IDisposable, IEntity
Manages the documents.
-
Method Summary
Modifier and TypeMethodDescriptionintcreateDocument(String name, String description, String fileName, byte[] content, String comment) Creates a document.intcreateDocumentRevision(int documentId, String fileName, byte[] content, String comment) Creates a document revision.voiddeleteDocument(int documentId) Deletes a document.voiddeleteDocumentRevision(int documentId, int documentRevisionNumber) Deletes a document revision.getDocument(int documentId) Gets the last revision of the specified document.byte[]getDocumentContent(int documentId) Gets the contents of the last revision of the document.getDocumentInfo(int documentId) Gets the document information of the specified document.getDocumentRevision(int documentId, int documentRevisionNumber) Gets a specific revision of the specified document.byte[]getDocumentRevisionContent(int documentId, int documentRevisionNumber) Gets the contents of the specified revision of the document.getDocumentRevisionInfo(int documentId, int documentRevisionNumber) Gets the document revision information.getDocumentRevisions(int documentId) Gets information about the document revisions.The instance.getRevisionDocumentInfo(int documentId, int documentRevisionNumber) Gets the document information of the specified document revision.voidsetActiveRevision(int documentId, int documentRevisionNumber) Set the active revision in a document.voidupdateDocument(int documentId, String name, String description) Updates a document.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
createDocument
int createDocument(String name, String description, String fileName, byte[] content, String comment) throws Exception, altitude.integrationServer.exceptions.ISException Creates a document.- Parameters:
name- Name of the document.description- Description.fileName- File name of the document.content- The content of the document.comment- Comment.- Returns:
- Identifier of the document.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createDocumentRevision
int createDocumentRevision(int documentId, String fileName, byte[] content, String comment) throws Exception, altitude.integrationServer.exceptions.ISException Creates a document revision.- Parameters:
documentId- Identifier of the document.fileName- File name of the document.content- The content of the document revision.comment- Comment.- Returns:
- The document revision Number.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteDocument
-
deleteDocumentRevision
void deleteDocumentRevision(int documentId, int documentRevisionNumber) throws Exception, altitude.integrationServer.exceptions.ISException Deletes a document revision.- Parameters:
documentId- Identifier of the document.documentRevisionNumber- Number of the document revision.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDocument
DocumentData getDocument(int documentId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the last revision of the specified document.- Parameters:
documentId- Identifier of the document.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDocumentContent
-
getDocumentInfo
DocumentInfo getDocumentInfo(int documentId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the document information of the specified document.- Parameters:
documentId- Identifier of the document.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDocumentRevision
DocumentData getDocumentRevision(int documentId, int documentRevisionNumber) throws Exception, altitude.integrationServer.exceptions.ISException Gets a specific revision of the specified document.- Parameters:
documentId- Identifier of the document.documentRevisionNumber- Number of the document revision.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDocumentRevisionContent
byte[] getDocumentRevisionContent(int documentId, int documentRevisionNumber) throws Exception, altitude.integrationServer.exceptions.ISException Gets the contents of the specified revision of the document.- Parameters:
documentId- Identifier of the document.documentRevisionNumber- Number of the document revision.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDocumentRevisionInfo
DocumentRevisionInfo getDocumentRevisionInfo(int documentId, int documentRevisionNumber) throws Exception, altitude.integrationServer.exceptions.ISException Gets the document revision information.- Parameters:
documentId- Identifier of the document.documentRevisionNumber- Number of the document revision.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDocumentRevisions
DocumentRevisionInfo[] getDocumentRevisions(int documentId) throws Exception, altitude.integrationServer.exceptions.ISException Gets information about the document revisions.- Parameters:
documentId- Identifier of the document.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInstance
-
getRevisionDocumentInfo
DocumentInfo getRevisionDocumentInfo(int documentId, int documentRevisionNumber) throws Exception, altitude.integrationServer.exceptions.ISException Gets the document information of the specified document revision.- Parameters:
documentId- Identifier of the document.documentRevisionNumber- Number of the document revision.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
setActiveRevision
void setActiveRevision(int documentId, int documentRevisionNumber) throws Exception, altitude.integrationServer.exceptions.ISException Set the active revision in a document.- Parameters:
documentId- Identifier of the document.documentRevisionNumber- Number of the document revision.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateDocument
void updateDocument(int documentId, String name, String description) throws Exception, altitude.integrationServer.exceptions.ISException Updates a document.- Parameters:
documentId- Identifier of the document.name- Name of the document.description- Description.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-