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 aCoreSession
.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
cachedChangeLogToken
protected org.apache.chemistry.opencmis.commons.server.CallContext
callContext
protected boolean
collectObjectInfos
protected CoreSession
coreSession
static int
DEFAULT_CHANGE_LOG_SIZE
static int
DEFAULT_FOLDER_LEVELS
static int
DEFAULT_MAX_CHILDREN
static int
DEFAULT_MAX_RELATIONSHIPS
static int
DEFAULT_QUERY_SIZE
static int
DEFAULT_TYPE_LEVELS
protected Filter
documentFilter
Filter that hides HiddenInNavigation and deleted objects.static String
ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP
protected boolean
errorOnCancelCheckOutOfDraftVersion
static String
ES_AUDIT_EVENT_ID
static String
ES_AUDIT_ID
static String
ES_AUDIT_REPOSITORY_ID
static int
MAX_CHANGE_LOG_SIZE
static String
NX_CHANGE_LOG_ID
Synthetic property for change log entries recording the log entry id.protected org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory
objectFactory
protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo>
objectInfos
static String
PERMISSION_NOTHING
protected Set<String>
readPermissions
protected static String
REPLACE_QUOTE
protected NuxeoRepository
repository
protected boolean
responseAlreadySent
protected 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
.protected
NuxeoCmisService(CoreSession coreSession, String repositoryName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addObjectInfo(org.apache.chemistry.opencmis.commons.server.ObjectInfo info)
void
addObjectToFolder(String repositoryId, String objectId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
protected String
addProxyClause(String query)
org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress
afterServiceCall()
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)
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)
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)
void
applyPolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress
beforeServiceCall()
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)
void
cancelCheckOut(String objectId)
void
cancelCheckOut(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
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)
String
checkOut(String objectId)
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)
void
clearObjectInfos()
void
close()
protected void
collectObjectInfo(String repositoryId, String objectId)
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)
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)
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)
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)
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.protected DocumentModel
createDocumentModel(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
Creates bare unsaved document model.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)
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)
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)
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)
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)
void
deleteObject(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
void
deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
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)
protected static String
escapeStringForNXQL(String s)
static NuxeoCmisService
extractFromCmisService(org.apache.chemistry.opencmis.commons.server.CmisService service)
org.apache.chemistry.opencmis.commons.data.Acl
getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.data.AllowableActions
getAllowableActions(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.CallContext
getCallContext()
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)
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)
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)
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)
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)
CoreSession
getCoreSession()
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 Filter
getDocumentFilter()
Gets the filter that hides HiddenInNavigation and deleted objects.protected DocumentModel
getDocumentModel(String id)
org.apache.chemistry.opencmis.commons.data.ObjectData
getFolderParent(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.ContentStream
getIconRenditionStream(String objectId)
Deprecated.since 7.3.protected String
getIdFromDocumentRef(DocumentRef ref)
protected String
getLatestChangeLogToken(String repositoryId)
protected org.apache.chemistry.opencmis.commons.data.ObjectData
getLogEntryObjectData(LogEntry logEntry)
Gets object data for a log entry, or null if skipped.NuxeoRepository
getNuxeoRepository()
protected static NuxeoRepository
getNuxeoRepository(String repositoryName)
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)
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)
protected DocumentModel
getObjectByPathOfNames(String path)
Gets a document given a path built out of dc:title components.org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory
getObjectFactory()
protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo>
getObjectInfo()
org.apache.chemistry.opencmis.commons.server.ObjectInfo
getObjectInfo(String repositoryId, String objectId)
protected org.apache.chemistry.opencmis.commons.server.ObjectInfo
getObjectInfo(String repositoryId, org.apache.chemistry.opencmis.commons.data.ObjectData data)
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)
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.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)
org.apache.chemistry.opencmis.commons.data.Properties
getProperties(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
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)
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.ContentStream
getRenditionServiceStream(String objectId, String renditionName)
Deprecated.since 11.1, now unusedorg.apache.chemistry.opencmis.commons.data.RepositoryInfo
getRepositoryInfo(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.TypeDefinitionList
getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getTypeDefinition(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 TypeManagerImpl
getTypeManager()
boolean
isFilteredOut(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.ObjectDataImpl
makeObjectData(Map<String,Serializable> map, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
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)
protected static CoreSession
openCoreSession(String repositoryName, String username)
protected static String
permissionFromNuxeo(String permission)
protected static String
permissionToNuxeo(String permission)
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)
IterableQueryResult
queryAndFetch(String query, boolean searchAllVersions)
Makes a CMISQL query to the repository and returns anIterableQueryResult
, which MUST be closed in afinally
block.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 afinally
block.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.void
removeObjectFromFolder(String repositoryId, String objectId, String folderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
void
removePolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
protected void
save()
void
setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
protected void
setChangeTokenForUpdate(DocumentModel doc, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder)
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)
protected String
setInitialVersioningState(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
Sets initial versioning state and returns its id.protected <T> void
setObjectProperty(NuxeoObjectData object, String key, Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd, boolean creation)
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)
protected void
setResponseHeader(String headerName, Blob blob, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
Deprecated.since 11.1, now unusedvoid
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)
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)
protected <T> void
updateProperties(NuxeoObjectData object, Map<String,?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, boolean creation)
protected <T> void
updateProperties(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:
close
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisService
- Overrides:
close
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
beforeServiceCall
public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress beforeServiceCall()
- Specified by:
beforeServiceCall
in interfaceorg.apache.chemistry.opencmis.commons.server.ProgressControlCmisService
-
afterServiceCall
public org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress afterServiceCall()
- Specified by:
afterServiceCall
in 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:
getCallContext
in 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:
setCallContext
in 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:
getRepositoryInfos
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Specified by:
getRepositoryInfos
in 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:
getRepositoryInfo
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Overrides:
getRepositoryInfo
in 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:
getTypeDefinition
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Specified by:
getTypeDefinition
in 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:
getTypeChildren
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Specified by:
getTypeChildren
in 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:
getTypeDescendants
in interfaceorg.apache.chemistry.opencmis.commons.spi.RepositoryService
- Overrides:
getTypeDescendants
in 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:
getObject
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Specified by:
getObject
in 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:
create
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisService
- Overrides:
create
in 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:
createDocument
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
createDocument
in 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:
createFolder
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
createFolder
in 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:
createPolicy
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
createPolicy
in 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:
createRelationship
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
createRelationship
in 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:
createDocumentFromSource
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
createDocumentFromSource
in 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:
deleteContentStream
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
deleteContentStream
in 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:
deleteTree
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
deleteTree
in 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:
getAllowableActions
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
getAllowableActions
in 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:
getContentStream
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
getContentStream
in 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:
getRenditions
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
getRenditions
in 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:
getObjectByPath
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
getObjectByPath
in 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:
getProperties
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
getProperties
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
getObjectInfo
public org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo(String repositoryId, String objectId)
- Specified by:
getObjectInfo
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisService
- Specified by:
getObjectInfo
in interfaceorg.apache.chemistry.opencmis.commons.server.ObjectInfoHandler
- Overrides:
getObjectInfo
in 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:
clearObjectInfos
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
addObjectInfo
public void addObjectInfo(org.apache.chemistry.opencmis.commons.server.ObjectInfo info)
- Specified by:
addObjectInfo
in interfaceorg.apache.chemistry.opencmis.commons.server.ObjectInfoHandler
- Overrides:
addObjectInfo
in 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:
moveObject
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
moveObject
in 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:
setContentStream
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
setContentStream
in 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:
updateProperties
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
updateProperties
in 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:
bulkUpdateProperties
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
bulkUpdateProperties
in 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:
applyAcl
in interfaceorg.apache.chemistry.opencmis.commons.spi.AclService
- Overrides:
applyAcl
in 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:
applyAcl
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisService
- Overrides:
applyAcl
in 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:
getAcl
in interfaceorg.apache.chemistry.opencmis.commons.spi.AclService
- Overrides:
getAcl
in 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:
getContentChanges
in interfaceorg.apache.chemistry.opencmis.commons.spi.DiscoveryService
- Overrides:
getContentChanges
in 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:
query
in interfaceorg.apache.chemistry.opencmis.commons.spi.DiscoveryService
- Overrides:
query
in 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 afinally
block.- 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, ornull
if no such info is needed- Returns:
- an
IterableQueryResult
, which MUST be closed in afinally
block - 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 afinally
block.- 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 afinally
block - 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, ornull
if 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:
addObjectToFolder
in interfaceorg.apache.chemistry.opencmis.commons.spi.MultiFilingService
- Overrides:
addObjectToFolder
in 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:
removeObjectFromFolder
in interfaceorg.apache.chemistry.opencmis.commons.spi.MultiFilingService
- Overrides:
removeObjectFromFolder
in 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:
getChildren
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Specified by:
getChildren
in 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:
getDescendants
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Overrides:
getDescendants
in 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:
getFolderTree
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Overrides:
getFolderTree
in 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:
getFolderParent
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Overrides:
getFolderParent
in 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:
getObjectParents
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Specified by:
getObjectParents
in 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:
applyPolicy
in interfaceorg.apache.chemistry.opencmis.commons.spi.PolicyService
- Overrides:
applyPolicy
in 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:
getAppliedPolicies
in interfaceorg.apache.chemistry.opencmis.commons.spi.PolicyService
- Overrides:
getAppliedPolicies
in 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:
removePolicy
in interfaceorg.apache.chemistry.opencmis.commons.spi.PolicyService
- Overrides:
removePolicy
in 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:
getObjectRelationships
in interfaceorg.apache.chemistry.opencmis.commons.spi.RelationshipService
- Overrides:
getObjectRelationships
in 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:
checkIn
in interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService
- Overrides:
checkIn
in 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:
checkOut
in interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService
- Overrides:
checkOut
in 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:
cancelCheckOut
in interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService
- Overrides:
cancelCheckOut
in 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:
getCheckedOutDocs
in interfaceorg.apache.chemistry.opencmis.commons.spi.NavigationService
- Overrides:
getCheckedOutDocs
in 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:
getAllVersions
in interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService
- Overrides:
getAllVersions
in 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:
getObjectOfLatestVersion
in interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService
- Overrides:
getObjectOfLatestVersion
in 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:
getPropertiesOfLatestVersion
in interfaceorg.apache.chemistry.opencmis.commons.spi.VersioningService
- Overrides:
getPropertiesOfLatestVersion
in 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:
deleteObject
in interfaceorg.apache.chemistry.opencmis.commons.spi.ObjectService
- Overrides:
deleteObject
in 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:
deleteObjectOrCancelCheckOut
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisService
- Overrides:
deleteObjectOrCancelCheckOut
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService
-
-