public class DocumentService extends Object
| Constructor and Description |
|---|
DocumentService(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFacets(DocRef doc,
String facets)
Add facets to a document (separated by a coma)
|
Document |
addPermission(DocRef doc,
String user,
String permission)
Set a local ACE before block inheritance if it exists.
|
Document |
addPermission(DocRef doc,
String user,
String permission,
String acl) |
Document |
addPermission(DocRef doc,
String user,
String permission,
String acl,
boolean blockInheritance) |
Document |
copy(DocRef src,
DocRef targetParent) |
Document |
copy(DocRef src,
DocRef targetParent,
String name) |
Document |
createDocument(DocRef parent,
String type,
String name) |
Document |
createDocument(DocRef parent,
String type,
String name,
PropertyMap properties) |
Document |
createDocument(DocRef parent,
String type,
String name,
PropertyMap properties,
boolean synchronizedIndexing) |
Document |
createRelation(DocRef subject,
String predicate,
DocRef object) |
Document |
createVersion(DocRef doc) |
Document |
createVersion(DocRef doc,
String increment)
Increment is one of "None", "Major", "Minor".
|
void |
fireEvent(DocRef doc,
String event) |
void |
fireEvent(String event) |
FileBlob |
getBlob(DocRef doc) |
FileBlob |
getBlob(DocRef doc,
String xpath) |
Blobs |
getBlobs(DocRef doc) |
Blobs |
getBlobs(DocRef doc,
String xpath) |
Document |
getChild(DocRef docRef,
String name) |
Documents |
getChildren(DocRef docRef) |
Document |
getDocument(DocRef ref) |
Document |
getDocument(DocRef ref,
String schemas) |
Document |
getDocument(String ref) |
Document |
getParent(DocRef docRef) |
Documents |
getParent(DocRef docRef,
String type) |
Documents |
getRelations(DocRef doc,
String predicate) |
Documents |
getRelations(DocRef doc,
String predicate,
boolean outgoing) |
Documents |
getRelations(DocRef doc,
String predicate,
boolean outgoing,
String graphName) |
Document |
getRootDocument() |
Session |
getSession() |
Documents |
getVersions(DocRef doc)
Gets versions with common fetch schemas (dc, common, ...).
|
Documents |
getVersions(DocRef doc,
String schemas)
Gets versions with specified data in addition to default schemas (dc, common, ...).
|
Document |
lock(DocRef doc) |
Document |
lock(DocRef doc,
String lock) |
Document |
move(DocRef src,
DocRef targetParent) |
Document |
move(DocRef src,
DocRef targetParent,
String name) |
Document |
publish(DocRef doc,
DocRef section) |
Document |
publish(DocRef doc,
DocRef section,
boolean override) |
Documents |
query(String query) |
void |
remove(DocRef doc) |
void |
remove(String ref) |
Document |
removeAcl(DocRef doc,
String acl) |
void |
removeBlob(DocRef doc) |
void |
removeBlob(DocRef doc,
String xpath) |
void |
removeFacets(DocRef doc,
String facets)
Remove facets on a document (separated by a coma)
|
Document |
removePermissions(DocRef doc,
String user,
String acl) |
Document |
removeProperty(DocRef doc,
String key) |
Document |
save(DocRef doc) |
void |
setBlob(DocRef doc,
Blob blob) |
void |
setBlob(DocRef doc,
Blob blob,
String xpath) |
void |
setBlobs(DocRef doc,
Blobs blobs) |
void |
setBlobs(DocRef doc,
Blobs blobs,
String xpath) |
Document |
setPermission(DocRef doc,
String user,
String permission) |
Document |
setPermission(DocRef doc,
String user,
String permission,
boolean granted) |
Document |
setPermission(DocRef doc,
String user,
String permission,
String acl,
boolean granted) |
Document |
setProperty(DocRef doc,
String key,
String value) |
Document |
setState(DocRef doc,
String state) |
Document |
unlock(DocRef doc) |
Document |
update(DocRef doc,
PropertyMap properties) |
Document |
update(DocRef doc,
PropertyMap properties,
boolean synchronizedIndexing) |
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 SetBlobs
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 ADD_FACETS
public static final String REMOVE_FACETS
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 void setBlobs(DocRef doc, Blobs blobs, String xpath) 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
VersionIncrementExceptionpublic void addFacets(DocRef doc, String facets) throws Exception
doc - facets - ExceptionCopyright © 2018. All rights reserved.