|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.cmis.A_CmsCmisRepository
public abstract class A_CmsCmisRepository
Abstract repository superclass.
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.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD |
| Constructor Summary | |
|---|---|
A_CmsCmisRepository()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opencms.repository.I_CmsRepository |
|---|
initializeCms, setFilter, setName |
| Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
addConfigurationParameter, initConfiguration |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public A_CmsCmisRepository()
| Method Detail |
|---|
public void addObjectToFolder(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String folderId,
boolean allVersions)
I_CmsCmisRepository
addObjectToFolder in interface I_CmsCmisRepositorycontext - 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 in interface I_CmsCmisRepositorycontext - the call contextobjectId - the object idaddAces - the ACEs to addremoveAces - the ACEs to removeaclPropagation - the ACL propagation
I_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 in interface I_CmsCmisRepositorycontext - the call contextobjectId - the object idaces - the access control entriesaclPropagation - the propagation mode
I_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 in interface I_CmsCmisRepositorycontext - 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 in interface I_CmsCmisRepositorycontext - 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 in interface I_CmsCmisRepositorycontext - 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 in interface I_CmsCmisRepositorycontext - 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 in interface I_CmsCmisRepositorycontext - the call contextproperties - the propertiesfolderId - the folder idpolicies - the policiesaddAces - the ACEs to addremoveAces - the ACEs to remove
I_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 in interface I_CmsCmisRepositorycontext - the call contextobjectId - the object idversionSeriesId - the version series idfilter - the property filter stringincludeAllowableActions - the flag to include allowable actions
I_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 in interface I_CmsCmisRepositorycontext - the call contextobjectId - the object idfilter - the property filter
I_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 in interface I_CmsCmisRepositorycontext - 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 return
I_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 in interface I_CmsCmisRepositorycontext - 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 ACLs
I_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 in interface I_CmsCmisRepositorycontext - the call contextobjectId - the object idversionSeriesId - the version series idmajor - flag to access the latest major versionfilter - the property filter string
I_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 in interface I_CmsCmisRepositorycontext - 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 skip
I_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 in interface I_CmsCmisRepositorycontext - 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 in interface I_CmsCmisRepositorycontext - 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 range
protected java.lang.String getAcePrincipalName(CmsObject cms,
CmsUUID principalId)
cms - the current CMS contextprincipalId - the principal id from the ACE
protected java.util.List<CmsProperty> getOpenCmsProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties)
properties - the CMIS properties
protected java.lang.RuntimeException notSupported()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||