public abstract class OwCMISAbstractTransientDocumentObject<N extends org.apache.chemistry.opencmis.client.api.TransientDocument,D extends org.apache.chemistry.opencmis.client.api.DocumentType,C extends OwCMISNativeObjectClass<D,N>> extends OwCMISAbstractNativeObject<N,D,C> implements OwCMISDocument<N>
OwCMISAbstractTransientDocumentObject. Base implementation for handling Documents objects, using OpenCMIS TransientDocument Client-API.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Field and Description |
|---|---|
protected static Set<String> |
CONTENT_STREAM_PROPERTIES |
protected static Set<String> |
VERSION_PROPERTIES |
protected static Map<String,Object> |
VERSION_SERIES_PARAMETERS |
owTransientObjectOBJECT_TYPE_ALL_CONTAINER_OBJECTS, OBJECT_TYPE_ALL_CONTENT_OBJECTS, OBJECT_TYPE_ALL_TUPLE_OBJECTS, OBJECT_TYPE_ALL_WORKFLOW_OBJECTS, OBJECT_TYPE_BPM_ROOT_FOLDER, OBJECT_TYPE_CONTAINER_USER_START, OBJECT_TYPE_CONTENT_USER_START, OBJECT_TYPE_CROSS_QUEUE_FOLDER, OBJECT_TYPE_CUSTOM, OBJECT_TYPE_DOCUMENT, OBJECT_TYPE_DYNAMIC_VIRTUAL_FOLDER, OBJECT_TYPE_ECM_ROOT_FOLDER, OBJECT_TYPE_FOLDER, OBJECT_TYPE_HISTORY, OBJECT_TYPE_LINK, OBJECT_TYPE_PROXY_QUEUE_FOLDER, OBJECT_TYPE_PUBLIC_QUEUE_FOLDER, OBJECT_TYPE_ROSTER_FOLDER, OBJECT_TYPE_ROSTERITEM, OBJECT_TYPE_STORED_SEARCH, OBJECT_TYPE_SYS_QUEUE_FOLDER, OBJECT_TYPE_TRACKER_QUEUE_FOLDER, OBJECT_TYPE_TUPLE_USER_START, OBJECT_TYPE_UNDEFINED, OBJECT_TYPE_USER_QUEUE_FOLDER, OBJECT_TYPE_VIRTUAL_FOLDER, OBJECT_TYPE_WORKFLOW_USER_START, OBJECT_TYPE_WORKITEM, OBJECT_TYPE_WORKITEM_PROXY, OBJECT_TYPE_WORKITEM_TRACKER| Constructor and Description |
|---|
OwCMISAbstractTransientDocumentObject(OwCMISNativeSession session_p,
N nativeObject_p,
org.apache.chemistry.opencmis.client.api.OperationContext creationContext,
C class_p) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCancelcheckout(int context_p) |
void |
cancelcheckout() |
boolean |
canCheckin(int context_p) |
boolean |
canCheckout(int context_p) |
boolean |
canDemote(int context_p) |
boolean |
canGetContent(int iContentType_p,
int iContext_p) |
boolean |
canPromote(int context_p) |
boolean |
canSave(int context_p) |
boolean |
canSetContent(int iContentType_p,
int iContext_p) |
boolean |
canSetProperties(int context) |
void |
checkin(boolean promote,
Object mode,
String className,
com.wewebu.ow.server.ecm.OwPropertyCollection properties,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions,
com.wewebu.ow.server.ecm.OwContentCollection content,
boolean overwriteContent,
String mimeType,
String mimeParameter) |
protected org.apache.chemistry.opencmis.client.api.ObjectId |
checkinThisVersion(boolean promote,
Object mode,
String className,
com.wewebu.ow.server.ecm.OwPropertyCollection properties,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions,
com.wewebu.ow.server.ecm.OwContentCollection content,
boolean overwriteContent,
String mimeType,
String mimeParameter) |
void |
checkout(Object mode_p) |
OwCMISObject |
createCopy(OwCMISObject copyParent_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
int[] childTypes_p)
Create a copy of this object using provided information.
|
void |
demote() |
boolean |
equals(com.wewebu.ow.server.ecm.OwVersion version_p) |
String |
getCheckedOutUserID(int iContext_p) |
com.wewebu.ow.server.ecm.OwContentCollection |
getContentCollection() |
String |
getMIMEType() |
com.wewebu.ow.server.ecm.OwObjectCollection |
getParents() |
String |
getPath() |
com.wewebu.ow.server.ecm.OwVersion |
getVersion() |
String |
getVersionInfo() |
int[] |
getVersionNumber() |
OwCMISVersionSeries |
getVersionSeries() |
protected OwCMISVersionSeries |
getVersionSeriesObject() |
boolean |
hasContent(int context_p) |
int |
hashCode() |
boolean |
isCheckedOut(int context_p) |
boolean |
isLatest(int context_p) |
boolean |
isMajor(int context_p) |
boolean |
isMyCheckedOut(int context_p) |
boolean |
isReleased(int context_p) |
protected boolean |
mustCreateVersionSeriesObject() |
void |
promote() |
void |
save(com.wewebu.ow.server.ecm.OwContentCollection content,
String mimeType,
String mimeParameter) |
void |
setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content) |
protected OwCMISVersionSeries |
toVersionSeries() |
afterPropertiesSet, canDelete, delete, detach, getChildren, getChilds, getDMSID, getID, getName, getNativeID, getNativeObject, getPermissions, getProperties, getProperty, getRelationDirection, getRelationTypeFilter, getTransientObject, hasChilds, refreshProperties, refreshProperties, reloadNativeObject, replaceNativeObject, replaceNativeObject, replaceNativeObject, retrieveRenditions, setPermissions, setPropertiescanGetPermissions, canSetPermissions, createCopyProperties, getCopyClassName, getResource, getSessionadd, canAdd, canChangeClass, canFilterChilds, canGetProperties, canLock, canMove, canRemoveReference, changeClass, checkPropertyCollection, equals, getChildCount, getClassName, getClonedPermissions, getClonedProperties, getColumnInfoList, getField, getFieldProviderName, getFieldProviderSource, getFieldProviderType, getFields, getFilterProperties, getInstance, getLock, getLockUserID, getMIMEParameter, getMyLock, getObjectClass, getPageCount, getResourceID, getSafeFieldValue, getSearchTemplate, getType, getVirtualProperties, getVirtualProperty, hasVersionSeries, move, removeReference, setField, setLock, setProperties, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNativeObject, getTransientObject, retrieveRenditionsgetSessiongetChildCount, getChilds, getDMSID, getNativeID, getObjectClass, getPermissions, getProperty, getResource, getResourceID, hasChilds, setProperties, setPropertiesadd, canAdd, canChangeClass, canDelete, canFilterChilds, canGetPermissions, canGetProperties, canLock, canMove, canRemoveReference, canSetPermissions, changeClass, delete, getClassName, getClonedPermissions, getClonedProperties, getColumnInfoList, getFilterProperties, getLock, getLockUserID, getMyLock, getProperties, getSearchTemplate, hasVersionSeries, move, refreshProperties, refreshProperties, removeReference, setLock, setPermissionspublic OwCMISAbstractTransientDocumentObject(OwCMISNativeSession session_p, N nativeObject_p, org.apache.chemistry.opencmis.client.api.OperationContext creationContext, C class_p) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwExceptionpublic String getMIMEType() throws com.wewebu.ow.server.exceptions.OwException
getMIMEType in interface com.wewebu.ow.server.ecm.OwObjectReferencegetMIMEType in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>com.wewebu.ow.server.exceptions.OwExceptionpublic boolean hasContent(int context_p)
throws com.wewebu.ow.server.exceptions.OwException
hasContent in interface com.wewebu.ow.server.ecm.OwObjectReferencehasContent in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>com.wewebu.ow.server.exceptions.OwExceptionpublic com.wewebu.ow.server.ecm.OwContentCollection getContentCollection()
throws com.wewebu.ow.server.exceptions.OwException
getContentCollection in interface com.wewebu.ow.server.ecm.OwObjectgetContentCollection in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>com.wewebu.ow.server.exceptions.OwExceptionpublic boolean canGetContent(int iContentType_p,
int iContext_p)
throws Exception
canGetContent in interface com.wewebu.ow.server.ecm.OwObjectExceptionpublic void setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content)
throws Exception
setContentCollection in interface com.wewebu.ow.server.ecm.OwObjectExceptionpublic boolean canSetContent(int iContentType_p,
int iContext_p)
throws Exception
canSetContent in interface com.wewebu.ow.server.ecm.OwObjectExceptionpublic com.wewebu.ow.server.ecm.OwVersion getVersion()
getVersion in interface com.wewebu.ow.server.ecm.OwObjectprotected boolean mustCreateVersionSeriesObject()
public OwCMISVersionSeries getVersionSeries() throws com.wewebu.ow.server.exceptions.OwException
getVersionSeries in interface com.wewebu.ow.server.ecm.OwObjectgetVersionSeries in interface OwCMISDocument<N extends org.apache.chemistry.opencmis.client.api.TransientDocument>com.wewebu.ow.server.exceptions.OwExceptionprotected OwCMISVersionSeries getVersionSeriesObject() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwExceptionprotected OwCMISVersionSeries toVersionSeries() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwExceptionpublic int[] getVersionNumber()
getVersionNumber in interface com.wewebu.ow.server.ecm.OwVersionpublic String getVersionInfo() throws com.wewebu.ow.server.exceptions.OwException
getVersionInfo in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.exceptions.OwExceptionpublic boolean isReleased(int context_p)
throws Exception
isReleased in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean isLatest(int context_p)
throws Exception
isLatest in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean isMajor(int context_p)
throws com.wewebu.ow.server.exceptions.OwException
isMajor in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.exceptions.OwExceptionpublic boolean isCheckedOut(int context_p)
throws com.wewebu.ow.server.exceptions.OwException
isCheckedOut in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.exceptions.OwExceptionpublic boolean isMyCheckedOut(int context_p)
throws com.wewebu.ow.server.exceptions.OwException
isMyCheckedOut in interface com.wewebu.ow.server.ecm.OwVersionisMyCheckedOut in interface OwCMISDocument<N extends org.apache.chemistry.opencmis.client.api.TransientDocument>com.wewebu.ow.server.exceptions.OwExceptionpublic String getCheckedOutUserID(int iContext_p) throws com.wewebu.ow.server.exceptions.OwException
getCheckedOutUserID in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.exceptions.OwExceptionpublic boolean equals(com.wewebu.ow.server.ecm.OwVersion version_p)
throws com.wewebu.ow.server.exceptions.OwException
equals in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.exceptions.OwExceptionpublic int hashCode()
hashCode in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>public void checkout(Object mode_p) throws Exception
checkout in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canCheckout(int context_p)
throws Exception
canCheckout in interface com.wewebu.ow.server.ecm.OwVersionExceptionprotected org.apache.chemistry.opencmis.client.api.ObjectId checkinThisVersion(boolean promote,
Object mode,
String className,
com.wewebu.ow.server.ecm.OwPropertyCollection properties,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions,
com.wewebu.ow.server.ecm.OwContentCollection content,
boolean overwriteContent,
String mimeType,
String mimeParameter)
throws Exception
Exceptionpublic void checkin(boolean promote,
Object mode,
String className,
com.wewebu.ow.server.ecm.OwPropertyCollection properties,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions,
com.wewebu.ow.server.ecm.OwContentCollection content,
boolean overwriteContent,
String mimeType,
String mimeParameter)
throws Exception
checkin in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canCheckin(int context_p)
throws Exception
canCheckin in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void cancelcheckout()
throws com.wewebu.ow.server.exceptions.OwException
cancelcheckout in interface com.wewebu.ow.server.ecm.OwVersioncancelcheckout in interface OwCMISDocument<N extends org.apache.chemistry.opencmis.client.api.TransientDocument>com.wewebu.ow.server.exceptions.OwExceptionpublic boolean canCancelcheckout(int context_p)
throws com.wewebu.ow.server.exceptions.OwException
canCancelcheckout in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.exceptions.OwExceptionpublic boolean canSetProperties(int context)
canSetProperties in interface com.wewebu.ow.server.ecm.OwObjectcanSetProperties in class OwCMISAbstractNativeObject<N extends org.apache.chemistry.opencmis.client.api.TransientDocument,D extends org.apache.chemistry.opencmis.client.api.DocumentType,C extends OwCMISNativeObjectClass<D,N>>public void promote()
throws Exception
promote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canPromote(int context_p)
throws Exception
canPromote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void demote()
throws Exception
demote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canDemote(int context_p)
throws Exception
canDemote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void save(com.wewebu.ow.server.ecm.OwContentCollection content,
String mimeType,
String mimeParameter)
throws Exception
save in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canSave(int context_p)
canSave in interface com.wewebu.ow.server.ecm.OwVersionpublic com.wewebu.ow.server.ecm.OwObjectCollection getParents()
throws com.wewebu.ow.server.exceptions.OwException
getParents in interface com.wewebu.ow.server.ecm.OwObjectgetParents in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>com.wewebu.ow.server.exceptions.OwExceptionpublic String getPath() throws com.wewebu.ow.server.exceptions.OwException
getPath in interface com.wewebu.ow.server.ecm.OwObjectgetPath in interface OwCMISObjectgetPath in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>com.wewebu.ow.server.exceptions.OwExceptionpublic OwCMISObject createCopy(OwCMISObject copyParent_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p, int[] childTypes_p) throws com.wewebu.ow.server.exceptions.OwException
OwCMISObjectcreateCopy in interface OwCMISObjectcreateCopy in class OwCMISAbstractSessionObject<OwCMISNativeSession,C extends OwCMISNativeObjectClass<D,N>>copyParent_p - OwCMISObject parent for created copy (can be null)properties_p - OwPropertyCollection to be set for new created copypermissions_p - OwPermissionCollection to be defined for copy objectchildTypes_p - int array of child types which should be also copiedcom.wewebu.ow.server.exceptions.OwExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.