public class DocumentService extends Object
| Constructor and Description |
|---|
DocumentService(Session session) |
public static final String ES_SYNC_FLAG
public static final String FetchDocument
public static final String CreateDocument
public static final String SaveDocument
public static final String DeleteDocument
public static final String CopyDocument
public static final String MoveDocument
public static final String GetDocumentChildren
public static final String GetDocumentChild
public static final String GetDocumentParent
public static final String Query
public static final String SetPermission
public static final String AddPermission
public static final String RemovePermissions
public static final String RemoveAcl
public static final String SetDocumentState
public static final String LockDocument
public static final String UnlockDocument
public static final String SetProperty
public static final String RemoveProperty
public static final String UpdateDocument
public static final String PublishDocument
public static final String CreateRelation
public static final String GetRelations
public static final String SetBlob
public static final String RemoveBlob
public static final String GetBlob
public static final String GetBlobs
public static final String CreateVersion
public static final String GetVersions
public static final String FireEvent
public static final String CheckOut
public static final String CheckIn
protected Session session
public DocumentService(Session session)
public Session getSession()
public Document getDocument(DocRef ref, String schemas) throws Exception
Exceptionpublic Document createDocument(DocRef parent, String type, String name) throws Exception
Exceptionpublic Document createDocument(DocRef parent, String type, String name, PropertyMap properties) throws Exception
Exceptionpublic Document createDocument(DocRef parent, String type, String name, PropertyMap properties, boolean synchronizedIndexing) throws Exception
Exceptionpublic Document copy(DocRef src, DocRef targetParent, String name) throws Exception
Exceptionpublic Document move(DocRef src, DocRef targetParent, String name) throws Exception
Exceptionpublic Document addPermission(DocRef doc, String user, String permission) throws Exception
Exceptionpublic Document addPermission(DocRef doc, String user, String permission, String acl) throws Exception
Exceptionpublic Document addPermission(DocRef doc, String user, String permission, String acl, boolean blockInheritance) throws Exception
Exceptionpublic Document setPermission(DocRef doc, String user, String permission) throws Exception
Exceptionpublic Document setPermission(DocRef doc, String user, String permission, boolean granted) throws Exception
Exceptionpublic Document setPermission(DocRef doc, String user, String permission, String acl, boolean granted) throws Exception
Exceptionpublic Document removePermissions(DocRef doc, String user, String acl) throws Exception
Exceptionpublic Document setProperty(DocRef doc, String key, String value) throws Exception
Exceptionpublic Document removeProperty(DocRef doc, String key) throws Exception
Exceptionpublic Document update(DocRef doc, PropertyMap properties) throws Exception
Exceptionpublic Document update(DocRef doc, PropertyMap properties, boolean synchronizedIndexing) throws Exception
Exceptionpublic Document publish(DocRef doc, DocRef section, boolean override) throws Exception
Exceptionpublic Document createRelation(DocRef subject, String predicate, DocRef object) throws Exception
Exceptionpublic Documents getRelations(DocRef doc, String predicate) throws Exception
Exceptionpublic Documents getRelations(DocRef doc, String predicate, boolean outgoing) throws Exception
Exceptionpublic Documents getRelations(DocRef doc, String predicate, boolean outgoing, String graphName) throws Exception
Exceptionpublic Documents getVersions(DocRef doc) throws Exception
doc - Exceptionpublic Documents getVersions(DocRef doc, String schemas) throws Exception
doc - Exceptionpublic Document createVersion(DocRef doc, String increment) throws Exception
VersionIncrementExceptionCopyright © 2021. All rights reserved.