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.ProgressControlCmisService
Nuxeo implementation of the CMIS Services, on top of a
CoreSession.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected org.apache.chemistry.opencmis.commons.server.CallContextprotected booleanprotected CoreSessionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected final FilterFilter that hides HiddenInNavigation and deleted objects.static final Stringprotected final booleanstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final StringSynthetic property for change log entries recording the log entry id.protected final org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactorystatic final Stringprotected static Stringprotected final NuxeoRepositoryprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionNuxeoCmisService(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
Modifier and TypeMethodDescriptionvoidaddObjectInfo(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.Progressorg.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.ProgressList<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) 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) voidvoidclose()protected voidcollectObjectInfo(String repositoryId, String objectId) 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) 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) 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) 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) 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.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) 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) 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) 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) 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 Stringstatic 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.CallContextorg.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) 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 FilterGets the filter that hides HiddenInNavigation and deleted objects.protected DocumentModelorg.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 Stringprotected StringgetLatestChangeLogToken(String repositoryId) protected org.apache.chemistry.opencmis.commons.data.ObjectDatagetLogEntryObjectData(LogEntry logEntry) Gets object data for a log entry, or null if skipped.protected static NuxeoRepositorygetNuxeoRepository(String repositoryName) 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) 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.BindingsObjectFactoryorg.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) 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) 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 TypeManagerImplbooleanChecks 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) queryAndFetch(String query, boolean searchAllVersions) Makes a CMISQL query to the repository and returns anIterableQueryResult, which MUST be closed in afinallyblock.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.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, updateTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.chemistry.opencmis.commons.spi.ObjectService
appendContentStream, createItemMethods inherited from interface org.apache.chemistry.opencmis.commons.spi.RepositoryService
createType, deleteType, updateType
-
Field Details
-
DEFAULT_TYPE_LEVELS
public static final int DEFAULT_TYPE_LEVELS- See Also:
-
DEFAULT_FOLDER_LEVELS
public static final int DEFAULT_FOLDER_LEVELS- See Also:
-
DEFAULT_CHANGE_LOG_SIZE
public static final int DEFAULT_CHANGE_LOG_SIZE- See Also:
-
MAX_CHANGE_LOG_SIZE
public static final int MAX_CHANGE_LOG_SIZE- See Also:
-
DEFAULT_QUERY_SIZE
public static final int DEFAULT_QUERY_SIZE- See Also:
-
DEFAULT_MAX_CHILDREN
public static final int DEFAULT_MAX_CHILDREN- See Also:
-
DEFAULT_MAX_RELATIONSHIPS
public static final int DEFAULT_MAX_RELATIONSHIPS- See Also:
-
PERMISSION_NOTHING
- See Also:
-
NX_CHANGE_LOG_ID
Synthetic property for change log entries recording the log entry id.- See Also:
-
ES_AUDIT_ID
- See Also:
-
ES_AUDIT_REPOSITORY_ID
- See Also:
-
ES_AUDIT_EVENT_ID
- See Also:
-
ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP
- See Also:
-
objectFactory
protected final org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objectFactory -
repository
-
coreSession
-
cachedChangeLogToken
-
callContext
protected org.apache.chemistry.opencmis.commons.server.CallContext callContext -
responseAlreadySent
protected boolean responseAlreadySent- Since:
- 11.1
-
documentFilter
Filter that hides HiddenInNavigation and deleted objects. -
readPermissions
-
writePermissions
-
errorOnCancelCheckOutOfDraftVersion
protected final boolean errorOnCancelCheckOutOfDraftVersion -
REPLACE_QUOTE
-
collectObjectInfos
protected boolean collectObjectInfos -
objectInfos
-
-
Constructor Details
-
NuxeoCmisService
Constructs a Nuxeo CMIS Service from an existingCoreSession.- Parameters:
coreSession- the session- Since:
- 6.0
-
NuxeoCmisService
Constructs a Nuxeo CMIS Service.- Parameters:
repositoryName- the repository name- Since:
- 6.0
-
NuxeoCmisService
-
-
Method Details
-
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
-
openCoreSession
-
getNuxeoRepository
-
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
-
setCallContext
public void setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext) - Specified by:
setCallContextin interfaceorg.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisService
-
getDocumentFilter
Gets the filter that hides HiddenInNavigation and deleted objects. -
getIdFromDocumentRef
-
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
-
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
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 -
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
-
escapeStringForNXQL
-
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
-
clearObjectInfos
public void clearObjectInfos()- Overrides:
clearObjectInfosin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
collectObjectInfo
-
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
-
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) -
permissionToNuxeo
-
permissionFromNuxeo
-
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. -
getLatestChangeLogToken
-
addProxyClause
-
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
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
-
checkOut
-
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
-
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
-