public class Documents extends AbstractImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRIVATE_DOCUMENTS_FOLDER_SUFFIX |
Modifier | Constructor and Description |
---|---|
protected |
Documents()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MediaContent |
addRevision(Document document,
java.lang.String contentName,
java.lang.String contentMimeType,
java.lang.String author,
org.w3c.cci2.BinaryLargeObject content)
Add revision to document.
|
int |
countFilteredDocument(AbstractFilterDocument documentFilter)
Count documents of given document filter.
|
DocumentFolderShare |
createDefaultShare(DocumentFolder documentFolder)
Create default document folder share for current user and folder.
|
Document |
findDocument(java.lang.String documentName,
Segment segment)
Find document.
|
DocumentFolder |
findDocumentFolder(java.lang.String documentFolderName,
Segment segment)
Find document folder.
|
Segment |
getDocumentSegment(javax.jdo.PersistenceManager pm,
java.lang.String providerName,
java.lang.String segmentName)
Get documents segment.
|
static Documents |
getInstance()
Get instance of registered document backend.
|
Document |
initDocument(java.lang.String documentName,
java.lang.String documentTitle,
java.net.URL revisionURL,
java.lang.String revisionMimeType,
java.lang.String revisionName,
DocumentFolder documentFolder,
Segment segment,
java.util.List<PrincipalGroup> allUsers)
Create / update document.
|
Document |
initDocument(java.lang.String documentName,
java.net.URL revisionURL,
java.lang.String revisionMimeType,
java.lang.String revisionName,
DocumentFolder documentFolder,
Segment segment,
java.util.List<PrincipalGroup> allUsers)
Init document.
|
DocumentFolder |
initDocumentFolder(java.lang.String documentFolderName,
Segment segment,
java.util.List<PrincipalGroup> allUsers)
Create / update document folder.
|
static void |
register()
Register Documents backend class.
|
void |
removeDefaultShare(DocumentFolder documentFolder)
Remove / Deactivate default document folder share.
|
ValidateSchemaResult |
validateSchema(Document document)
Validate document schema.
|
getInstance, getPersistenceManager, getUidAsString, preDelete, preStore, registerImpl
public static final java.lang.String PRIVATE_DOCUMENTS_FOLDER_SUFFIX
public static void register()
public static Documents getInstance() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public Segment getDocumentSegment(javax.jdo.PersistenceManager pm, java.lang.String providerName, java.lang.String segmentName) throws org.openmdx.base.exception.ServiceException
pm
- providerName
- segmentName
- org.openmdx.base.exception.ServiceException
public DocumentFolder findDocumentFolder(java.lang.String documentFolderName, Segment segment)
documentFolderName
- segment
- public DocumentFolder initDocumentFolder(java.lang.String documentFolderName, Segment segment, java.util.List<PrincipalGroup> allUsers)
documentFolderName
- segment
- allUsers
- public Document initDocument(java.lang.String documentName, java.lang.String documentTitle, java.net.URL revisionURL, java.lang.String revisionMimeType, java.lang.String revisionName, DocumentFolder documentFolder, Segment segment, java.util.List<PrincipalGroup> allUsers)
documentName
- documentTitle
- revisionURL
- revisionMimeType
- revisionName
- documentFolder
- segment
- allUsers
- public Document findDocument(java.lang.String documentName, Segment segment)
documentName
- segment
- public Document initDocument(java.lang.String documentName, java.net.URL revisionURL, java.lang.String revisionMimeType, java.lang.String revisionName, DocumentFolder documentFolder, Segment segment, java.util.List<PrincipalGroup> allUsers) throws org.openmdx.base.exception.ServiceException
documentName
- revisionURL
- revisionMimeType
- revisionName
- documentFolder
- segment
- allUsers
- org.openmdx.base.exception.ServiceException
public int countFilteredDocument(AbstractFilterDocument documentFilter) throws org.openmdx.base.exception.ServiceException
documentFilter
- org.openmdx.base.exception.ServiceException
public MediaContent addRevision(Document document, java.lang.String contentName, java.lang.String contentMimeType, java.lang.String author, org.w3c.cci2.BinaryLargeObject content)
document
- contentName
- contentMimeType
- author
- content
- public DocumentFolderShare createDefaultShare(DocumentFolder documentFolder) throws org.openmdx.base.exception.ServiceException
documentFolder
- org.openmdx.base.exception.ServiceException
public void removeDefaultShare(DocumentFolder documentFolder) throws org.openmdx.base.exception.ServiceException
documentFolder
- org.openmdx.base.exception.ServiceException
public ValidateSchemaResult validateSchema(Document document) throws org.openmdx.base.exception.ServiceException
document
- org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.