public abstract class A_CmsCmisRepository extends java.lang.Object implements I_CmsCmisRepository
This class was introduced to separate the CMIS methods which are not supported from those which are, so only unsupported operations and utility should go into this class.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CMIS_ALL
cmis:all permission.
|
static java.lang.String |
CMIS_READ
cmis:read permission.
|
static java.lang.String |
CMIS_WRITE
cmis:write permission.
|
protected CmsCmisTypeManager |
m_typeManager
The type manager instance.
|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
构造器和说明 |
---|
A_CmsCmisRepository() |
限定符和类型 | 方法和说明 |
---|---|
void |
addObjectToFolder(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String folderId,
boolean allVersions)
Adds an object to a folder (multifiling).
|
org.apache.chemistry.opencmis.commons.data.Acl |
applyAcl(CmsCmisCallContext context,
java.lang.String objectId,
org.apache.chemistry.opencmis.commons.data.Acl addAces,
org.apache.chemistry.opencmis.commons.data.Acl removeAces,
org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
Applies ACL to an object.
|
org.apache.chemistry.opencmis.commons.data.Acl |
applyAcl(CmsCmisCallContext context,
java.lang.String objectId,
org.apache.chemistry.opencmis.commons.data.Acl aces,
org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
Changes the ACL for an object.
|
void |
applyPolicy(CmsCmisCallContext context,
java.lang.String policyId,
java.lang.String objectId)
Applies a policy to an object.
|
void |
cancelCheckOut(CmsCmisCallContext context,
java.lang.String objectId)
Cancels a checkout.
|
void |
checkIn(CmsCmisCallContext context,
org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId,
boolean major,
org.apache.chemistry.opencmis.commons.data.Properties properties,
org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
java.lang.String checkinComment,
java.util.List<java.lang.String> policies,
org.apache.chemistry.opencmis.commons.data.Acl addAces,
org.apache.chemistry.opencmis.commons.data.Acl removeAces)
Checks in a document.
|
void |
checkOut(CmsCmisCallContext context,
org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId,
org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.Boolean> contentCopied)
Checks out an object.
|
java.lang.String |
createPolicy(CmsCmisCallContext context,
org.apache.chemistry.opencmis.commons.data.Properties properties,
java.lang.String folderId,
java.util.List<java.lang.String> policies,
org.apache.chemistry.opencmis.commons.data.Acl addAces,
org.apache.chemistry.opencmis.commons.data.Acl removeAces)
Creates a policy.
|
protected byte[] |
extractRange(byte[] content,
java.math.BigInteger offset,
java.math.BigInteger length)
Copies a range of bytes from an array into a new array.
|
protected java.lang.String |
getAcePrincipalName(CmsObject cms,
CmsUUID principalId)
Gets a user-readable name for a principal id read from an ACE.
|
java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectData> |
getAllVersions(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String versionSeriesId,
java.lang.String filter,
boolean includeAllowableActions)
Gets all versions of an object.
|
java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectData> |
getAppliedPolicies(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String filter)
Gets the policies for an object.
|
org.apache.chemistry.opencmis.commons.data.ObjectList |
getContentChanges(CmsCmisCallContext context,
org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> changeLogToken,
boolean includeProperties,
java.lang.String filter,
boolean includePolicyIds,
boolean includeAcl,
java.math.BigInteger maxItems)
Gets content changes from the repository.
|
org.apache.chemistry.opencmis.commons.data.ObjectData |
getObjectOfLatestVersion(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String versionSeriesId,
boolean major,
java.lang.String filter,
boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
boolean includePolicyIds,
boolean includeAcl)
Gets the object of the latest version.
|
protected java.util.List<CmsProperty> |
getOpenCmsProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties)
Helper method to create OpenCms property objects from a map of CMIS properties.
|
org.apache.chemistry.opencmis.commons.data.Properties |
getPropertiesOfLatestVersion(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String versionSeriesId,
boolean major,
java.lang.String filter)
Gets the properties of the latest version.
|
protected java.lang.RuntimeException |
notSupported()
Helper method to create exceptions for unsupported features.
|
org.apache.chemistry.opencmis.commons.data.ObjectList |
query(CmsCmisCallContext context,
java.lang.String statement,
boolean searchAllVersions,
boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
Performs a query on the repository.
|
void |
removeObjectFromFolder(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String folderId)
Unfiles an object from a folder.
|
void |
removePolicy(CmsCmisCallContext context,
java.lang.String policyId,
java.lang.String objectId)
Removes a policy from an object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDocument, createDocumentFromSource, createFolder, createRelationship, deleteContentStream, deleteObject, deleteTree, getAcl, getAllowableActions, getCheckedOutDocs, getChildren, getConfiguration, getContentStream, getDescendants, getDescription, getFilter, getFolderParent, getId, getName, getObject, getObjectByPath, getObjectParents, getObjectRelationships, getProperties, getRenditions, getRepositoryInfo, getTypeChildren, getTypeDefinition, getTypeDescendants, moveObject, setContentStream, updateProperties
initializeCms, setFilter, setName
addConfigurationParameter, initConfiguration
public static final java.lang.String CMIS_ALL
public static final java.lang.String CMIS_READ
public static final java.lang.String CMIS_WRITE
protected CmsCmisTypeManager m_typeManager
public void addObjectToFolder(CmsCmisCallContext context, java.lang.String objectId, java.lang.String folderId, boolean allVersions)
I_CmsCmisRepository
addObjectToFolder
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idfolderId
- the folder idallVersions
- flag to include all versionsI_CmsCmisRepository.addObjectToFolder(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, boolean)
public org.apache.chemistry.opencmis.commons.data.Acl applyAcl(CmsCmisCallContext context, java.lang.String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
I_CmsCmisRepository
applyAcl
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idaddAces
- the ACEs to addremoveAces
- the ACEs to removeaclPropagation
- the ACL propagationI_CmsCmisRepository.applyAcl(org.opencms.cmis.CmsCmisCallContext, java.lang.String, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.enums.AclPropagation)
public org.apache.chemistry.opencmis.commons.data.Acl applyAcl(CmsCmisCallContext context, java.lang.String objectId, org.apache.chemistry.opencmis.commons.data.Acl aces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
I_CmsCmisRepository
applyAcl
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idaces
- the access control entriesaclPropagation
- the propagation modeI_CmsCmisRepository.applyAcl(org.opencms.cmis.CmsCmisCallContext, java.lang.String, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.enums.AclPropagation)
public void applyPolicy(CmsCmisCallContext context, java.lang.String policyId, java.lang.String objectId)
I_CmsCmisRepository
applyPolicy
在接口中 I_CmsCmisRepository
context
- the call contextpolicyId
- the policy idobjectId
- the object idI_CmsCmisRepository.applyPolicy(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String)
public void cancelCheckOut(CmsCmisCallContext context, java.lang.String objectId)
I_CmsCmisRepository
cancelCheckOut
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idI_CmsCmisRepository.cancelCheckOut(org.opencms.cmis.CmsCmisCallContext, java.lang.String)
public void checkIn(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId, boolean major, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, java.lang.String checkinComment, java.util.List<java.lang.String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces)
I_CmsCmisRepository
checkIn
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idmajor
- the major version flagproperties
- the propertiescontentStream
- the content streamcheckinComment
- the check-in commentpolicies
- the policiesaddAces
- the ACEs to addremoveAces
- the ACEs to removeI_CmsCmisRepository.checkIn(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, boolean, org.apache.chemistry.opencmis.commons.data.Properties, org.apache.chemistry.opencmis.commons.data.ContentStream, java.lang.String, java.util.List, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.data.Acl)
public void checkOut(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.Boolean> contentCopied)
I_CmsCmisRepository
checkOut
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idcontentCopied
- indicator whether the content was copiedI_CmsCmisRepository.checkOut(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, org.apache.chemistry.opencmis.commons.spi.Holder)
public java.lang.String createPolicy(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.data.Properties properties, java.lang.String folderId, java.util.List<java.lang.String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces)
I_CmsCmisRepository
createPolicy
在接口中 I_CmsCmisRepository
context
- the call contextproperties
- the propertiesfolderId
- the folder idpolicies
- the policiesaddAces
- the ACEs to addremoveAces
- the ACEs to removeI_CmsCmisRepository.createPolicy(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.data.Properties, java.lang.String, java.util.List, org.apache.chemistry.opencmis.commons.data.Acl, org.apache.chemistry.opencmis.commons.data.Acl)
public java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAllVersions(CmsCmisCallContext context, java.lang.String objectId, java.lang.String versionSeriesId, java.lang.String filter, boolean includeAllowableActions)
I_CmsCmisRepository
getAllVersions
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idversionSeriesId
- the version series idfilter
- the property filter stringincludeAllowableActions
- the flag to include allowable actionsI_CmsCmisRepository.getAllVersions(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, java.lang.String, boolean)
public java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAppliedPolicies(CmsCmisCallContext context, java.lang.String objectId, java.lang.String filter)
I_CmsCmisRepository
getAppliedPolicies
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idfilter
- the property filterI_CmsCmisRepository.getAppliedPolicies(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String)
public org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges(CmsCmisCallContext context, org.apache.chemistry.opencmis.commons.spi.Holder<java.lang.String> changeLogToken, boolean includeProperties, java.lang.String filter, boolean includePolicyIds, boolean includeAcl, java.math.BigInteger maxItems)
I_CmsCmisRepository
getContentChanges
在接口中 I_CmsCmisRepository
context
- the call contextchangeLogToken
- the change log tokenincludeProperties
- flag to include propertiesfilter
- filter string for propertiesincludePolicyIds
- flag to include policy idsincludeAcl
- flag to include ACLsmaxItems
- maximum number of items to returnI_CmsCmisRepository.getContentChanges(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, boolean, java.lang.String, boolean, boolean, java.math.BigInteger)
public org.apache.chemistry.opencmis.commons.data.ObjectData getObjectOfLatestVersion(CmsCmisCallContext context, java.lang.String objectId, java.lang.String versionSeriesId, boolean major, java.lang.String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, boolean includePolicyIds, boolean includeAcl)
I_CmsCmisRepository
getObjectOfLatestVersion
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idversionSeriesId
- the version series idmajor
- flag to get the latest major versionfilter
- the property filterincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationshipsrenditionFilter
- filter string for renditionsincludePolicyIds
- flag to include policiesincludeAcl
- flag to include ACLsI_CmsCmisRepository.getObjectOfLatestVersion(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, boolean, java.lang.String, boolean, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships, java.lang.String, boolean, boolean)
public org.apache.chemistry.opencmis.commons.data.Properties getPropertiesOfLatestVersion(CmsCmisCallContext context, java.lang.String objectId, java.lang.String versionSeriesId, boolean major, java.lang.String filter)
I_CmsCmisRepository
getPropertiesOfLatestVersion
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the object idversionSeriesId
- the version series idmajor
- flag to access the latest major versionfilter
- the property filter stringI_CmsCmisRepository.getPropertiesOfLatestVersion(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String, boolean, java.lang.String)
public org.apache.chemistry.opencmis.commons.data.ObjectList query(CmsCmisCallContext context, java.lang.String statement, boolean searchAllVersions, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
I_CmsCmisRepository
query
在接口中 I_CmsCmisRepository
context
- the call contextstatement
- the querysearchAllVersions
- flag to search all versionsincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationshipsrenditionFilter
- the filter string for renditionsmaxItems
- the maximum number of items to returnskipCount
- the number of items to skipI_CmsCmisRepository.query(org.opencms.cmis.CmsCmisCallContext, java.lang.String, boolean, boolean, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships, java.lang.String, java.math.BigInteger, java.math.BigInteger)
public void removeObjectFromFolder(CmsCmisCallContext context, java.lang.String objectId, java.lang.String folderId)
I_CmsCmisRepository
removeObjectFromFolder
在接口中 I_CmsCmisRepository
context
- the call contextobjectId
- the id of the object to unfilefolderId
- the folder from which the object should be unfiledI_CmsCmisRepository.removeObjectFromFolder(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String)
public void removePolicy(CmsCmisCallContext context, java.lang.String policyId, java.lang.String objectId)
I_CmsCmisRepository
removePolicy
在接口中 I_CmsCmisRepository
context
- the call contextpolicyId
- the policy idobjectId
- the object idI_CmsCmisRepository.removePolicy(org.opencms.cmis.CmsCmisCallContext, java.lang.String, java.lang.String)
protected byte[] extractRange(byte[] content, java.math.BigInteger offset, java.math.BigInteger length)
content
- the content arrayoffset
- the start offset in the arraylength
- the length of the rangeprotected java.lang.String getAcePrincipalName(CmsObject cms, CmsUUID principalId)
cms
- the current CMS contextprincipalId
- the principal id from the ACEprotected java.util.List<CmsProperty> getOpenCmsProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties)
properties
- the CMIS propertiesprotected java.lang.RuntimeException notSupported()