Class NuxeoCmisService
- java.lang.Object
-
- org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
- org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService
-
- All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.server.CmisService,org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler,org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService,org.apache.chemistry.opencmis.commons.spi.AclService,org.apache.chemistry.opencmis.commons.spi.DiscoveryService,org.apache.chemistry.opencmis.commons.spi.MultiFilingService,org.apache.chemistry.opencmis.commons.spi.NavigationService,org.apache.chemistry.opencmis.commons.spi.ObjectService,org.apache.chemistry.opencmis.commons.spi.PolicyService,org.apache.chemistry.opencmis.commons.spi.RelationshipService,org.apache.chemistry.opencmis.commons.spi.RepositoryService,org.apache.chemistry.opencmis.commons.spi.VersioningService,org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
public class NuxeoCmisService extends org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService implements org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService, org.apache.chemistry.opencmis.commons.server.ProgressControlCmisServiceNuxeo implementation of the CMIS Services, on top of aCoreSession.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcachedChangeLogTokenprotected org.apache.chemistry.opencmis.commons.server.CallContextcallContextprotected booleancollectObjectInfosprotected CoreSessioncoreSessionstatic intDEFAULT_CHANGE_LOG_SIZEstatic intDEFAULT_FOLDER_LEVELSstatic intDEFAULT_MAX_CHILDRENstatic intDEFAULT_MAX_RELATIONSHIPSstatic intDEFAULT_QUERY_SIZEstatic intDEFAULT_TYPE_LEVELSprotected FilterdocumentFilterFilter that hides HiddenInNavigation and deleted objects.static StringERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROPprotected booleanerrorOnCancelCheckOutOfDraftVersionstatic StringES_AUDIT_EVENT_IDstatic StringES_AUDIT_IDstatic StringES_AUDIT_REPOSITORY_IDstatic intMAX_CHANGE_LOG_SIZEstatic StringNX_CHANGE_LOG_IDSynthetic property for change log entries recording the log entry id.protected org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactoryobjectFactoryprotected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo>objectInfosstatic StringPERMISSION_NOTHINGprotected Set<String>readPermissionsprotected static StringREPLACE_QUOTEprotected NuxeoRepositoryrepositoryprotected booleanresponseAlreadySentprotected Set<String>writePermissions
-
Constructor Summary
Constructors Modifier Constructor Description NuxeoCmisService(String repositoryName)Constructs a Nuxeo CMIS Service.NuxeoCmisService(CoreSession coreSession)Constructs a Nuxeo CMIS Service from an existingCoreSession.protectedNuxeoCmisService(CoreSession coreSession, String repositoryName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddObjectInfo(org.apache.chemistry.opencmis.commons.server.ObjectInfo info)voidaddObjectToFolder(String repositoryId, String objectId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected StringaddProxyClause(String query)org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.ProgressafterServiceCall()org.apache.chemistry.opencmis.commons.data.AclapplyAcl(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.AclapplyAcl(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.Acl aces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)protected org.apache.chemistry.opencmis.commons.data.AclapplyAcl(String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, boolean clearFirst, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)voidapplyPolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.ProgressbeforeServiceCall()List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken>bulkUpdateProperties(String repositoryId, List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> objectIdAndChangeToken, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)voidcancelCheckOut(String objectId)voidcancelCheckOut(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)voidcheckIn(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, Boolean major, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)StringcheckOut(String objectId)voidcheckOut(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension, org.apache.chemistry.opencmis.commons.spi.Holder<Boolean> contentCopiedHolder)voidclearObjectInfos()voidclose()protected voidcollectObjectInfo(String repositoryId, String objectId)NuxeoObjectDatacopy(String sourceId, String targetId, Map<String,?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addACEs, List<org.apache.chemistry.opencmis.commons.data.Ace> removeACEs, org.apache.chemistry.opencmis.client.api.OperationContext context)Stringcreate(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)StringcreateDocument(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)StringcreateDocumentFromSource(String repositoryId, String sourceId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected DocumentModelcreateDocumentModel(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String name)Creates and save document model.protected DocumentModelcreateDocumentModel(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)Creates bare unsaved document model.StringcreateFolder(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected NuxeoObjectDatacreateObject(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseType, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)StringcreatePolicy(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)StringcreateRelationship(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)voiddeleteContentStream(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)voiddeleteObject(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)voiddeleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.FailedToDeleteDatadeleteTree(String repositoryId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects, Boolean continueOnFailure, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected static StringescapeStringForNXQL(String s)static NuxeoCmisServiceextractFromCmisService(org.apache.chemistry.opencmis.commons.server.CmisService service)org.apache.chemistry.opencmis.commons.data.AclgetAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.AllowableActionsgetAllowableActions(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)List<org.apache.chemistry.opencmis.commons.data.ObjectData>getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)List<org.apache.chemistry.opencmis.commons.data.ObjectData>getAppliedPolicies(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.server.CallContextgetCallContext()org.apache.chemistry.opencmis.commons.data.ObjectListgetCheckedOutDocs(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.ObjectInFolderListgetChildren(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected org.apache.chemistry.opencmis.commons.data.ObjectInFolderListgetChildrenInternal(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, boolean folderOnly)org.apache.chemistry.opencmis.commons.data.ObjectListgetContentChanges(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogTokenHolder, Boolean includeProperties, String filter, Boolean includePolicyIds, Boolean includeAcl, BigInteger maxItems, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.ContentStreamgetContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)CoreSessiongetCoreSession()List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer>getDescendants(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer>getDescendantsInternal(String repositoryId, String folderId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegments, int level, int maxLevels, boolean folderOnly)protected FiltergetDocumentFilter()Gets the filter that hides HiddenInNavigation and deleted objects.protected DocumentModelgetDocumentModel(String id)org.apache.chemistry.opencmis.commons.data.ObjectDatagetFolderParent(String repositoryId, String folderId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer>getFolderTree(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected org.apache.chemistry.opencmis.commons.data.ContentStreamgetIconRenditionStream(String objectId)Deprecated.since 7.3.protected StringgetIdFromDocumentRef(DocumentRef ref)protected StringgetLatestChangeLogToken(String repositoryId)protected org.apache.chemistry.opencmis.commons.data.ObjectDatagetLogEntryObjectData(LogEntry logEntry)Gets object data for a log entry, or null if skipped.NuxeoRepositorygetNuxeoRepository()protected static NuxeoRepositorygetNuxeoRepository(String repositoryName)NuxeoObjectDatagetObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.ObjectDatagetObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected DocumentModelgetObjectByPathOfNames(String path)Gets a document given a path built out of dc:title components.org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactorygetObjectFactory()protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo>getObjectInfo()org.apache.chemistry.opencmis.commons.server.ObjectInfogetObjectInfo(String repositoryId, String objectId)protected org.apache.chemistry.opencmis.commons.server.ObjectInfogetObjectInfo(String repositoryId, org.apache.chemistry.opencmis.commons.data.ObjectData data)NuxeoObjectDatagetObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)List<org.apache.chemistry.opencmis.commons.data.ObjectParentData>getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected List<org.apache.chemistry.opencmis.commons.data.ObjectParentData>getObjectParentsInternal(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, boolean folderOnly)org.apache.chemistry.opencmis.commons.data.ObjectListgetObjectRelationships(String repositoryId, String objectId, Boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, String typeId, String filter, Boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.PropertiesgetProperties(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.data.PropertiesgetPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)List<org.apache.chemistry.opencmis.commons.data.RenditionData>getRenditions(String repositoryId, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected org.apache.chemistry.opencmis.commons.data.ContentStreamgetRenditionServiceStream(String objectId, String renditionName)Deprecated.since 11.1, now unusedorg.apache.chemistry.opencmis.commons.data.RepositoryInfogetRepositoryInfo(String repositoryId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)List<org.apache.chemistry.opencmis.commons.data.RepositoryInfo>getRepositoryInfos(org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionListgetTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)org.apache.chemistry.opencmis.commons.definitions.TypeDefinitiongetTypeDefinition(String repositoryId, String typeId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer>getTypeDescendants(String repositoryId, String typeId, BigInteger depth, Boolean includePropertyDefinitions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected TypeManagerImplgetTypeManager()booleanisFilteredOut(DocumentModel doc)Checks if the doc should be ignored because it is "invisible" (deleted, hidden in navigation).protected org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImplmakeObjectData(Map<String,Serializable> map, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)voidmoveObject(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, String targetFolderId, String sourceFolderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected static CoreSessionopenCoreSession(String repositoryName, String username)protected static StringpermissionFromNuxeo(String permission)protected static StringpermissionToNuxeo(String permission)org.apache.chemistry.opencmis.commons.data.ObjectListquery(String repositoryId, String statement, Boolean searchAllVersions, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)IterableQueryResultqueryAndFetch(String query, boolean searchAllVersions)Makes a CMISQL query to the repository and returns anIterableQueryResult, which MUST be closed in afinallyblock.IterableQueryResultqueryAndFetch(String query, boolean searchAllVersions, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)Makes a CMISQL query to the repository and returns anIterableQueryResult, which MUST be closed in afinallyblock.PartialList<Map<String,Serializable>>queryProjection(String query, long limit, long offset, boolean searchAllVersions, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)Makes a CMISQL query to the repository and returns aPartialList.protected List<org.apache.chemistry.opencmis.commons.data.ObjectData>readAuditLog(String repositoryId, long minId, int max, int pageSize)Reads at most max+1 entries from the audit log.voidremoveObjectFromFolder(String repositoryId, String objectId, String folderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)voidremovePolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected voidsave()voidsetCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)protected voidsetChangeTokenForUpdate(DocumentModel doc, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder)voidsetContentStream(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, Boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected StringsetInitialVersioningState(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)Sets initial versioning state and returns its id.protected <T> voidsetObjectProperty(NuxeoObjectData object, String key, Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd, boolean creation)protected <T> voidsetObjectProperty(NuxeoObjectData object, String key, org.apache.chemistry.opencmis.commons.data.PropertyData<T> d, List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> types, boolean creation)protected voidsetResponseHeader(String headerName, Blob blob, org.apache.chemistry.opencmis.commons.server.CallContext callContext)Deprecated.since 11.1, now unusedvoidupdateProperties(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)protected voidupdateProperties(org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.Properties properties)protected <T> voidupdateProperties(NuxeoObjectData object, Map<String,?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, boolean creation)protected <T> voidupdateProperties(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.data.Properties properties, boolean creation)-
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
appendContentStream, createItem, createType, deleteType, getBooleanProperty, getDateTimeProperty, getIdProperty, getIntegerProperty, getObjectInfoIntern, getStringProperty, updateType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
DEFAULT_TYPE_LEVELS
public static final int DEFAULT_TYPE_LEVELS
- See Also:
- Constant Field Values
-
DEFAULT_FOLDER_LEVELS
public static final int DEFAULT_FOLDER_LEVELS
- See Also:
- Constant Field Values
-
DEFAULT_CHANGE_LOG_SIZE
public static final int DEFAULT_CHANGE_LOG_SIZE
- See Also:
- Constant Field Values
-
MAX_CHANGE_LOG_SIZE
public static final int MAX_CHANGE_LOG_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_QUERY_SIZE
public static final int DEFAULT_QUERY_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_MAX_CHILDREN
public static final int DEFAULT_MAX_CHILDREN
- See Also:
- Constant Field Values
-
DEFAULT_MAX_RELATIONSHIPS
public static final int DEFAULT_MAX_RELATIONSHIPS
- See Also:
- Constant Field Values
-
PERMISSION_NOTHING
public static final String PERMISSION_NOTHING
- See Also:
- Constant Field Values
-
NX_CHANGE_LOG_ID
public static final String NX_CHANGE_LOG_ID
Synthetic property for change log entries recording the log entry id.- See Also:
- Constant Field Values
-
ES_AUDIT_ID
public static final String ES_AUDIT_ID
- See Also:
- Constant Field Values
-
ES_AUDIT_REPOSITORY_ID
public static final String ES_AUDIT_REPOSITORY_ID
- See Also:
- Constant Field Values
-
ES_AUDIT_EVENT_ID
public static final String ES_AUDIT_EVENT_ID
- See Also:
- Constant Field Values
-
ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP
public static final String ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP
- See Also:
- Constant Field Values
-
objectFactory
protected final org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objectFactory
-
repository
protected final NuxeoRepository repository
-
coreSession
protected CoreSession coreSession
-
cachedChangeLogToken
protected String cachedChangeLogToken
-
callContext
protected org.apache.chemistry.opencmis.commons.server.CallContext callContext
-
responseAlreadySent
protected boolean responseAlreadySent
- Since:
- 11.1
-
documentFilter
protected final Filter documentFilter
Filter that hides HiddenInNavigation and deleted objects.
-
errorOnCancelCheckOutOfDraftVersion
protected final boolean errorOnCancelCheckOutOfDraftVersion
-
REPLACE_QUOTE
protected static String REPLACE_QUOTE
-
collectObjectInfos
protected boolean collectObjectInfos
-
-
Constructor Detail
-
NuxeoCmisService
public NuxeoCmisService(CoreSession coreSession)
Constructs a Nuxeo CMIS Service from an existingCoreSession.- Parameters:
coreSession- the session- Since:
- 6.0
-
NuxeoCmisService
public NuxeoCmisService(String repositoryName)
Constructs a Nuxeo CMIS Service.- Parameters:
repositoryName- the repository name- Since:
- 6.0
-
NuxeoCmisService
protected NuxeoCmisService(CoreSession coreSession, String repositoryName)
-
-
Method Detail
-
extractFromCmisService
public static NuxeoCmisService extractFromCmisService(org.apache.chemistry.opencmis.commons.server.CmisService service)
-
close
public void close()
- Specified by:
closein interfaceorg.apache.chemistry.opencmis.commons.server.CmisService- Overrides:
closein classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
beforeServiceCall
public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress beforeServiceCall()
- Specified by:
beforeServiceCallin interfaceorg.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
-
afterServiceCall
public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress afterServiceCall()
- Specified by:
afterServiceCallin interfaceorg.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
-
getNuxeoRepository
protected static NuxeoRepository getNuxeoRepository(String repositoryName)
-
openCoreSession
protected static CoreSession openCoreSession(String repositoryName, String username)
-
getNuxeoRepository
public NuxeoRepository getNuxeoRepository()
-
getCoreSession
public CoreSession getCoreSession()
-
getObjectFactory
public org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory getObjectFactory()
-
getCallContext
public org.apache.chemistry.opencmis.commons.server.CallContext getCallContext()
- Specified by:
getCallContextin interfaceorg.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
-
getTypeManager
protected TypeManagerImpl getTypeManager()
-
setCallContext
public void setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
- Specified by:
setCallContextin interfaceorg.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
-
getDocumentFilter
protected Filter getDocumentFilter()
Gets the filter that hides HiddenInNavigation and deleted objects.
-
getIdFromDocumentRef
protected String getIdFromDocumentRef(DocumentRef ref)
-
save
protected void save()
-
getRepositoryInfos
public List<org.apache.chemistry.opencmis.commons.data.RepositoryInfo> getRepositoryInfos(org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getRepositoryInfosin interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService- Specified by:
getRepositoryInfosin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getRepositoryInfo
public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo(String repositoryId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getRepositoryInfoin interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService- Overrides:
getRepositoryInfoin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getTypeDefinition
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(String repositoryId, String typeId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getTypeDefinitionin interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService- Specified by:
getTypeDefinitionin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getTypeChildren
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getTypeChildrenin interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService- Specified by:
getTypeChildrenin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getTypeDescendants
public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants(String repositoryId, String typeId, BigInteger depth, Boolean includePropertyDefinitions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getTypeDescendantsin interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService- Overrides:
getTypeDescendantsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getDocumentModel
protected DocumentModel getDocumentModel(String id)
-
getObject
public NuxeoObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObjectin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Specified by:
getObjectin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
isFilteredOut
public boolean isFilteredOut(DocumentModel doc)
Checks if the doc should be ignored because it is "invisible" (deleted, hidden in navigation).
-
createDocumentModel
protected DocumentModel createDocumentModel(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
Creates bare unsaved document model.
-
createDocumentModel
protected DocumentModel createDocumentModel(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String name)
Creates and save document model.
-
createObject
protected NuxeoObjectData createObject(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseType, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
-
updateProperties
protected <T> void updateProperties(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.data.Properties properties, boolean creation)
-
updateProperties
protected <T> void updateProperties(NuxeoObjectData object, Map<String,?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, boolean creation)
-
setObjectProperty
protected <T> void setObjectProperty(NuxeoObjectData object, String key, org.apache.chemistry.opencmis.commons.data.PropertyData<T> d, List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> types, boolean creation)
-
setObjectProperty
protected <T> void setObjectProperty(NuxeoObjectData object, String key, Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd, boolean creation)
-
setInitialVersioningState
protected String setInitialVersioningState(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
Sets initial versioning state and returns its id.
-
create
public String create(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createin interfaceorg.apache.chemistry.opencmis.commons.server.CmisService- Overrides:
createin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
createDocument
public String createDocument(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createDocumentin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
createDocumentin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
createFolder
public String createFolder(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createFolderin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
createFolderin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
createPolicy
public String createPolicy(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createPolicyin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
createPolicyin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
createRelationship
public String createRelationship(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createRelationshipin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
createRelationshipin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
createDocumentFromSource
public String createDocumentFromSource(String repositoryId, String sourceId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
createDocumentFromSourcein interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
createDocumentFromSourcein classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
copy
public NuxeoObjectData copy(String sourceId, String targetId, Map<String,?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addACEs, List<org.apache.chemistry.opencmis.commons.data.Ace> removeACEs, org.apache.chemistry.opencmis.client.api.OperationContext context)
-
deleteContentStream
public void deleteContentStream(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
deleteContentStreamin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
deleteContentStreamin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
deleteTree
public org.apache.chemistry.opencmis.commons.data.FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects, Boolean continueOnFailure, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
deleteTreein interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
deleteTreein classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getAllowableActions
public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getAllowableActionsin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
getAllowableActionsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getContentStreamin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
getContentStreamin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
setResponseHeader
@Deprecated protected void setResponseHeader(String headerName, Blob blob, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
Deprecated.since 11.1, now unused
-
getIconRenditionStream
@Deprecated protected org.apache.chemistry.opencmis.commons.data.ContentStream getIconRenditionStream(String objectId)
Deprecated.since 7.3. The thumbnail is now a default rendition, see NXP-16662.
-
getRenditionServiceStream
@Deprecated protected org.apache.chemistry.opencmis.commons.data.ContentStream getRenditionServiceStream(String objectId, String renditionName)
Deprecated.since 11.1, now unused
-
getRenditions
public List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions(String repositoryId, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getRenditionsin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
getRenditionsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectByPath
public org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObjectByPathin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
getObjectByPathin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectByPathOfNames
protected DocumentModel getObjectByPathOfNames(String path) throws org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException
Gets a document given a path built out of dc:title components.Filtered out docs are ignored.
- Throws:
org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException
-
getProperties
public org.apache.chemistry.opencmis.commons.data.Properties getProperties(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getPropertiesin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
getPropertiesin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectInfo
public org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo(String repositoryId, String objectId)
- Specified by:
getObjectInfoin interfaceorg.apache.chemistry.opencmis.commons.server.CmisService- Specified by:
getObjectInfoin interfaceorg.apache.chemistry.opencmis.commons.server.ObjectInfoHandler- Overrides:
getObjectInfoin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectInfo
protected org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo(String repositoryId, org.apache.chemistry.opencmis.commons.data.ObjectData data)
-
getObjectInfo
protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo> getObjectInfo()
-
clearObjectInfos
public void clearObjectInfos()
- Overrides:
clearObjectInfosin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
addObjectInfo
public void addObjectInfo(org.apache.chemistry.opencmis.commons.server.ObjectInfo info)
- Specified by:
addObjectInfoin interfaceorg.apache.chemistry.opencmis.commons.server.ObjectInfoHandler- Overrides:
addObjectInfoin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
moveObject
public void moveObject(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, String targetFolderId, String sourceFolderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
moveObjectin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
moveObjectin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
setContentStream
public void setContentStream(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, Boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
setContentStreamin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
setContentStreamin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
setChangeTokenForUpdate
protected void setChangeTokenForUpdate(DocumentModel doc, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder)
-
updateProperties
public void updateProperties(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
updatePropertiesin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
updatePropertiesin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
updateProperties
protected void updateProperties(org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder, org.apache.chemistry.opencmis.commons.data.Properties properties)
-
bulkUpdateProperties
public List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties(String repositoryId, List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> objectIdAndChangeToken, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
bulkUpdatePropertiesin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
bulkUpdatePropertiesin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
applyAcl
public org.apache.chemistry.opencmis.commons.data.Acl applyAcl(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
applyAclin interfaceorg.apache.chemistry.opencmis.commons.spi.AclService- Overrides:
applyAclin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
applyAcl
public org.apache.chemistry.opencmis.commons.data.Acl applyAcl(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.Acl aces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
- Specified by:
applyAclin interfaceorg.apache.chemistry.opencmis.commons.server.CmisService- Overrides:
applyAclin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
applyAcl
protected org.apache.chemistry.opencmis.commons.data.Acl applyAcl(String objectId, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, boolean clearFirst, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation)
-
getAcl
public org.apache.chemistry.opencmis.commons.data.Acl getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getAclin interfaceorg.apache.chemistry.opencmis.commons.spi.AclService- Overrides:
getAclin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getContentChanges
public org.apache.chemistry.opencmis.commons.data.ObjectList getContentChanges(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeLogTokenHolder, Boolean includeProperties, String filter, Boolean includePolicyIds, Boolean includeAcl, BigInteger maxItems, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getContentChangesin interfaceorg.apache.chemistry.opencmis.commons.spi.DiscoveryService- Overrides:
getContentChangesin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
readAuditLog
protected List<org.apache.chemistry.opencmis.commons.data.ObjectData> readAuditLog(String repositoryId, long minId, int max, int pageSize)
Reads at most max+1 entries from the audit log.- Returns:
- null if not enough elements found with the current page size
-
getLogEntryObjectData
protected org.apache.chemistry.opencmis.commons.data.ObjectData getLogEntryObjectData(LogEntry logEntry)
Gets object data for a log entry, or null if skipped.
-
query
public org.apache.chemistry.opencmis.commons.data.ObjectList query(String repositoryId, String statement, Boolean searchAllVersions, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
queryin interfaceorg.apache.chemistry.opencmis.commons.spi.DiscoveryService- Overrides:
queryin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
queryAndFetch
public IterableQueryResult queryAndFetch(String query, boolean searchAllVersions, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
Makes a CMISQL query to the repository and returns anIterableQueryResult, which MUST be closed in afinallyblock.- Parameters:
query- the CMISQL querysearchAllVersions- whether to search all versions (true) or only the latest version (false), for versionable typestypeInfo- a map filled with type information for each returned property, ornullif no such info is needed- Returns:
- an
IterableQueryResult, which MUST be closed in afinallyblock - Throws:
org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException- if the query cannot be parsed or is invalid- Since:
- 6.0
-
queryAndFetch
public IterableQueryResult queryAndFetch(String query, boolean searchAllVersions)
Makes a CMISQL query to the repository and returns anIterableQueryResult, which MUST be closed in afinallyblock.- Parameters:
query- the CMISQL querysearchAllVersions- whether to search all versions (true) or only the latest version (false), for versionable types- Returns:
- an
IterableQueryResult, which MUST be closed in afinallyblock - Throws:
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException- if the query cannot be parsed or is invalid- Since:
- 6.0
-
queryProjection
public PartialList<Map<String,Serializable>> queryProjection(String query, long limit, long offset, boolean searchAllVersions, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
Makes a CMISQL query to the repository and returns aPartialList.- Parameters:
query- the CMISQL querylimit- the maximum number of documents to retrieve, or 0 for all of themoffset- the offset (starting at 0) into the list of documentssearchAllVersions- whether to search all versions (true) or only the latest version (false), for versionable typestypeInfo- a map filled with type information for each returned property, ornullif no such info is needed- Returns:
- a
PartialList - Throws:
org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException- if the query cannot be parsed or is invalid- Since:
- 7.10-HF25, 8.10-HF06, 9.2
-
makeObjectData
protected org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl makeObjectData(Map<String,Serializable> map, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
-
addObjectToFolder
public void addObjectToFolder(String repositoryId, String objectId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
addObjectToFolderin interfaceorg.apache.chemistry.opencmis.commons.spi.MultiFilingService- Overrides:
addObjectToFolderin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
removeObjectFromFolder
public void removeObjectFromFolder(String repositoryId, String objectId, String folderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
removeObjectFromFolderin interfaceorg.apache.chemistry.opencmis.commons.spi.MultiFilingService- Overrides:
removeObjectFromFolderin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getChildren
public org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getChildrenin interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService- Specified by:
getChildrenin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getChildrenInternal
protected org.apache.chemistry.opencmis.commons.data.ObjectInFolderList getChildrenInternal(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, boolean folderOnly)
-
getDescendants
public List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendants(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getDescendantsin interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService- Overrides:
getDescendantsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getFolderTree
public List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getFolderTree(String repositoryId, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getFolderTreein interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService- Overrides:
getFolderTreein classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getDescendantsInternal
protected List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> getDescendantsInternal(String repositoryId, String folderId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegments, int level, int maxLevels, boolean folderOnly)
-
getFolderParent
public org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent(String repositoryId, String folderId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getFolderParentin interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService- Overrides:
getFolderParentin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectParents
public List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObjectParentsin interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService- Specified by:
getObjectParentsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectParentsInternal
protected List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> getObjectParentsInternal(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, boolean folderOnly)
-
applyPolicy
public void applyPolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
applyPolicyin interfaceorg.apache.chemistry.opencmis.commons.spi.PolicyService- Overrides:
applyPolicyin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getAppliedPolicies
public List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAppliedPolicies(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getAppliedPoliciesin interfaceorg.apache.chemistry.opencmis.commons.spi.PolicyService- Overrides:
getAppliedPoliciesin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
removePolicy
public void removePolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
removePolicyin interfaceorg.apache.chemistry.opencmis.commons.spi.PolicyService- Overrides:
removePolicyin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectRelationships
public org.apache.chemistry.opencmis.commons.data.ObjectList getObjectRelationships(String repositoryId, String objectId, Boolean includeSubRelationshipTypes, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, String typeId, String filter, Boolean includeAllowableActions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObjectRelationshipsin interfaceorg.apache.chemistry.opencmis.commons.spi.RelationshipService- Overrides:
getObjectRelationshipsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
checkIn
public void checkIn(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, Boolean major, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
checkInin interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService- Overrides:
checkInin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
checkOut
public void checkOut(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectIdHolder, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension, org.apache.chemistry.opencmis.commons.spi.Holder<Boolean> contentCopiedHolder)
- Specified by:
checkOutin interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService- Overrides:
checkOutin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
cancelCheckOut
public void cancelCheckOut(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
cancelCheckOutin interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService- Overrides:
cancelCheckOutin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
cancelCheckOut
public void cancelCheckOut(String objectId)
-
getCheckedOutDocs
public org.apache.chemistry.opencmis.commons.data.ObjectList getCheckedOutDocs(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getCheckedOutDocsin interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService- Overrides:
getCheckedOutDocsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getAllVersions
public List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getAllVersionsin interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService- Overrides:
getAllVersionsin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectOfLatestVersion
public NuxeoObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getObjectOfLatestVersionin interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService- Overrides:
getObjectOfLatestVersionin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getPropertiesOfLatestVersion
public org.apache.chemistry.opencmis.commons.data.Properties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
getPropertiesOfLatestVersionin interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService- Overrides:
getPropertiesOfLatestVersionin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
deleteObject
public void deleteObject(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
deleteObjectin interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService- Overrides:
deleteObjectin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
deleteObjectOrCancelCheckOut
public void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
- Specified by:
deleteObjectOrCancelCheckOutin interfaceorg.apache.chemistry.opencmis.commons.server.CmisService- Overrides:
deleteObjectOrCancelCheckOutin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
-