org.alfresco.opencmis
Class CMISConnector

java.lang.Object
  extended by org.alfresco.opencmis.CMISConnector
All Implemented Interfaces:
java.util.EventListener, org.alfresco.repo.tenant.TenantDeployer, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class CMISConnector
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.alfresco.repo.tenant.TenantDeployer

Bridge connecting Alfresco and OpenCMIS.


Nested Class Summary
static class CMISConnector.AccessPermissionComparator
           
 
Field Summary
static java.lang.String ALFRESCO_EXTENSION_NAMESPACE
           
static java.lang.String APPLIED_ASPECTS
           
static java.lang.String ASPECTS
           
static java.lang.String ASPECTS_TO_ADD
           
static java.lang.String ASPECTS_TO_REMOVE
           
static java.lang.String ASSOC_ID_PREFIX
           
static java.lang.String CMIS_CHANGELOG_AUDIT_APPLICATION
           
static java.lang.String CMIS_NAMESPACE
           
static char ID_SEPERATOR
           
static java.lang.String PROPERTIES
           
static java.lang.String PWC_VERSION_LABEL
           
static java.lang.String RENDITION_NONE
           
static java.lang.String SET_ASPECTS
           
static java.lang.String UNVERSIONED_VERSION_LABEL
           
 
Constructor Summary
CMISConnector()
           
 
Method Summary
 void applyACL(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type, org.apache.chemistry.opencmis.commons.data.Acl aces)
          Sets the given ACL.
 void applyACL(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces)
          Applies the given ACLs.
 void applyPolicies(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type, java.util.List policies)
           
 void applyVersioningState(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
          Applies a versioning state to a document.
 void checkChildObjectType(org.alfresco.opencmis.dictionary.CMISNodeInfo folderInfo, java.lang.String childType)
          Checks if a child of a given type can be added to a given folder.
 org.apache.chemistry.opencmis.commons.data.ObjectData createCMISObject(org.alfresco.opencmis.dictionary.CMISNodeInfo info, FileInfo node, java.lang.String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, boolean includePolicyIds, boolean includeAcl)
          Creates the CMIS object for a node.
 org.apache.chemistry.opencmis.commons.data.ObjectData createCMISObject(org.alfresco.opencmis.dictionary.CMISNodeInfo info, java.lang.String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, boolean includePolicyIds, boolean includeAcl)
           
 CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.AssociationRef assocRef)
          Creates an object info object.
 CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Creates an object info object.
 CMISNodeInfoImpl createNodeInfo(java.lang.String objectId)
          Creates an object info object.
 java.lang.String createObjectId(org.alfresco.service.cmr.repository.NodeRef currentVersionNodeRef)
          Compiles a CMIS object if for a live node.
 void destroy()
           
 org.apache.chemistry.opencmis.commons.data.Acl getACL(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean onlyBasicPermissions)
           
 org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(org.alfresco.opencmis.dictionary.CMISNodeInfo info)
           
 java.util.List getAspectExtensions(org.alfresco.opencmis.dictionary.CMISNodeInfo info, java.lang.String filter, java.util.Set alreadySetProperties)
          Builds aspect extension.
 org.apache.chemistry.opencmis.commons.data.Properties getAssocProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info, java.lang.String filter)
           
 AuthenticationService getAuthenticationService()
           
 CheckOutCheckInService getCheckOutCheckInService()
           
 org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges(org.apache.chemistry.opencmis.commons.spi.Holder changeLogToken, java.math.BigInteger maxItems)
          Returns content changes.
 ContentService getContentService()
           
 org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(org.alfresco.opencmis.dictionary.CMISNodeInfo info, java.lang.String streamId, java.math.BigInteger offset, java.math.BigInteger length)
          Gets the content from the repository.
 java.lang.String getCurrentVersionId(java.lang.String objectId)
          Cuts of the version information from an object id.
 DescriptorService getDescriptorService()
           
 org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
           
 FileFolderService getFileFolderService()
           
 java.lang.String getIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties, java.lang.String propertyId)
          Returns the value of the given property if it exists and is of the correct type.
 LockService getLockService()
          Sets the lock service.
 org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
           
 java.lang.String getName(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.lang.String getNameProperty(org.apache.chemistry.opencmis.commons.data.Properties properties, java.lang.String fallback)
           
 org.apache.chemistry.opencmis.commons.data.Properties getNodeProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info, FileInfo node, java.lang.String filter, org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type)
           
 org.apache.chemistry.opencmis.commons.data.Properties getNodeProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info, java.lang.String filter)
           
 org.alfresco.service.cmr.repository.NodeService getNodeService()
           
 org.apache.chemistry.opencmis.commons.data.ObjectList getObjectRelationships(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, java.lang.String typeId, java.lang.String filter, java.lang.Boolean includeAllowableActions, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
           
 java.math.BigInteger getObjectsDefaultDepth()
           
 java.math.BigInteger getObjectsDefaultMaxItems()
           
 java.lang.String getObjectTypeIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
           
 org.alfresco.opencmis.dictionary.CMISDictionaryService getOpenCMISDictionaryService()
           
 java.lang.String getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.lang.String getProxyUser()
           
 java.util.List getRelationships(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships)
           
 java.util.List getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String renditionFilter, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
           
 java.lang.String getRepositoryId()
          Returns the repository id.
 org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()
          Returns the repository info object.
 org.alfresco.service.cmr.repository.NodeRef getRootNodeRef()
          Returns the root folder node ref.
 org.alfresco.service.cmr.repository.StoreRef getRootStoreRef()
           
 org.alfresco.service.cmr.search.SearchService getSearchService()
           
 java.lang.String getSourceIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
           
 java.lang.String getStringProperty(org.apache.chemistry.opencmis.commons.data.Properties properties, java.lang.String propertyId)
          Returns the value of the given property if it exists and is of the correct type.
 java.lang.String getTargetIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
           
 TransactionService getTransactionService()
           
 org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(org.alfresco.service.cmr.repository.AssociationRef assocRef)
          Returns the type definition of an association or null if no type definition could be found.
 org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Returns the type definition of a node or null if no type definition could be found.
 org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(java.lang.String cmisTypeId)
          Returns the type definition of a node or null if no type definition could be found.
 org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getTypeForCreate(java.lang.String cmisTypeId, org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseTypeId)
          Returns the definition after it has checked if the type can be used for object creation.
 java.math.BigInteger getTypesDefaultDepth()
           
 java.math.BigInteger getTypesDefaultMaxItems()
           
 VersionService getVersionService()
           
 void init()
           
 void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
           
 void onDisableTenant()
           
 void onEnableTenant()
           
 org.apache.chemistry.opencmis.commons.data.ObjectList query(java.lang.String statement, java.lang.Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setAuditService(AuditService auditService)
          Sets the audit service.
 void setAuthenticationService(AuthenticationService authenticationService)
          Sets the authentication service.
 void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
          Sets the checkOut/checkIn service.
 void setContentService(ContentService contentService)
          Sets the content service.
 void setDescriptorService(DescriptorService descriptorService)
          Sets the descriptor service.
 void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
           
 void setFileFolderService(FileFolderService fileFolderService)
          Sets the file folder service.
 void setLockService(LockService lockService)
           
 void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
          Sets the MIME type service.
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
          Sets the namespace service.
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Sets the node service.
 void setObjectsDefaultDepth(java.math.BigInteger objectsDefaultDepth)
           
 void setObjectsDefaultMaxItems(java.math.BigInteger objectsDefaultMaxItems)
           
 void setOpenCMISDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)
           
 void setOpenCMISQueryService(CMISQueryService cmisQueryService)
          Sets the OpenCMIS query service.
 void setPermissionModelDao(ModelDAO permissionModelDao)
          Sets the permission model DAO.
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
          Sets the permission service.
 void setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type, org.apache.chemistry.opencmis.commons.data.Properties properties, java.lang.String[] exclude)
          Sets property values.
 void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type, org.apache.chemistry.opencmis.commons.data.PropertyData property)
          Sets a property value.
 void setProxyUser(java.lang.String proxyUser)
           
 void setRenditionKindMapping(java.util.Map renditionKinds)
          Set rendition kind mapping.
 void setrenditionService(RenditionService renditionService)
          Sets the rendition service.
 void setRootPath(java.lang.String path)
          Sets the root path.
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
          Sets the search service.
 void setStore(java.lang.String store)
          Sets the root store.
 void setTenantAdminService(TenantAdminService tenantAdminService)
          Sets the tenant admin service.
 void setTransactionService(TransactionService transactionService)
          Sets the transaction service.
 void setTypesDefaultDepth(java.math.BigInteger typesDefaultDepth)
           
 void setTypesDefaultMaxItems(java.math.BigInteger typesDefaultMaxItems)
           
 void setVersionService(VersionService versionService)
          Sets the version service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_SEPERATOR

public static final char ID_SEPERATOR
See Also:
Constant Field Values

ASSOC_ID_PREFIX

public static final java.lang.String ASSOC_ID_PREFIX
See Also:
Constant Field Values

PWC_VERSION_LABEL

public static final java.lang.String PWC_VERSION_LABEL
See Also:
Constant Field Values

UNVERSIONED_VERSION_LABEL

public static final java.lang.String UNVERSIONED_VERSION_LABEL
See Also:
Constant Field Values

RENDITION_NONE

public static final java.lang.String RENDITION_NONE
See Also:
Constant Field Values

CMIS_CHANGELOG_AUDIT_APPLICATION

public static final java.lang.String CMIS_CHANGELOG_AUDIT_APPLICATION
See Also:
Constant Field Values

ALFRESCO_EXTENSION_NAMESPACE

public static final java.lang.String ALFRESCO_EXTENSION_NAMESPACE
See Also:
Constant Field Values

CMIS_NAMESPACE

public static final java.lang.String CMIS_NAMESPACE
See Also:
Constant Field Values

ASPECTS

public static final java.lang.String ASPECTS
See Also:
Constant Field Values

SET_ASPECTS

public static final java.lang.String SET_ASPECTS
See Also:
Constant Field Values

APPLIED_ASPECTS

public static final java.lang.String APPLIED_ASPECTS
See Also:
Constant Field Values

ASPECTS_TO_ADD

public static final java.lang.String ASPECTS_TO_ADD
See Also:
Constant Field Values

ASPECTS_TO_REMOVE

public static final java.lang.String ASPECTS_TO_REMOVE
See Also:
Constant Field Values

PROPERTIES

public static final java.lang.String PROPERTIES
See Also:
Constant Field Values
Constructor Detail

CMISConnector

public CMISConnector()
Method Detail

setStore

public void setStore(java.lang.String store)
Sets the root store.

Parameters:
store - store_type://store_id

setRootPath

public void setRootPath(java.lang.String path)
Sets the root path.

Parameters:
path - path within default store

getTypesDefaultMaxItems

public java.math.BigInteger getTypesDefaultMaxItems()

setTypesDefaultMaxItems

public void setTypesDefaultMaxItems(java.math.BigInteger typesDefaultMaxItems)

getTypesDefaultDepth

public java.math.BigInteger getTypesDefaultDepth()

setTypesDefaultDepth

public void setTypesDefaultDepth(java.math.BigInteger typesDefaultDepth)

getObjectsDefaultMaxItems

public java.math.BigInteger getObjectsDefaultMaxItems()

setObjectsDefaultMaxItems

public void setObjectsDefaultMaxItems(java.math.BigInteger objectsDefaultMaxItems)

getObjectsDefaultDepth

public java.math.BigInteger getObjectsDefaultDepth()

setObjectsDefaultDepth

public void setObjectsDefaultDepth(java.math.BigInteger objectsDefaultDepth)

setRenditionKindMapping

public void setRenditionKindMapping(java.util.Map renditionKinds)
Set rendition kind mapping.


setDescriptorService

public void setDescriptorService(DescriptorService descriptorService)
Sets the descriptor service.


getDescriptorService

public DescriptorService getDescriptorService()

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service.


getNodeService

public org.alfresco.service.cmr.repository.NodeService getNodeService()

setVersionService

public void setVersionService(VersionService versionService)
Sets the version service.


getVersionService

public VersionService getVersionService()

setCheckOutCheckInService

public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
Sets the checkOut/checkIn service.


getCheckOutCheckInService

public CheckOutCheckInService getCheckOutCheckInService()

getLockService

public LockService getLockService()
Sets the lock service.


setLockService

public void setLockService(LockService lockService)

setContentService

public void setContentService(ContentService contentService)
Sets the content service.


getContentService

public ContentService getContentService()

setrenditionService

public void setrenditionService(RenditionService renditionService)
Sets the rendition service.


setFileFolderService

public void setFileFolderService(FileFolderService fileFolderService)
Sets the file folder service.


getFileFolderService

public FileFolderService getFileFolderService()

setTenantAdminService

public void setTenantAdminService(TenantAdminService tenantAdminService)
Sets the tenant admin service.


setTransactionService

public void setTransactionService(TransactionService transactionService)
Sets the transaction service.


getTransactionService

public TransactionService getTransactionService()

setAuthenticationService

public void setAuthenticationService(AuthenticationService authenticationService)
Sets the authentication service.


getAuthenticationService

public AuthenticationService getAuthenticationService()

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Sets the permission service.


setPermissionModelDao

public void setPermissionModelDao(ModelDAO permissionModelDao)
Sets the permission model DAO.


setOpenCMISDictionaryService

public void setOpenCMISDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)

getOpenCMISDictionaryService

public org.alfresco.opencmis.dictionary.CMISDictionaryService getOpenCMISDictionaryService()

setOpenCMISQueryService

public void setOpenCMISQueryService(CMISQueryService cmisQueryService)
Sets the OpenCMIS query service.


setMimetypeService

public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the MIME type service.


getMimetypeService

public org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()

setAuditService

public void setAuditService(AuditService auditService)
Sets the audit service.


setNamespaceService

public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Sets the namespace service.


setSearchService

public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
Sets the search service.


getSearchService

public org.alfresco.service.cmr.search.SearchService getSearchService()

setDictionaryService

public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)

getDictionaryService

public org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()

setProxyUser

public void setProxyUser(java.lang.String proxyUser)

getProxyUser

public java.lang.String getProxyUser()

init

public void init()
Specified by:
init in interface org.alfresco.repo.tenant.TenantDeployer

destroy

public void destroy()
Specified by:
destroy in interface org.alfresco.repo.tenant.TenantDeployer

onEnableTenant

public void onEnableTenant()
Specified by:
onEnableTenant in interface org.alfresco.repo.tenant.TenantDeployer

onDisableTenant

public void onDisableTenant()
Specified by:
onDisableTenant in interface org.alfresco.repo.tenant.TenantDeployer

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

onApplicationEvent

public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

getRootStoreRef

public org.alfresco.service.cmr.repository.StoreRef getRootStoreRef()

getRootNodeRef

public org.alfresco.service.cmr.repository.NodeRef getRootNodeRef()
Returns the root folder node ref.


getName

public java.lang.String getName(org.alfresco.service.cmr.repository.NodeRef nodeRef)

getCurrentVersionId

public java.lang.String getCurrentVersionId(java.lang.String objectId)
Cuts of the version information from an object id.


createNodeInfo

public CMISNodeInfoImpl createNodeInfo(java.lang.String objectId)
Creates an object info object.


createNodeInfo

public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Creates an object info object.


createNodeInfo

public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.AssociationRef assocRef)
Creates an object info object.


createObjectId

public java.lang.String createObjectId(org.alfresco.service.cmr.repository.NodeRef currentVersionNodeRef)
Compiles a CMIS object if for a live node.


getType

public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Returns the type definition of a node or null if no type definition could be found.


getType

public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(org.alfresco.service.cmr.repository.AssociationRef assocRef)
Returns the type definition of an association or null if no type definition could be found.


getType

public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(java.lang.String cmisTypeId)
Returns the type definition of a node or null if no type definition could be found.


getTypeForCreate

public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getTypeForCreate(java.lang.String cmisTypeId,
                                                                               org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseTypeId)
Returns the definition after it has checked if the type can be used for object creation.


applyVersioningState

public void applyVersioningState(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                 org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
Applies a versioning state to a document.


checkChildObjectType

public void checkChildObjectType(org.alfresco.opencmis.dictionary.CMISNodeInfo folderInfo,
                                 java.lang.String childType)
Checks if a child of a given type can be added to a given folder.


createCMISObject

public org.apache.chemistry.opencmis.commons.data.ObjectData createCMISObject(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
                                                                              FileInfo node,
                                                                              java.lang.String filter,
                                                                              boolean includeAllowableActions,
                                                                              org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                              java.lang.String renditionFilter,
                                                                              boolean includePolicyIds,
                                                                              boolean includeAcl)
Creates the CMIS object for a node.


createCMISObject

public org.apache.chemistry.opencmis.commons.data.ObjectData createCMISObject(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
                                                                              java.lang.String filter,
                                                                              boolean includeAllowableActions,
                                                                              org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                              java.lang.String renditionFilter,
                                                                              boolean includePolicyIds,
                                                                              boolean includeAcl)

getPath

public java.lang.String getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)

getContentStream

public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
                                                                                 java.lang.String streamId,
                                                                                 java.math.BigInteger offset,
                                                                                 java.math.BigInteger length)
Gets the content from the repository.


getNodeProperties

public org.apache.chemistry.opencmis.commons.data.Properties getNodeProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
                                                                               java.lang.String filter)

getNodeProperties

public org.apache.chemistry.opencmis.commons.data.Properties getNodeProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
                                                                               FileInfo node,
                                                                               java.lang.String filter,
                                                                               org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type)

getAssocProperties

public org.apache.chemistry.opencmis.commons.data.Properties getAssocProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
                                                                                java.lang.String filter)

getAspectExtensions

public java.util.List getAspectExtensions(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
                                          java.lang.String filter,
                                          java.util.Set alreadySetProperties)
Builds aspect extension.


getAllowableActions

public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(org.alfresco.opencmis.dictionary.CMISNodeInfo info)

getRelationships

public java.util.List getRelationships(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                       org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships)

getObjectRelationships

public org.apache.chemistry.opencmis.commons.data.ObjectList getObjectRelationships(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                                                                    org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection,
                                                                                    java.lang.String typeId,
                                                                                    java.lang.String filter,
                                                                                    java.lang.Boolean includeAllowableActions,
                                                                                    java.math.BigInteger maxItems,
                                                                                    java.math.BigInteger skipCount)

getRenditions

public java.util.List getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                    java.lang.String renditionFilter,
                                    java.math.BigInteger maxItems,
                                    java.math.BigInteger skipCount)

getACL

public org.apache.chemistry.opencmis.commons.data.Acl getACL(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                                             boolean onlyBasicPermissions)

applyACL

public void applyACL(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                     org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
                     org.apache.chemistry.opencmis.commons.data.Acl addAces,
                     org.apache.chemistry.opencmis.commons.data.Acl removeAces)
Applies the given ACLs.


applyACL

public void applyACL(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                     org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
                     org.apache.chemistry.opencmis.commons.data.Acl aces)
Sets the given ACL.


applyPolicies

public void applyPolicies(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                          org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
                          java.util.List policies)

query

public org.apache.chemistry.opencmis.commons.data.ObjectList query(java.lang.String statement,
                                                                   java.lang.Boolean includeAllowableActions,
                                                                   org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                   java.lang.String renditionFilter,
                                                                   java.math.BigInteger maxItems,
                                                                   java.math.BigInteger skipCount)

setProperties

public void setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                          org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
                          org.apache.chemistry.opencmis.commons.data.Properties properties,
                          java.lang.String[] exclude)
Sets property values.


setProperty

public void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                        org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
                        org.apache.chemistry.opencmis.commons.data.PropertyData property)
Sets a property value.


getContentChanges

public org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges(org.apache.chemistry.opencmis.commons.spi.Holder changeLogToken,
                                                                               java.math.BigInteger maxItems)
Returns content changes.


getStringProperty

public java.lang.String getStringProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
                                          java.lang.String propertyId)
Returns the value of the given property if it exists and is of the correct type.


getIdProperty

public java.lang.String getIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
                                      java.lang.String propertyId)
Returns the value of the given property if it exists and is of the correct type.


getNameProperty

public java.lang.String getNameProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
                                        java.lang.String fallback)

getObjectTypeIdProperty

public java.lang.String getObjectTypeIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)

getSourceIdProperty

public java.lang.String getSourceIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)

getTargetIdProperty

public java.lang.String getTargetIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)

getRepositoryInfo

public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()
Returns the repository info object.


getRepositoryId

public java.lang.String getRepositoryId()
Returns the repository id.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.