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
CoreSession.| Modifier and Type | Field and Description |
|---|---|
protected String |
cachedChangeLogToken |
protected org.apache.chemistry.opencmis.commons.server.CallContext |
callContext |
protected boolean |
collectObjectInfos |
protected CoreSession |
coreSession |
protected boolean |
coreSessionOwned
When false, we don't own the core session and shouldn't close it.
|
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 Set<String> |
writePermissions |
| Modifier | Constructor and Description |
|---|---|
|
NuxeoCmisService(CoreSession coreSession)
Constructs a Nuxeo CMIS Service from an existing
CoreSession. |
protected |
NuxeoCmisService(CoreSession coreSession,
String repositoryName) |
|
NuxeoCmisService(String repositoryName)
Constructs a Nuxeo CMIS Service.
|
| Modifier and Type | Method and 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() |
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) |
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) |
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. The thumbnail is now a default rendition, see NXP-16662.
|
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() |
protected org.apache.chemistry.opencmis.commons.server.ObjectInfo |
getObjectInfo(String repositoryId,
org.apache.chemistry.opencmis.commons.data.ObjectData data) |
org.apache.chemistry.opencmis.commons.server.ObjectInfo |
getObjectInfo(String repositoryId,
String objectId) |
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) |
org.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 an
IterableQueryResult, which MUST be closed in a
finally 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 an
IterableQueryResult, which MUST be closed in a
finally 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 a
PartialList. |
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) |
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) |
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) |
appendContentStream, createItem, createType, deleteType, getBooleanProperty, getDateTimeProperty, getIdProperty, getIntegerProperty, getObjectInfoIntern, getStringProperty, updateTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int DEFAULT_TYPE_LEVELS
public static final int DEFAULT_FOLDER_LEVELS
public static final int DEFAULT_CHANGE_LOG_SIZE
public static final int MAX_CHANGE_LOG_SIZE
public static final int DEFAULT_QUERY_SIZE
public static final int DEFAULT_MAX_CHILDREN
public static final int DEFAULT_MAX_RELATIONSHIPS
public static final String PERMISSION_NOTHING
public static final String NX_CHANGE_LOG_ID
public static final String ES_AUDIT_ID
public static final String ES_AUDIT_REPOSITORY_ID
public static final String ES_AUDIT_EVENT_ID
public static final String ERROR_ON_CANCEL_CHECK_OUT_OF_DRAFT_VERSION_PROP
protected final org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objectFactory
protected final NuxeoRepository repository
protected final boolean coreSessionOwned
protected CoreSession coreSession
protected String cachedChangeLogToken
protected org.apache.chemistry.opencmis.commons.server.CallContext callContext
protected final Filter documentFilter
protected final Set<String> readPermissions
protected final Set<String> writePermissions
protected final boolean errorOnCancelCheckOutOfDraftVersion
protected static String REPLACE_QUOTE
protected boolean collectObjectInfos
protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo> objectInfos
public NuxeoCmisService(CoreSession coreSession)
CoreSession.coreSession - the sessionpublic NuxeoCmisService(String repositoryName)
repositoryName - the repository nameprotected NuxeoCmisService(CoreSession coreSession, String repositoryName)
public static NuxeoCmisService extractFromCmisService(org.apache.chemistry.opencmis.commons.server.CmisService service)
public void close()
close in interface org.apache.chemistry.opencmis.commons.server.CmisServiceclose in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress beforeServiceCall()
beforeServiceCall in interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisServicepublic org.apache.chemistry.opencmis.commons.server.ProgressControlCmisService.Progress afterServiceCall()
afterServiceCall in interface org.apache.chemistry.opencmis.commons.server.ProgressControlCmisServiceprotected static NuxeoRepository getNuxeoRepository(String repositoryName)
protected static CoreSession openCoreSession(String repositoryName, String username)
public NuxeoRepository getNuxeoRepository()
public CoreSession getCoreSession()
public org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory getObjectFactory()
public org.apache.chemistry.opencmis.commons.server.CallContext getCallContext()
getCallContext in interface org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisServiceprotected TypeManagerImpl getTypeManager()
public void setCallContext(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
setCallContext in interface org.apache.chemistry.opencmis.server.support.wrapper.CallContextAwareCmisServiceprotected Filter getDocumentFilter()
protected String getIdFromDocumentRef(DocumentRef ref)
protected void save()
public List<org.apache.chemistry.opencmis.commons.data.RepositoryInfo> getRepositoryInfos(org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getRepositoryInfos in interface org.apache.chemistry.opencmis.commons.spi.RepositoryServicegetRepositoryInfos in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo(String repositoryId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getRepositoryInfo in interface org.apache.chemistry.opencmis.commons.spi.RepositoryServicegetRepositoryInfo in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(String repositoryId, String typeId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getTypeDefinition in interface org.apache.chemistry.opencmis.commons.spi.RepositoryServicegetTypeDefinition in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getTypeChildren in interface org.apache.chemistry.opencmis.commons.spi.RepositoryServicegetTypeChildren in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getTypeDescendants in interface org.apache.chemistry.opencmis.commons.spi.RepositoryServicegetTypeDescendants in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected DocumentModel getDocumentModel(String id)
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)
getObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicegetObject in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic boolean isFilteredOut(DocumentModel doc)
protected DocumentModel createDocumentModel(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
protected DocumentModel createDocumentModel(org.apache.chemistry.opencmis.client.api.ObjectId folder, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String name)
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)
protected <T> void updateProperties(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.data.Properties properties, boolean creation)
protected <T> void updateProperties(NuxeoObjectData object, Map<String,?> properties, org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type, 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 <T> void setObjectProperty(NuxeoObjectData object, String key, Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd, boolean creation)
protected String setInitialVersioningState(NuxeoObjectData object, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState)
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)
create in interface org.apache.chemistry.opencmis.commons.server.CmisServicecreate in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
createDocument in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicecreateDocument in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
createFolder in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicecreateFolder in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
createPolicy in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicecreatePolicy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
createRelationship in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicecreateRelationship in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
createDocumentFromSource in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicecreateDocumentFromSource in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
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)
deleteContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicedeleteContentStream in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
deleteTree in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicedeleteTree in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getAllowableActions in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicegetAllowableActions in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicegetContentStream in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected void setResponseHeader(String headerName, Blob blob, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
@Deprecated protected org.apache.chemistry.opencmis.commons.data.ContentStream getIconRenditionStream(String objectId)
protected org.apache.chemistry.opencmis.commons.data.ContentStream getRenditionServiceStream(String objectId, String renditionName)
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)
getRenditions in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicegetRenditions in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getObjectByPath in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicegetObjectByPath in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected DocumentModel getObjectByPathOfNames(String path) throws org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException
Filtered out docs are ignored.
org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundExceptionprotected static String escapeStringForNXQL(String s)
public org.apache.chemistry.opencmis.commons.data.Properties getProperties(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicegetProperties in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo(String repositoryId, String objectId)
getObjectInfo in interface org.apache.chemistry.opencmis.commons.server.CmisServicegetObjectInfo in interface org.apache.chemistry.opencmis.commons.server.ObjectInfoHandlergetObjectInfo in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected org.apache.chemistry.opencmis.commons.server.ObjectInfo getObjectInfo(String repositoryId, org.apache.chemistry.opencmis.commons.data.ObjectData data)
protected Map<String,org.apache.chemistry.opencmis.commons.server.ObjectInfo> getObjectInfo()
public void clearObjectInfos()
clearObjectInfos in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected void collectObjectInfo(String repositoryId, String objectId)
public void addObjectInfo(org.apache.chemistry.opencmis.commons.server.ObjectInfo info)
addObjectInfo in interface org.apache.chemistry.opencmis.commons.server.ObjectInfoHandleraddObjectInfo in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
moveObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicemoveObject in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
setContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicesetContentStream in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected void setChangeTokenForUpdate(DocumentModel doc, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeTokenHolder)
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)
updateProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectServiceupdateProperties in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected 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)
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)
bulkUpdateProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicebulkUpdateProperties in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
applyAcl in interface org.apache.chemistry.opencmis.commons.spi.AclServiceapplyAcl in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
applyAcl in interface org.apache.chemistry.opencmis.commons.server.CmisServiceapplyAcl in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected 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)
protected static String permissionToNuxeo(String permission)
protected static String permissionFromNuxeo(String permission)
public org.apache.chemistry.opencmis.commons.data.Acl getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getAcl in interface org.apache.chemistry.opencmis.commons.spi.AclServicegetAcl in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getContentChanges in interface org.apache.chemistry.opencmis.commons.spi.DiscoveryServicegetContentChanges in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected List<org.apache.chemistry.opencmis.commons.data.ObjectData> readAuditLog(String repositoryId, long minId, int max, int pageSize)
protected org.apache.chemistry.opencmis.commons.data.ObjectData getLogEntryObjectData(LogEntry logEntry)
protected String getLatestChangeLogToken(String repositoryId)
protected String addProxyClause(String 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)
query in interface org.apache.chemistry.opencmis.commons.spi.DiscoveryServicequery in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic IterableQueryResult queryAndFetch(String query, boolean searchAllVersions, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
IterableQueryResult, which MUST be closed in a
finally block.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, or null if no such info is
neededIterableQueryResult, which MUST be closed in a finally blockorg.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException - if the query cannot be parsed or is invalidpublic IterableQueryResult queryAndFetch(String query, boolean searchAllVersions)
IterableQueryResult, which MUST be closed in a
finally block.query - the CMISQL querysearchAllVersions - whether to search all versions (true) or only the latest version (false
), for versionable typesIterableQueryResult, which MUST be closed in a finally blockorg.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException - if the query cannot be parsed or is invalidpublic PartialList<Map<String,Serializable>> queryProjection(String query, long limit, long offset, boolean searchAllVersions, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
PartialList.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, or null if no such info is
neededPartialListorg.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException - if the query cannot be parsed or is invalidprotected org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl makeObjectData(Map<String,Serializable> map, Map<String,org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> typeInfo)
public void addObjectToFolder(String repositoryId, String objectId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
addObjectToFolder in interface org.apache.chemistry.opencmis.commons.spi.MultiFilingServiceaddObjectToFolder in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic void removeObjectFromFolder(String repositoryId, String objectId, String folderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
removeObjectFromFolder in interface org.apache.chemistry.opencmis.commons.spi.MultiFilingServiceremoveObjectFromFolder in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getChildren in interface org.apache.chemistry.opencmis.commons.spi.NavigationServicegetChildren in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected 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)
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)
getDescendants in interface org.apache.chemistry.opencmis.commons.spi.NavigationServicegetDescendants in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getFolderTree in interface org.apache.chemistry.opencmis.commons.spi.NavigationServicegetFolderTree in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected 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)
public org.apache.chemistry.opencmis.commons.data.ObjectData getFolderParent(String repositoryId, String folderId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getFolderParent in interface org.apache.chemistry.opencmis.commons.spi.NavigationServicegetFolderParent in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getObjectParents in interface org.apache.chemistry.opencmis.commons.spi.NavigationServicegetObjectParents in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceprotected 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)
public void applyPolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
applyPolicy in interface org.apache.chemistry.opencmis.commons.spi.PolicyServiceapplyPolicy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic List<org.apache.chemistry.opencmis.commons.data.ObjectData> getAppliedPolicies(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
getAppliedPolicies in interface org.apache.chemistry.opencmis.commons.spi.PolicyServicegetAppliedPolicies in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic void removePolicy(String repositoryId, String policyId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
removePolicy in interface org.apache.chemistry.opencmis.commons.spi.PolicyServiceremovePolicy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getObjectRelationships in interface org.apache.chemistry.opencmis.commons.spi.RelationshipServicegetObjectRelationships in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
checkIn in interface org.apache.chemistry.opencmis.commons.spi.VersioningServicecheckIn in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
checkOut in interface org.apache.chemistry.opencmis.commons.spi.VersioningServicecheckOut in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic void cancelCheckOut(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
cancelCheckOut in interface org.apache.chemistry.opencmis.commons.spi.VersioningServicecancelCheckOut in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic void cancelCheckOut(String objectId)
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)
getCheckedOutDocs in interface org.apache.chemistry.opencmis.commons.spi.NavigationServicegetCheckedOutDocs in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getAllVersions in interface org.apache.chemistry.opencmis.commons.spi.VersioningServicegetAllVersions in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getObjectOfLatestVersion in interface org.apache.chemistry.opencmis.commons.spi.VersioningServicegetObjectOfLatestVersion in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic 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)
getPropertiesOfLatestVersion in interface org.apache.chemistry.opencmis.commons.spi.VersioningServicegetPropertiesOfLatestVersion in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic void deleteObject(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
deleteObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectServicedeleteObject in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServicepublic void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
deleteObjectOrCancelCheckOut in interface org.apache.chemistry.opencmis.commons.server.CmisServicedeleteObjectOrCancelCheckOut in class org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisServiceCopyright © 2019 Nuxeo. All rights reserved.