|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.cmis.CmsCmisResourceHelper
public class CmsCmisResourceHelper
Helper class for CRUD operations on resources.
| Constructor Summary | |
|---|---|
CmsCmisResourceHelper(CmsCmisRepository repository)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsCmisResourceHelper(CmsCmisRepository repository)
repository - the underlying repository| Method Detail |
|---|
public void deleteObject(CmsCmisCallContext context,
java.lang.String objectId,
boolean allVersions)
deleteObject in interface I_CmsCmisObjectHelpercontext - the call contextobjectId - the id of the object to deleteallVersions - flag to delete all version
public org.apache.chemistry.opencmis.commons.data.Acl getAcl(CmsCmisCallContext context,
java.lang.String objectId,
boolean onlyBasicPermissions)
getAcl in interface I_CmsCmisObjectHelpercontext - the call contextobjectId - the object idonlyBasicPermissions - flag to only get basic permissions
public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(CmsCmisCallContext context,
java.lang.String objectId)
getAllowableActions in interface I_CmsCmisObjectHelpercontext - the call contextobjectId - the object id
public 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_CmsCmisObjectHelpercontext - 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 ACLs
protected 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 ACEs
CmsException - if something goes wrong
protected 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 actions
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)
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 included
CmsException - if something goes wrong
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)
cms - the current CMS contextresource - the file for which we want the propertiesorgfilter - the property filterobjectInfo - the object info handler
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)
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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||