public interface ObjectService
See the CMIS 1.0 and CMIS 1.1 specifications for details on the operations, parameters, exceptions and the domain model.
Modifier and Type | Method and Description |
---|---|
void |
appendContentStream(String repositoryId,
Holder<String> objectId,
Holder<String> changeToken,
ContentStream contentStream,
boolean isLastChunk,
ExtensionsData extension)
Appends the content stream to the content of the document.
|
List<BulkUpdateObjectIdAndChangeToken> |
bulkUpdateProperties(String repositoryId,
List<BulkUpdateObjectIdAndChangeToken> objectIdsAndChangeTokens,
Properties properties,
List<String> addSecondaryTypeIds,
List<String> removeSecondaryTypeIds,
ExtensionsData extension)
Updates properties and secondary types of one or more objects.
|
String |
createDocument(String repositoryId,
Properties properties,
String folderId,
ContentStream contentStream,
VersioningState versioningState,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension)
Creates a document object of the specified type (given by the
cmis:objectTypeId property) in the (optionally) specified location.
|
String |
createDocumentFromSource(String repositoryId,
String sourceId,
Properties properties,
String folderId,
VersioningState versioningState,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension)
Creates a document object as a copy of the given source document in the
(optionally) specified location.
|
String |
createFolder(String repositoryId,
Properties properties,
String folderId,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension)
Creates a folder object of the specified type (given by the
cmis:objectTypeId property) in the specified location.
|
String |
createItem(String repositoryId,
Properties properties,
String folderId,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension)
Creates an item object of the specified type (given by the
cmis:objectTypeId property).
|
String |
createPolicy(String repositoryId,
Properties properties,
String folderId,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension)
Creates a policy object of the specified type (given by the
cmis:objectTypeId property).
|
String |
createRelationship(String repositoryId,
Properties properties,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension)
Creates a relationship object of the specified type (given by the
cmis:objectTypeId property).
|
void |
deleteContentStream(String repositoryId,
Holder<String> objectId,
Holder<String> changeToken,
ExtensionsData extension)
Deletes the content stream for the specified document object.
|
void |
deleteObject(String repositoryId,
String objectId,
Boolean allVersions,
ExtensionsData extension)
Deletes the specified object.
|
FailedToDeleteData |
deleteTree(String repositoryId,
String folderId,
Boolean allVersions,
UnfileObject unfileObjects,
Boolean continueOnFailure,
ExtensionsData extension)
Deletes the specified folder object and all of its child- and
descendant-objects.
|
AllowableActions |
getAllowableActions(String repositoryId,
String objectId,
ExtensionsData extension)
Gets the list of allowable actions for an object.
|
ContentStream |
getContentStream(String repositoryId,
String objectId,
String streamId,
BigInteger offset,
BigInteger length,
ExtensionsData extension)
Gets the content stream for the specified document object, or gets a
rendition stream for a specified rendition of a document or folder
object.
|
ObjectData |
getObject(String repositoryId,
String objectId,
String filter,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
Boolean includePolicyIds,
Boolean includeAcl,
ExtensionsData extension)
Gets the specified information for the object specified by id.
|
ObjectData |
getObjectByPath(String repositoryId,
String path,
String filter,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
Boolean includePolicyIds,
Boolean includeAcl,
ExtensionsData extension)
Gets the specified information for the object specified by path.
|
Properties |
getProperties(String repositoryId,
String objectId,
String filter,
ExtensionsData extension)
Gets the list of properties for an object.
|
List<RenditionData> |
getRenditions(String repositoryId,
String objectId,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount,
ExtensionsData extension)
Gets the list of associated renditions for the specified object.
|
void |
moveObject(String repositoryId,
Holder<String> objectId,
String targetFolderId,
String sourceFolderId,
ExtensionsData extension)
Moves the specified file-able object from one folder to another.
|
void |
setContentStream(String repositoryId,
Holder<String> objectId,
Boolean overwriteFlag,
Holder<String> changeToken,
ContentStream contentStream,
ExtensionsData extension)
Sets the content stream for the specified document object.
|
void |
updateProperties(String repositoryId,
Holder<String> objectId,
Holder<String> changeToken,
Properties properties,
ExtensionsData extension)
Updates properties of the specified object.
|
String createDocument(String repositoryId, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
contentStream
is consumed but not closed by
this method.repositoryId
- the identifier for the repositoryproperties
- the property values that must be applied to the newly created
document objectfolderId
- (optional) if specified, the identifier for the
folder that must be the parent folder for the newly created
document objectcontentStream
- (optional) the content stream that must be stored for
the newly created document objectversioningState
- (optional) specifies what the versioning state of the
newly created object must be (default is
VersioningState.MAJOR
)policies
- (optional) a list of policy IDs that must be applied
to the newly created document objectaddAces
- (optional) a list of ACEs that must be added to the
newly created document object, either using the ACL from
folderId
if specified, or being applied if no
folderId
is specifiedremoveAces
- (optional) a list of ACEs that must be removed from
the newly created document object, either using the ACL from
folderId
if specified, or being ignored if no
folderId
is specifiedextension
- extension dataString createDocumentFromSource(String repositoryId, String sourceId, Properties properties, String folderId, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
repositoryId
- the identifier for the repositorysourceId
- the identifier for the source documentproperties
- the property values that must be applied to the newly created
document objectfolderId
- (optional) if specified, the identifier for the
folder that must be the parent folder for the newly created
document objectversioningState
- (optional) specifies what the versioning state of the
newly created object must be (default is
VersioningState.MAJOR
)policies
- (optional) a list of policy IDs that must be applied
to the newly created document objectaddAces
- (optional) a list of ACEs that must be added to the
newly created document object, either using the ACL from
folderId
if specified, or being applied if no
folderId
is specifiedremoveAces
- (optional) a list of ACEs that must be removed from
the newly created document object, either using the ACL from
folderId
if specified, or being ignored if no
folderId
is specifiedextension
- extension dataString createFolder(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
repositoryId
- the identifier for the repositoryproperties
- the property values that must be applied to the newly created
folder objectfolderId
- the identifier for the parent folderpolicies
- (optional) a list of policy IDs that must be applied
to the newly created folder objectaddAces
- (optional) a list of ACEs that must be added to the
newly created folder object, either using the ACL from
folderId
if specified, or being applied if no
folderId
is specifiedremoveAces
- (optional) a list of ACEs that must be removed from
the newly created folder object, either using the ACL from
folderId
if specified, or being ignored if no
folderId
is specifiedextension
- extension dataString createRelationship(String repositoryId, Properties properties, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
repositoryId
- the identifier for the repositoryproperties
- the property values that must be applied to the newly created
relationship objectpolicies
- (optional) a list of policy IDs that must be applied
to the newly created relationship objectaddAces
- (optional) a list of ACEs that must be added to the
newly created relationship object, either using the ACL from
folderId
if specified, or being applied if no
folderId
is specifiedremoveAces
- (optional) a list of ACEs that must be removed from
the newly created relationship object, either using the ACL
from folderId
if specified, or being ignored if no
folderId
is specifiedextension
- extension dataString createPolicy(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
repositoryId
- the identifier for the repositoryproperties
- the property values that must be applied to the newly created
policy objectfolderId
- (optional) if specified, the identifier for the
folder that must be the parent folder for the newly created
policy objectpolicies
- (optional) a list of policy IDs that must be applied
to the newly created policy objectaddAces
- (optional) a list of ACEs that must be added to the
newly created policy object, either using the ACL from
folderId
if specified, or being applied if no
folderId
is specifiedremoveAces
- (optional) a list of ACEs that must be removed from
the newly created policy object, either using the ACL from
folderId
if specified, or being ignored if no
folderId
is specifiedextension
- extension dataString createItem(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
repositoryId
- the identifier for the repositoryproperties
- the property values that must be applied to the newly created
policy objectfolderId
- (optional) if specified, the identifier for the
folder that must be the parent folder for the newly created
policy objectpolicies
- (optional) a list of policy IDs that must be applied
to the newly created policy objectaddAces
- (optional) a list of ACEs that must be added to the
newly created policy object, either using the ACL from
folderId
if specified, or being applied if no
folderId
is specifiedremoveAces
- (optional) a list of ACEs that must be removed from
the newly created policy object, either using the ACL from
folderId
if specified, or being ignored if no
folderId
is specifiedextension
- extension dataAllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectextension
- extension dataObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectfilter
- (optional) a comma-separated list of query names that
defines which properties must be returned by the repository
(default is repository specific)includeAllowableActions
- (optional) if true
, then the repository must
return the allowable actions for the object (default is
false
)includeRelationships
- (optional) indicates what relationships in which the
object participates must be returned (default is
IncludeRelationships.NONE
)renditionFilter
- (optional) indicates what set of renditions the
repository must return whose kind matches this filter (default
is "cmis:none"
)includePolicyIds
- (optional) if true
, then the repository must
return the policy ids for the object (default is false
)includeAcl
- (optional) if true
, then the repository must
return the ACL for the object (default is false
)extension
- extension dataProperties getProperties(String repositoryId, String objectId, String filter, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectfilter
- (optional) a comma-separated list of query names that
defines which properties must be returned by the repository
(default is repository specific)extension
- extension dataList<RenditionData> getRenditions(String repositoryId, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectrenditionFilter
- (optional) indicates what set of renditions the
repository must return whose kind matches this filter (default
is "cmis:none"
)maxItems
- (optional) the maximum number of items to return in a
response (default is repository specific)skipCount
- (optional) number of potential results that the
repository must skip/page over before returning any results
(default is 0)extension
- extension dataObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
repositoryId
- the identifier for the repositorypath
- the path to the objectfilter
- (optional) a comma-separated list of query names that
defines which properties must be returned by the repository
(default is repository specific)includeAllowableActions
- (optional) if true
, then the repository must
return the allowable actions for the object (default is
false
)includeRelationships
- (optional) indicates what relationships in which the
object participates must be returned (default is
IncludeRelationships.NONE
)renditionFilter
- (optional) indicates what set of renditions the
repository must return whose kind matches this filter (default
is "cmis:none"
)includePolicyIds
- (optional) if true
, then the repository must
return the policy ids for the object (default is false
)includeAcl
- (optional) if true
, then the repository must
return the ACL for the object (default is false
)extension
- extension dataContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectextension
- extension datavoid updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken, Properties properties, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the object. The repository might return a
different/new object idchangeToken
- (optional) the last change token of this object that
the client received. The repository might return a new change
token (default is null
)properties
- the updated property values that must be applied to the objectextension
- extension dataList<BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties(String repositoryId, List<BulkUpdateObjectIdAndChangeToken> objectIdsAndChangeTokens, Properties properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectIdsAndChangeTokens
- the ids and change tokens of the objects to updateproperties
- the properties to setaddSecondaryTypeIds
- the secondary types to applyremoveSecondaryTypeIds
- the secondary types to removeextension
- extension datavoid moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the object. The repository might return a
different/new object idtargetFolderId
- the identifier for the target foldersourceFolderId
- the identifier for the source folderextension
- extension datavoid deleteObject(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectallVersions
- (optional) If true
then delete all versions
of the document, otherwise delete only the document object
specified (default is true
)extension
- extension dataFailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension)
repositoryId
- the identifier for the repositoryfolderId
- the identifier for the folderallVersions
- (optional) If true
then delete all versions
of the document, otherwise delete only the document object
specified (default is true
)unfileObjects
- (optional) defines how the repository must process
file-able child- or descendant-objects (default is
UnfileObject.DELETE
)continueOnFailure
- (optional) If true
, then the repository
should continue attempting to perform this operation even if
deletion of a child- or descendant-object in the specified
folder cannot be deleted (default is false
)extension
- extension datavoid setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension)
contentStream
is consumed but not closed by
this method.repositoryId
- the identifier for the repositoryobjectId
- the identifier for the object. The repository might return a
different/new object idoverwriteFlag
- (optional) If true
, then the repository must
replace the existing content stream for the object (if any)
with the input content stream. If If false
, then the
repository must only set the input content stream for the
object if the object currently does not have a content stream
(default is true
)changeToken
- (optional) the last change token of this object that
the client received. The repository might return a new change
token (default is null
)contentStream
- the content streamextension
- extension datavoid deleteContentStream(String repositoryId, Holder<String> objectId, Holder<String> changeToken, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the object. The repository might return a
different/new object idchangeToken
- (optional) the last change token of this object that
the client received. The repository might return a new change
token (default is null
)extension
- extension datavoid appendContentStream(String repositoryId, Holder<String> objectId, Holder<String> changeToken, ContentStream contentStream, boolean isLastChunk, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the object. The repository might return a
different/new object idchangeToken
- (optional) the last change token of this object that
the client received. The repository might return a new change
token (default is null
)contentStream
- the content stream to appendisLastChunk
- indicates if this content stream is the last chunkextension
- extension dataCopyright © 2009–2017 The Apache Software Foundation. All rights reserved.