public class CmsCmisResourceHelper extends java.lang.Object implements I_CmsCmisObjectHelper
Constructor and Description |
---|
CmsCmisResourceHelper(CmsCmisRepository repository)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.chemistry.opencmis.commons.data.Acl |
collectAcl(CmsObject cms,
CmsResource resource,
boolean onlyBasic)
Compiles the ACL for a file or folder.
|
protected org.apache.chemistry.opencmis.commons.data.AllowableActions |
collectAllowableActions(CmsObject cms,
CmsResource file)
Compiles the allowable actions for a file or folder.
|
protected org.apache.chemistry.opencmis.commons.data.ObjectData |
collectObjectData(CmsCmisCallContext context,
CmsObject cms,
CmsResource resource,
java.util.Set<java.lang.String> filter,
java.lang.String renditionFilter,
boolean includeAllowableActions,
boolean includeAcl,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships)
Fills in an ObjectData record.
|
protected org.apache.chemistry.opencmis.commons.data.Properties |
collectProperties(CmsObject cms,
CmsResource resource,
java.util.Set<java.lang.String> orgfilter,
org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
Gathers all base properties of a file or folder.
|
protected java.util.List<org.apache.chemistry.opencmis.commons.data.RenditionData> |
collectRenditions(CmsObject cms,
CmsResource resource,
java.lang.String renditionFilterString,
org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
Collects renditions for a resource.
|
void |
deleteObject(CmsCmisCallContext context,
java.lang.String objectId,
boolean allVersions)
Deletes a CMIS object.
|
org.apache.chemistry.opencmis.commons.data.Acl |
getAcl(CmsCmisCallContext context,
java.lang.String objectId,
boolean onlyBasicPermissions)
Gets the ACL for an object.
|
org.apache.chemistry.opencmis.commons.data.AllowableActions |
getAllowableActions(CmsCmisCallContext context,
java.lang.String objectId)
Gets the allowable actions for an object.
|
org.apache.chemistry.opencmis.commons.data.ObjectData |
getObject(CmsCmisCallContext context,
java.lang.String objectId,
java.lang.String filter,
boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
boolean includePolicyIds,
boolean includeAcl)
Gets the data for a CMIS object.
|
public CmsCmisResourceHelper(CmsCmisRepository repository)
repository
- the underlying repositorypublic void deleteObject(CmsCmisCallContext context, java.lang.String objectId, boolean allVersions)
deleteObject
in interface I_CmsCmisObjectHelper
context
- the call contextobjectId
- the id of the object to deleteallVersions
- flag to delete all versionpublic org.apache.chemistry.opencmis.commons.data.Acl getAcl(CmsCmisCallContext context, java.lang.String objectId, boolean onlyBasicPermissions)
getAcl
in interface I_CmsCmisObjectHelper
context
- the call contextobjectId
- the object idonlyBasicPermissions
- flag to only get basic permissionspublic org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(CmsCmisCallContext context, java.lang.String objectId)
getAllowableActions
in interface I_CmsCmisObjectHelper
context
- the call contextobjectId
- the object idpublic org.apache.chemistry.opencmis.commons.data.ObjectData getObject(CmsCmisCallContext context, java.lang.String objectId, java.lang.String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, boolean includePolicyIds, boolean includeAcl)
getObject
in interface I_CmsCmisObjectHelper
context
- the CMIS call contextobjectId
- the id of the objectfilter
- the property filterincludeAllowableActions
- flag to include allowable actionsincludeRelationships
- flag to include relationshipsrenditionFilter
- the rendition filter stringincludePolicyIds
- flag to include policy idsincludeAcl
- flag to include ACLsprotected org.apache.chemistry.opencmis.commons.data.Acl collectAcl(CmsObject cms, CmsResource resource, boolean onlyBasic) throws CmsException
cms
- the CMS contextresource
- the resource for which to collect the ACLsonlyBasic
- flag to only include basic ACEsCmsException
- if something goes wrongprotected org.apache.chemistry.opencmis.commons.data.AllowableActions collectAllowableActions(CmsObject cms, CmsResource file)
cms
- the current CMS contextfile
- the resource for which we want the allowable actionsprotected org.apache.chemistry.opencmis.commons.data.ObjectData collectObjectData(CmsCmisCallContext context, CmsObject cms, CmsResource resource, java.util.Set<java.lang.String> filter, java.lang.String renditionFilter, boolean includeAllowableActions, boolean includeAcl, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships) throws CmsException
context
- the call contextcms
- the CMS contextresource
- the resource for which we want the ObjectDatafilter
- the property filterrenditionFilter
- the rendition filter stringincludeAllowableActions
- true if the allowable actions should be includedincludeAcl
- true if the ACL entries should be includedincludeRelationships
- true if relationships should be includedCmsException
- if something goes wrongprotected org.apache.chemistry.opencmis.commons.data.Properties collectProperties(CmsObject cms, CmsResource resource, java.util.Set<java.lang.String> orgfilter, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
cms
- the current CMS contextresource
- the file for which we want the propertiesorgfilter
- the property filterobjectInfo
- the object info handlerprotected java.util.List<org.apache.chemistry.opencmis.commons.data.RenditionData> collectRenditions(CmsObject cms, CmsResource resource, java.lang.String renditionFilterString, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
cms
- the CMS contextresource
- the resource for which we want the renditionsrenditionFilterString
- the filter string for the renditionsobjectInfo
- the object info in which the renditions should be saved