public class CMISConnector extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>, 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 String |
ALFRESCO_EXTENSION_NAMESPACE |
static String |
APPLIED_ASPECTS |
static String |
ASPECTS |
static String |
ASPECTS_TO_ADD |
static String |
ASPECTS_TO_REMOVE |
static String |
ASSOC_ID_PREFIX |
static String |
CMIS_CHANGELOG_AUDIT_APPLICATION |
static String |
CMIS_NAMESPACE |
static char |
ID_SEPERATOR |
static String |
PROPERTIES |
static String |
PWC_VERSION_LABEL |
static String |
RENDITION_NONE |
static char |
REPLACEMENT_CHAR |
static String |
SET_ASPECTS |
static String |
UNVERSIONED_VERSION_LABEL |
Constructor and Description |
---|
CMISConnector() |
Modifier and Type | Method and Description |
---|---|
void |
addSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef,
List<String> 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,
List<String> 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,
String childType)
Checks if a child of a given type can be added to a given folder.
|
String |
constructObjectId(org.alfresco.service.cmr.repository.AssociationRef assocRef,
String versionLabel) |
String |
constructObjectId(org.alfresco.service.cmr.repository.AssociationRef assocRef,
String versionLabel,
boolean dropStoreRef) |
String |
constructObjectId(org.alfresco.service.cmr.repository.NodeRef incomingNodeRef,
String versionLabel) |
String |
constructObjectId(org.alfresco.service.cmr.repository.NodeRef incomingNodeRef,
String versionLabel,
boolean dropStoreRef) |
String |
constructObjectId(String incomingObjectId) |
String |
constructObjectId(String incomingNodeId,
String versionLabel) |
String |
constructObjectId(String incomingNodeId,
String versionLabel,
boolean dropStoreRef) |
org.apache.chemistry.opencmis.commons.data.ObjectData |
createCMISObject(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
String filter,
boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
String renditionFilter,
boolean includePolicyIds,
boolean includeAcl)
Creates the CMIS object for a node.
|
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,
org.alfresco.service.namespace.QName nodeType,
Map<org.alfresco.service.namespace.QName,Serializable> nodeProps,
VersionHistory versionHistory,
boolean checkExists)
Creates an object info object.
|
CMISNodeInfoImpl |
createNodeInfo(String objectId)
Creates an object info object.
|
String |
createObjectId(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Compiles a CMIS object if for a live node.
|
String |
createObjectId(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean dropStoreRef) |
void |
createThumbnails(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> thumbnailNames)
Asynchronously generates thumbnails for the given node.
|
void |
createVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef,
VersionType versionType,
String reason) |
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) |
protected org.apache.chemistry.opencmis.commons.data.Acl |
excludeInheritedAces(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.apache.chemistry.opencmis.commons.data.Acl acl)
Filter acl to ignore inherited ACEs
|
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) |
CmisActivityPoster |
getActivityPoster() |
org.apache.chemistry.opencmis.commons.data.AllowableActions |
getAllowableActions(org.alfresco.opencmis.dictionary.CMISNodeInfo info) |
List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> |
getAspectExtensions(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
String filter,
Set<String> alreadySetProperties)
Builds aspect extension.
|
org.apache.chemistry.opencmis.commons.data.Properties |
getAssocProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
String filter) |
AuthenticationService |
getAuthenticationService() |
int |
getBulkBatchSize() |
int |
getBulkMaxItems() |
int |
getBulkWorkerThreads() |
CheckOutCheckInService |
getCheckOutCheckInService() |
org.apache.chemistry.opencmis.commons.data.ObjectList |
getContentChanges(org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogToken,
BigInteger maxItems)
Returns content changes.
|
ContentService |
getContentService() |
org.apache.chemistry.opencmis.commons.data.ContentStream |
getContentStream(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
String streamId,
BigInteger offset,
BigInteger length)
Gets the content from the repository.
|
String |
getCurrentVersionId(String objectId)
Cuts of the version information from an object id.
|
DescriptorService |
getDescriptorService() |
org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService() |
FileFolderService |
getFileFolderService() |
String |
getIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
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() |
String |
getName(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
String |
getNameProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
String fallback) |
org.apache.chemistry.opencmis.commons.data.Properties |
getNodeProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info,
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,
String typeId,
String filter,
Boolean includeAllowableActions,
BigInteger maxItems,
BigInteger skipCount) |
BigInteger |
getObjectsDefaultDepth() |
BigInteger |
getObjectsDefaultMaxItems() |
String |
getObjectTypeIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties) |
org.alfresco.opencmis.dictionary.CMISDictionaryService |
getOpenCMISDictionaryService() |
CMISQueryService |
getOpenCMISQueryService() |
String |
getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
String |
getProxyUser() |
List<org.apache.chemistry.opencmis.commons.data.ObjectData> |
getRelationships(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships) |
List<org.apache.chemistry.opencmis.commons.data.RenditionData> |
getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount) |
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() |
ServiceRegistry |
getServiceRegistry()
Return the service registry
|
SiteInfo |
getSite(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean> |
getSortProperty(String cmisPropertyName,
String direction) |
String |
getSourceIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties) |
String |
getStringProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
String propertyId)
Returns the value of the given property if it exists and is of the
correct type.
|
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(String cmisTypeId)
Returns the type definition of a node or
null if no type
definition could be found. |
org.alfresco.opencmis.dictionary.TypeDefinitionWrapper |
getTypeForCreate(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.
|
BigInteger |
getTypesDefaultDepth() |
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() |
protected void |
publishReadEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String name,
String mimeType,
long contentSize,
String encoding,
String range)
Notifies listeners that a read has taken place.
|
org.apache.chemistry.opencmis.commons.data.ObjectList |
query(String statement,
Boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount) |
void |
removeSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef,
List<String> secondaryTypes) |
void |
setActionService(ActionService actionService) |
void |
setActivityPoster(CmisActivityPoster 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 |
setBulkBatchSize(int size) |
void |
setBulkMaxItems(int size)
Sets bulk update properties.
|
void |
setBulkWorkerThreads(int threads) |
void |
setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
Sets the checkOut/checkIn service.
|
void |
setContentChangesDefaultMaxItems(int contentChangesDefaultMaxItems)
Set the default number of content changes to return if nothing is specified
|
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 |
setEventPublisher(org.alfresco.repo.events.EventPublisher eventPublisher)
Sets the event publisher
|
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(BigInteger objectsDefaultDepth) |
void |
setObjectsDefaultMaxItems(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,
String... exclude)
Sets property values.
|
void |
setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type,
String propertyId,
Serializable value)
Sets a property value.
|
void |
setProxyUser(String proxyUser)
Not implemented
|
void |
setRenditionKindMapping(Map<String,List<String>> renditionKinds)
Set rendition kind mapping.
|
void |
setrenditionService(RenditionService renditionService)
Sets the rendition service.
|
void |
setRootPath(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<String,Object> singletonCache) |
void |
setSiteService(SiteService siteService) |
void |
setStore(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(BigInteger typesDefaultDepth) |
void |
setTypesDefaultMaxItems(BigInteger typesDefaultMaxItems) |
void |
setup() |
void |
setVersionService(VersionService versionService)
Sets the version service.
|
public static final char ID_SEPERATOR
public static final char REPLACEMENT_CHAR
public static final String ASSOC_ID_PREFIX
public static final String PWC_VERSION_LABEL
public static final String UNVERSIONED_VERSION_LABEL
public static final String RENDITION_NONE
public static final String CMIS_CHANGELOG_AUDIT_APPLICATION
public static final String ALFRESCO_EXTENSION_NAMESPACE
public static final String CMIS_NAMESPACE
public static final String ASPECTS
public static final String SET_ASPECTS
public static final String APPLIED_ASPECTS
public static final String ASPECTS_TO_ADD
public static final String ASPECTS_TO_REMOVE
public static final String PROPERTIES
public void setObjectFilter(ObjectFilter objectFilter)
public void setStore(String store)
store
- store_type://store_idpublic void setSiteService(SiteService siteService)
public void setActivityPoster(CmisActivityPoster activityPoster)
public CmisActivityPoster getActivityPoster()
public void setHiddenAspect(HiddenAspect hiddenAspect)
public boolean isHidden(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void setRootPath(String path)
path
- path within default storepublic BigInteger getTypesDefaultMaxItems()
public void setTypesDefaultMaxItems(BigInteger typesDefaultMaxItems)
public BigInteger getTypesDefaultDepth()
public void setTypesDefaultDepth(BigInteger typesDefaultDepth)
public BigInteger getObjectsDefaultMaxItems()
public void setObjectsDefaultMaxItems(BigInteger objectsDefaultMaxItems)
public BigInteger getObjectsDefaultDepth()
public void setObjectsDefaultDepth(BigInteger objectsDefaultDepth)
public void setContentChangesDefaultMaxItems(int contentChangesDefaultMaxItems)
public void setRenditionKindMapping(Map<String,List<String>> renditionKinds)
public void setOpenHttpSession(boolean openHttpSession)
public boolean openHttpSession()
public void setThumbnailService(ThumbnailService thumbnailService)
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public final ServiceRegistry getServiceRegistry()
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 setEventPublisher(org.alfresco.repo.events.EventPublisher eventPublisher)
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<String,Object> 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(String proxyUser)
UnsupportedOperationException
- alwayspublic String getProxyUser()
public void setBulkMaxItems(int size)
public int getBulkMaxItems()
public void setBulkBatchSize(int size)
public int getBulkBatchSize()
public void setBulkWorkerThreads(int threads)
public int getBulkWorkerThreads()
public void setup()
public void init()
init
in interface org.alfresco.repo.tenant.TenantDeployer
public void destroy()
destroy
in interface org.alfresco.repo.tenant.TenantDeployer
public void onEnableTenant()
onEnableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public void onDisableTenant()
onDisableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
public org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean> getSortProperty(String cmisPropertyName, String direction)
public void createThumbnails(org.alfresco.service.cmr.repository.NodeRef nodeRef, Set<String> thumbnailNames)
nodeRef
- NodeRefpublic void extractMetadata(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefpublic 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 String getName(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public String getCurrentVersionId(String objectId)
public CMISNodeInfoImpl createNodeInfo(String objectId)
public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName nodeType, Map<org.alfresco.service.namespace.QName,Serializable> nodeProps, VersionHistory versionHistory, boolean checkExists)
public CMISNodeInfoImpl createNodeInfo(org.alfresco.service.cmr.repository.AssociationRef assocRef)
public String constructObjectId(org.alfresco.service.cmr.repository.AssociationRef assocRef, String versionLabel)
public String constructObjectId(org.alfresco.service.cmr.repository.AssociationRef assocRef, String versionLabel, boolean dropStoreRef)
public String constructObjectId(String incomingNodeId, String versionLabel, boolean dropStoreRef)
public void createVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef, VersionType versionType, String reason)
public org.apache.chemistry.opencmis.commons.enums.CmisVersion getRequestCmisVersion()
public String constructObjectId(org.alfresco.service.cmr.repository.NodeRef incomingNodeRef, String versionLabel)
public String constructObjectId(org.alfresco.service.cmr.repository.NodeRef incomingNodeRef, String versionLabel, boolean dropStoreRef)
public String createObjectId(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public String createObjectId(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean dropStoreRef)
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(String cmisTypeId)
null
if no type
definition could be found.public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getTypeForCreate(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, String childType)
public org.apache.chemistry.opencmis.commons.data.ObjectData createCMISObject(org.alfresco.opencmis.dictionary.CMISNodeInfo info, String filter, boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, boolean includePolicyIds, boolean includeAcl)
public String getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(org.alfresco.opencmis.dictionary.CMISNodeInfo info, String streamId, BigInteger offset, BigInteger length)
protected void publishReadEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef, String name, String mimeType, long contentSize, String encoding, String range)
nodeRef
- NodeRefname
- StringmimeType
- StringcontentSize
- longencoding
- Stringrange
- Stringpublic void appendContent(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk) throws IOException
IOException
public org.apache.chemistry.opencmis.commons.data.Properties getNodeProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info, String filter)
public org.apache.chemistry.opencmis.commons.data.Properties getAssocProperties(org.alfresco.opencmis.dictionary.CMISNodeInfo info, String filter)
public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getAspectExtensions(org.alfresco.opencmis.dictionary.CMISNodeInfo info, String filter, Set<String> alreadySetProperties)
public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(org.alfresco.opencmis.dictionary.CMISNodeInfo info)
public List<org.apache.chemistry.opencmis.commons.data.ObjectData> 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, String typeId, String filter, Boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount)
public List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions(org.alfresco.service.cmr.repository.NodeRef nodeRef, String renditionFilter, BigInteger maxItems, 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)
protected org.apache.chemistry.opencmis.commons.data.Acl excludeInheritedAces(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.apache.chemistry.opencmis.commons.data.Acl acl)
nodeRef
- NodeRefacl
- Aclpublic 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, List<String> policies)
public org.apache.chemistry.opencmis.commons.data.ObjectList query(String statement, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, 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, String... exclude)
public void addSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef, List<String> secondaryTypes)
public void removeSecondaryTypes(org.alfresco.service.cmr.repository.NodeRef nodeRef, List<String> secondaryTypes)
public void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.opencmis.dictionary.TypeDefinitionWrapper type, String propertyId, Serializable value)
public org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges(org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogToken, BigInteger maxItems)
public String getStringProperty(org.apache.chemistry.opencmis.commons.data.Properties properties, String propertyId)
public String getIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties, String propertyId)
public String getNameProperty(org.apache.chemistry.opencmis.commons.data.Properties properties, String fallback)
public String getObjectTypeIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
public String getSourceIdProperty(org.apache.chemistry.opencmis.commons.data.Properties properties)
public 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 String getRepositoryId()
Copyright © 2005–2017 Alfresco Software. All rights reserved.