public class CMISConnector
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.alfresco.repo.tenant.TenantDeployer
CmisService implementation
will need to use Alfresco.| Modifier and Type | Class and Description |
|---|---|
static class |
CMISConnector.AccessPermissionComparator |
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
CMISConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.List secondaryTypes) |
void |
appendContent(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo,
org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
boolean isLastChunk) |
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.
|
java.lang.String |
constructObjectId(org.alfresco.service.cmr.repository.AssociationRef assocRef,
java.lang.String versionLabel) |
java.lang.String |
constructObjectId(org.alfresco.service.cmr.repository.NodeRef incomingNodeRef,
java.lang.String versionLabel) |
java.lang.String |
constructObjectId(java.lang.String incomingObjectId) |
java.lang.String |
constructObjectId(java.lang.String incomingNodeId,
java.lang.String versionLabel) |
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(org.alfresco.service.cmr.repository.NodeRef nodeRef,
VersionHistory versionHistory)
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 |
createThumbnails(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Set thumbnailNames)
Asynchronously generates thumbnails for the given node.
|
void |
deleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean postActivity) |
void |
destroy() |
boolean |
disableBehaviour(org.alfresco.service.namespace.QName className) |
boolean |
disableBehaviour(org.alfresco.service.namespace.QName className,
org.alfresco.service.cmr.repository.NodeRef nodeRef) |
boolean |
enableBehaviour(org.alfresco.service.namespace.QName className) |
boolean |
enableBehaviour(org.alfresco.service.namespace.QName className,
org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
extractMetadata(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Extracts metadata for the node.
|
boolean |
filter(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Should the node be filtered?
|
org.apache.chemistry.opencmis.commons.data.Acl |
getACL(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean onlyBasicPermissions) |
ActivityPoster |
getActivityPoster() |
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() |
CMISQueryService |
getOpenCMISQueryService() |
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(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
Returns the repository info object.
|
org.apache.chemistry.opencmis.commons.enums.CmisVersion |
getRequestCmisVersion() |
RetryingTransactionHelper |
getRetryingTransactionHelper() |
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() |
SiteInfo |
getSite(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.util.Pair |
getSortProperty(java.lang.String cmisPropertyName,
java.lang.String direction) |
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() |
boolean |
isHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) |
void |
onDisableTenant() |
void |
onEnableTenant() |
boolean |
openHttpSession() |
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 |
removeSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.List secondaryTypes) |
void |
setActionService(ActionService actionService) |
void |
setActivityPoster(ActivityPoster activityPoster) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setAuditService(AuditService auditService)
Sets the audit service.
|
void |
setAuthenticationService(AuthenticationService authenticationService)
Sets the authentication service.
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
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 |
setHiddenAspect(HiddenAspect hiddenAspect) |
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 |
setObjectFilter(ObjectFilter objectFilter) |
void |
setObjectsDefaultDepth(java.math.BigInteger objectsDefaultDepth) |
void |
setObjectsDefaultMaxItems(java.math.BigInteger objectsDefaultMaxItems) |
void |
setOpenCMISDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService) |
void |
setOpenCMISDictionaryService11(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService) |
void |
setOpenCMISQueryService(CMISQueryService cmisQueryService)
Sets the OpenCMIS query service.
|
void |
setOpenCMISQueryService11(CMISQueryService cmisQueryService) |
void |
setOpenHttpSession(boolean openHttpSession) |
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,
java.lang.String propertyId,
java.io.Serializable value)
Sets a property value.
|
void |
setProxyUser(java.lang.String proxyUser)
Not implemented
|
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 |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setSingletonCache(org.alfresco.repo.cache.SimpleCache singletonCache) |
void |
setSiteService(SiteService siteService) |
void |
setStore(java.lang.String store)
Sets the root store.
|
void |
setTenantAdminService(TenantAdminService tenantAdminService)
Sets the tenant admin service.
|
void |
setThumbnailService(ThumbnailService thumbnailService) |
void |
setTransactionService(TransactionService transactionService)
Sets the transaction service.
|
void |
setTypesDefaultDepth(java.math.BigInteger typesDefaultDepth) |
void |
setTypesDefaultMaxItems(java.math.BigInteger typesDefaultMaxItems) |
void |
setup() |
void |
setVersionService(VersionService versionService)
Sets the version service.
|
public static final char ID_SEPERATOR
public static final java.lang.String ASSOC_ID_PREFIX
public static final java.lang.String PWC_VERSION_LABEL
public static final java.lang.String UNVERSIONED_VERSION_LABEL
public static final java.lang.String RENDITION_NONE
public static final java.lang.String CMIS_CHANGELOG_AUDIT_APPLICATION
public static final java.lang.String ALFRESCO_EXTENSION_NAMESPACE
public static final java.lang.String CMIS_NAMESPACE
public static final java.lang.String ASPECTS
public static final java.lang.String SET_ASPECTS
public static final java.lang.String APPLIED_ASPECTS
public static final java.lang.String ASPECTS_TO_ADD
public static final java.lang.String ASPECTS_TO_REMOVE
public static final java.lang.String PROPERTIES
public void setObjectFilter(ObjectFilter objectFilter)
public void setStore(java.lang.String store)
store - store_type://store_idpublic void setSiteService(SiteService siteService)
public void setActivityPoster(ActivityPoster activityPoster)
public ActivityPoster getActivityPoster()
public void setHiddenAspect(HiddenAspect hiddenAspect)
public boolean isHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void setRootPath(java.lang.String path)
path - path within default storepublic java.math.BigInteger getTypesDefaultMaxItems()
public void setTypesDefaultMaxItems(java.math.BigInteger typesDefaultMaxItems)
public java.math.BigInteger getTypesDefaultDepth()
public void setTypesDefaultDepth(java.math.BigInteger typesDefaultDepth)
public java.math.BigInteger getObjectsDefaultMaxItems()
public void setObjectsDefaultMaxItems(java.math.BigInteger objectsDefaultMaxItems)
public java.math.BigInteger getObjectsDefaultDepth()
public void setObjectsDefaultDepth(java.math.BigInteger objectsDefaultDepth)
public void setRenditionKindMapping(java.util.Map renditionKinds)
public void setOpenHttpSession(boolean openHttpSession)
public boolean openHttpSession()
public void setThumbnailService(ThumbnailService thumbnailService)
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setDescriptorService(DescriptorService descriptorService)
public DescriptorService getDescriptorService()
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setActionService(ActionService actionService)
public void setVersionService(VersionService versionService)
public VersionService getVersionService()
public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
public CheckOutCheckInService getCheckOutCheckInService()
public LockService getLockService()
public void setLockService(LockService lockService)
public void setContentService(ContentService contentService)
public ContentService getContentService()
public void setrenditionService(RenditionService renditionService)
public void setFileFolderService(FileFolderService fileFolderService)
public FileFolderService getFileFolderService()
public void setTenantAdminService(TenantAdminService tenantAdminService)
public void setSingletonCache(org.alfresco.repo.cache.SimpleCache singletonCache)
public void setTransactionService(TransactionService transactionService)
public TransactionService getTransactionService()
public void setAuthenticationService(AuthenticationService authenticationService)
public AuthenticationService getAuthenticationService()
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setPermissionModelDao(ModelDAO permissionModelDao)
public void setOpenCMISDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)
public void setOpenCMISDictionaryService11(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)
public org.alfresco.opencmis.dictionary.CMISDictionaryService getOpenCMISDictionaryService()
public void setOpenCMISQueryService(CMISQueryService cmisQueryService)
public void setOpenCMISQueryService11(CMISQueryService cmisQueryService)
public CMISQueryService getOpenCMISQueryService()
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
public org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
public void setAuditService(AuditService auditService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public org.alfresco.service.cmr.search.SearchService getSearchService()
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
public void setProxyUser(java.lang.String proxyUser)
java.lang.UnsupportedOperationException - alwayspublic java.lang.String getProxyUser()
public void setup()
public void init()
init in interface org.alfresco.repo.tenant.TenantDeployerpublic void destroy()
destroy in interface org.alfresco.repo.tenant.TenantDeployerpublic void onEnableTenant()
onEnableTenant in interface org.alfresco.repo.tenant.TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface org.alfresco.repo.tenant.TenantDeployerpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListenerpublic org.alfresco.util.Pair getSortProperty(java.lang.String cmisPropertyName,
java.lang.String direction)
public void createThumbnails(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Set thumbnailNames)
nodeRef - public void extractMetadata(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - public SiteInfo getSite(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public boolean filter(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public boolean disableBehaviour(org.alfresco.service.namespace.QName className)
public boolean enableBehaviour(org.alfresco.service.namespace.QName className)
public boolean disableBehaviour(org.alfresco.service.namespace.QName className,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
public boolean enableBehaviour(org.alfresco.service.namespace.QName className,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
public org.alfresco.service.cmr.repository.StoreRef getRootStoreRef()
public void deleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean postActivity)
public RetryingTransactionHelper getRetryingTransactionHelper()
public org.alfresco.service.cmr.repository.NodeRef getRootNodeRef()
public java.lang.String getName(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public java.lang.String getCurrentVersionId(java.lang.String objectId)
public CMISNodeInfoImpl createNodeInfo(java.lang.String objectId)
public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef, VersionHistory versionHistory)
public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.AssociationRef assocRef)
public java.lang.String constructObjectId(org.alfresco.service.cmr.repository.AssociationRef assocRef,
java.lang.String versionLabel)
public java.lang.String constructObjectId(java.lang.String incomingObjectId)
public java.lang.String constructObjectId(java.lang.String incomingNodeId,
java.lang.String versionLabel)
public org.apache.chemistry.opencmis.commons.enums.CmisVersion getRequestCmisVersion()
public java.lang.String constructObjectId(org.alfresco.service.cmr.repository.NodeRef incomingNodeRef,
java.lang.String versionLabel)
public java.lang.String createObjectId(org.alfresco.service.cmr.repository.NodeRef currentVersionNodeRef)
public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
null if no type
definition could be found.public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(org.alfresco.service.cmr.repository.AssociationRef assocRef)
null if no
type definition could be found.public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType(java.lang.String cmisTypeId)
null if no type
definition could be found.public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getTypeForCreate(java.lang.String cmisTypeId,
org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseTypeId)
public void applyVersioningState(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
public void checkChildObjectType(org.alfresco.opencmis.dictionary.CMISNodeInfo folderInfo,
java.lang.String childType)
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)
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)
public java.lang.String getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
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)
public void appendContent(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo,
org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
boolean isLastChunk)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.chemistry.opencmis.commons.data.Properties getNodeProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
java.lang.String filter)
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)
public org.apache.chemistry.opencmis.commons.data.Properties getAssocProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
java.lang.String filter)
public java.util.List getAspectExtensions(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
java.lang.String filter,
java.util.Set alreadySetProperties)
public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(org.alfresco.opencmis.dictionary.CMISNodeInfo info)
public java.util.List getRelationships(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships)
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)
public java.util.List getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String renditionFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
public org.apache.chemistry.opencmis.commons.data.Acl getACL(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean onlyBasicPermissions)
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)
public void applyACL(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
org.apache.chemistry.opencmis.commons.data.Acl aces)
public void applyPolicies(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
java.util.List policies)
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)
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)
public void addSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.List secondaryTypes)
public void removeSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.List secondaryTypes)
public void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
java.lang.String propertyId,
java.io.Serializable value)
public org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges(org.apache.chemistry.opencmis.commons.spi.Holder changeLogToken,
java.math.BigInteger maxItems)
public java.lang.String getStringProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
java.lang.String propertyId)
public java.lang.String getIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
java.lang.String propertyId)
public java.lang.String getNameProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
java.lang.String fallback)
public java.lang.String getObjectTypeIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
public java.lang.String getSourceIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
public java.lang.String getTargetIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
public java.lang.String getRepositoryId()
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.