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 |
owTransientObject
OBJECT_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, setProperties
canGetPermissions, canSetPermissions, createCopyProperties, getCopyClassName, getResource, getSession
add, 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNativeObject, getTransientObject, retrieveRenditions
getSession
getChildCount, getChilds, getDMSID, getNativeID, getObjectClass, getPermissions, getProperty, getResource, getResourceID, hasChilds, setProperties, setProperties
add, 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, setPermissions
public 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.OwException
public String getMIMEType() throws com.wewebu.ow.server.exceptions.OwException
getMIMEType
in interface com.wewebu.ow.server.ecm.OwObjectReference
getMIMEType
in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>
com.wewebu.ow.server.exceptions.OwException
public boolean hasContent(int context_p) throws com.wewebu.ow.server.exceptions.OwException
hasContent
in interface com.wewebu.ow.server.ecm.OwObjectReference
hasContent
in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>
com.wewebu.ow.server.exceptions.OwException
public com.wewebu.ow.server.ecm.OwContentCollection getContentCollection() throws com.wewebu.ow.server.exceptions.OwException
getContentCollection
in interface com.wewebu.ow.server.ecm.OwObject
getContentCollection
in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>
com.wewebu.ow.server.exceptions.OwException
public boolean canGetContent(int iContentType_p, int iContext_p) throws Exception
canGetContent
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content) throws Exception
setContentCollection
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canSetContent(int iContentType_p, int iContext_p) throws Exception
canSetContent
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwVersion getVersion()
getVersion
in interface com.wewebu.ow.server.ecm.OwObject
protected boolean mustCreateVersionSeriesObject()
public OwCMISVersionSeries getVersionSeries() throws com.wewebu.ow.server.exceptions.OwException
getVersionSeries
in interface com.wewebu.ow.server.ecm.OwObject
getVersionSeries
in interface OwCMISDocument<N extends org.apache.chemistry.opencmis.client.api.TransientDocument>
com.wewebu.ow.server.exceptions.OwException
protected OwCMISVersionSeries getVersionSeriesObject() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
protected OwCMISVersionSeries toVersionSeries() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public int[] getVersionNumber()
getVersionNumber
in interface com.wewebu.ow.server.ecm.OwVersion
public String getVersionInfo() throws com.wewebu.ow.server.exceptions.OwException
getVersionInfo
in interface com.wewebu.ow.server.ecm.OwVersion
com.wewebu.ow.server.exceptions.OwException
public boolean isReleased(int context_p) throws Exception
isReleased
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public boolean isLatest(int context_p) throws Exception
isLatest
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public boolean isMajor(int context_p) throws com.wewebu.ow.server.exceptions.OwException
isMajor
in interface com.wewebu.ow.server.ecm.OwVersion
com.wewebu.ow.server.exceptions.OwException
public boolean isCheckedOut(int context_p) throws com.wewebu.ow.server.exceptions.OwException
isCheckedOut
in interface com.wewebu.ow.server.ecm.OwVersion
com.wewebu.ow.server.exceptions.OwException
public boolean isMyCheckedOut(int context_p) throws com.wewebu.ow.server.exceptions.OwException
isMyCheckedOut
in interface com.wewebu.ow.server.ecm.OwVersion
isMyCheckedOut
in interface OwCMISDocument<N extends org.apache.chemistry.opencmis.client.api.TransientDocument>
com.wewebu.ow.server.exceptions.OwException
public String getCheckedOutUserID(int iContext_p) throws com.wewebu.ow.server.exceptions.OwException
getCheckedOutUserID
in interface com.wewebu.ow.server.ecm.OwVersion
com.wewebu.ow.server.exceptions.OwException
public 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.OwVersion
com.wewebu.ow.server.exceptions.OwException
public 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.OwVersion
Exception
public boolean canCheckout(int context_p) throws Exception
canCheckout
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
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) throws Exception
Exception
public 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.OwVersion
Exception
public boolean canCheckin(int context_p) throws Exception
canCheckin
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public void cancelcheckout() throws com.wewebu.ow.server.exceptions.OwException
cancelcheckout
in interface com.wewebu.ow.server.ecm.OwVersion
cancelcheckout
in interface OwCMISDocument<N extends org.apache.chemistry.opencmis.client.api.TransientDocument>
com.wewebu.ow.server.exceptions.OwException
public boolean canCancelcheckout(int context_p) throws com.wewebu.ow.server.exceptions.OwException
canCancelcheckout
in interface com.wewebu.ow.server.ecm.OwVersion
com.wewebu.ow.server.exceptions.OwException
public boolean canSetProperties(int context)
canSetProperties
in interface com.wewebu.ow.server.ecm.OwObject
canSetProperties
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.OwVersion
Exception
public boolean canPromote(int context_p) throws Exception
canPromote
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public void demote() throws Exception
demote
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public boolean canDemote(int context_p) throws Exception
canDemote
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public void save(com.wewebu.ow.server.ecm.OwContentCollection content, String mimeType, String mimeParameter) throws Exception
save
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public boolean canSave(int context_p)
canSave
in interface com.wewebu.ow.server.ecm.OwVersion
public com.wewebu.ow.server.ecm.OwObjectCollection getParents() throws com.wewebu.ow.server.exceptions.OwException
getParents
in interface com.wewebu.ow.server.ecm.OwObject
getParents
in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>
com.wewebu.ow.server.exceptions.OwException
public String getPath() throws com.wewebu.ow.server.exceptions.OwException
getPath
in interface com.wewebu.ow.server.ecm.OwObject
getPath
in interface OwCMISObject
getPath
in class OwCMISAbstractObject<C extends OwCMISNativeObjectClass<D,N>>
com.wewebu.ow.server.exceptions.OwException
public 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
OwCMISObject
createCopy
in interface OwCMISObject
createCopy
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.OwException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.