public class OwDummyFileObject
extends com.wewebu.ow.server.ecm.OwFileObject
implements com.wewebu.ow.server.ecm.OwVersionSeries, com.wewebu.ow.server.ecm.OwVersion, com.wewebu.ow.server.ecm.bpm.OwCaseObject
Implements OwFileObject for dummy personal files on the file system.
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 | Class and Description |
|---|---|
static class |
OwDummyFileObject.OwDummyFileObjectClass
File documents class definition for the OwFileDocument Object
|
protected static class |
OwDummyFileObject.OwDummyFilePropertyClass
Property class definition for the OwStandardProperty properties.
|
static class |
OwDummyFileObject.OwFilePropertyArrayClass
Overwritten file property class for arrays.
|
protected static class |
OwDummyFileObject.OwFilePropertyClassMaxLen
Property class definition for the OwStandardProperty properties.
|
protected static class |
OwDummyFileObject.OwFilePropertyClassMinMax
Property class definition for the OwStandardProperty properties.
|
static class |
OwDummyFileObject.OwFilePropertyEnumClass
Overwritten file property class for enums.
|
static class |
OwDummyFileObject.OwOperatorsSingleton
OwOperatorsSingleton.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DMS_PREFIX
DMSID prefix to distinguish OwFileObjects from other objects
|
protected static com.wewebu.ow.server.ecm.OwFileObject.OwFileObjectClass |
m_DirectoryClassDescription
the one and only class description for the file objects
|
protected static com.wewebu.ow.server.ecm.OwFileObject.OwFileObjectClass |
m_FileClassDescription
the one and only class description for the file objects
|
protected static OwDummyFileObject.OwOperatorsSingleton |
m_operators |
protected static com.wewebu.ow.server.ecm.OwFileObject.OwFileObjectClass |
m_RecordRootDirectoryClassDescription
the one and only class description for the file objects
|
m_eventmanager, m_File, m_locale, m_PropertyMapCONTENT_REPRESENTATION_TYPE_NONE, CONTENT_REPRESENTATION_TYPE_OBJECT, CONTENT_REPRESENTATION_TYPE_STREAM, CONTENT_REPRESENTATION_TYPE_URL, CONTENT_REPRESENTATION_TYPE_USER_START, CONTENT_TYPE_ANNOTATION, CONTENT_TYPE_DOCUMENT, CONTENT_TYPE_SECURITY, CONTENT_TYPE_USER_STARTOBJECT_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 |
|---|
OwDummyFileObject(com.wewebu.ow.server.ecm.OwNetwork network_p,
File file_p)
construct File Object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCancelcheckout(int context_p) |
void |
cancelcheckout() |
boolean |
canChangeClass() |
boolean |
canCheckin(int context_p) |
boolean |
canCheckout(int context_p) |
boolean |
canDemote(int context_p) |
boolean |
canPromote(int context_p) |
boolean |
canSave(int context_p) |
void |
changeClass(String strNewClassName_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p) |
void |
checkin(boolean fPromote_p,
Object mode_p,
String strObjectClassName_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
com.wewebu.ow.server.ecm.OwContentCollection content_p,
boolean fOverwriteContent_p,
String strMimeType_p,
String strMimeParameter_p) |
void |
checkout(Object mode_p) |
protected com.wewebu.ow.server.ecm.OwFileObject |
createFileObject(File file_p)
overridable factory method
|
void |
demote() |
boolean |
equals(Object o_p) |
boolean |
equals(com.wewebu.ow.server.ecm.OwVersion version_p) |
boolean |
exists() |
String |
getCheckedOutUserID(int context_p) |
com.wewebu.ow.server.ecm.OwObjectCollection |
getChilds(int[] iObjectTypes_p,
Collection propertyNames_p,
com.wewebu.ow.server.field.OwSort sort_p,
int iMaxSize_p,
int iVersionSelection_p,
com.wewebu.ow.server.field.OwSearchNode filterCriteria_p)
get the children of the object, does NOT cache the returned object
|
String |
getDMSID()
get the DMS specific ID of the Object.
|
static String |
getDMSID(String basedir_p,
File file_p)
get the DMS specific ID of the Object.
|
Collection |
getFilterProperties(Collection propertynames_p) |
String |
getId() |
com.wewebu.ow.server.ecm.OwVersion |
getLatest() |
com.wewebu.ow.server.ecm.OwObject |
getObject(com.wewebu.ow.server.ecm.OwVersion version_p) |
com.wewebu.ow.server.ecm.OwObjectClass |
getObjectClass()
get the class description of the object, the class descriptions are defined by the DMS System
|
com.wewebu.ow.server.ecm.OwVersion |
getReleased() |
com.wewebu.ow.server.ecm.OwVersion |
getReservation() |
com.wewebu.ow.server.ecm.OwResource |
getResource()
get the resource the object belongs to in a multiple resource Network
|
static com.wewebu.ow.server.ecm.OwObjectClass |
getStaticObjectClass()
get the static class description
|
com.wewebu.ow.server.ecm.OwVersion |
getVersion() |
String |
getVersionInfo() |
int[] |
getVersionNumber() |
Collection |
getVersions(Collection properties_p,
com.wewebu.ow.server.field.OwSort sort_p,
int iMaxSize_p) |
com.wewebu.ow.server.ecm.OwVersionSeries |
getVersionSeries() |
com.wewebu.ow.server.ecm.OwObjectReference |
getWorkitem(int iIndex_p) |
int |
getWorkitemCount() |
boolean |
hasChilds(int[] iObjectTypes_p,
int iContext_p) |
int |
hashCode() |
boolean |
hasVersionSeries() |
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 void |
loadProperties()
load all properties of the file.
|
void |
promote() |
void |
save(com.wewebu.ow.server.ecm.OwContentCollection content_p,
String strMimeType_p,
String strMimeParameter_p) |
void |
setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p) |
void |
setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
Object mode_p) |
add, canAdd, canDelete, canFilterChilds, canGetContent, canGetPermissions, canGetProperties, canLock, canMove, canRemoveReference, canSetContent, canSetPermissions, canSetProperties, delete, getChildCount, getChildren, getClassName, getClonedPermissions, getClonedProperties, getColumnInfoList, getContentCollection, getContentElement, getContentFilePath, getContentObject, getContentRepresentation, getContentStream, getContentTypes, getContentURL, getField, getFieldProviderName, getFieldProviderSource, getFieldProviderType, getFields, getFileObject, getID, getInstance, getLock, getLockUserID, getMIMEParameter, getMIMEType, getMyLock, getName, getNativeObject, getNetwork, getPageCount, getPageNumber, getParents, getPath, getPermissions, getProperties, getProperty, getResourceID, getSafeFieldValue, getSearchTemplate, getType, hasContent, isInputStreamNative, move, refreshProperties, refreshProperties, releaseResources, removeReference, setContentCollection, setField, setLock, setPermissionsprotected static final OwDummyFileObject.OwOperatorsSingleton m_operators
public static final String DMS_PREFIX
protected static final com.wewebu.ow.server.ecm.OwFileObject.OwFileObjectClass m_FileClassDescription
protected static final com.wewebu.ow.server.ecm.OwFileObject.OwFileObjectClass m_DirectoryClassDescription
protected static final com.wewebu.ow.server.ecm.OwFileObject.OwFileObjectClass m_RecordRootDirectoryClassDescription
public static com.wewebu.ow.server.ecm.OwObjectClass getStaticObjectClass()
OwObjectClass static descriptionpublic com.wewebu.ow.server.ecm.OwObjectClass getObjectClass()
getObjectClass in interface com.wewebu.ow.server.ecm.OwObjectgetObjectClass in class com.wewebu.ow.server.ecm.OwFileObjectpublic String getDMSID() throws Exception
getDMSID in interface com.wewebu.ow.server.ecm.OwObjectReferencegetDMSID in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic Collection getFilterProperties(Collection propertynames_p) throws Exception
getFilterProperties in interface com.wewebu.ow.server.ecm.OwObjectgetFilterProperties in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic static String getDMSID(String basedir_p, File file_p) throws Exception
basedir_p - base dir of the archive without ending backslashfile_p - File to create a DMSID forExceptionprotected void loadProperties()
throws Exception
loadProperties in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic com.wewebu.ow.server.ecm.OwObjectCollection getChilds(int[] iObjectTypes_p,
Collection propertyNames_p,
com.wewebu.ow.server.field.OwSort sort_p,
int iMaxSize_p,
int iVersionSelection_p,
com.wewebu.ow.server.field.OwSearchNode filterCriteria_p)
throws Exception
getChilds in interface com.wewebu.ow.server.ecm.OwObjectgetChilds in class com.wewebu.ow.server.ecm.OwFileObjectiObjectTypes_p - the requested object types (folder or document)propertyNames_p - properties to fetch from DMS system along with the children, can be null.sort_p - OwSort Sortcriteria list to sort return listiMaxSize_p - int maximum number of objects to retrieveiVersionSelection_p - int Selects the versions as defined in OwSearchTemplate.VERSION_SELECT_... or 0 to use default versionfilterCriteria_p - optional OwSearchNode to filter the children, can be null
NOTE: This parameter is an additional filter to the internal SearchTemplate used in the getSearchTemplate(...) function
The internal SearchTemplate used in the getSearchTemplate(...) is used for virtual folders, the FilterCriteria_p is used to refine the result of a nodeExceptionpublic boolean hasChilds(int[] iObjectTypes_p,
int iContext_p)
throws Exception
hasChilds in interface com.wewebu.ow.server.ecm.OwObjecthasChilds in class com.wewebu.ow.server.ecm.OwFileObjectExceptionprotected com.wewebu.ow.server.ecm.OwFileObject createFileObject(File file_p) throws Exception
createFileObject in class com.wewebu.ow.server.ecm.OwFileObjectfile_p - OwFileObjectExceptionpublic com.wewebu.ow.server.ecm.OwResource getResource()
throws Exception
getResource in interface com.wewebu.ow.server.ecm.OwObjectgetResource in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic com.wewebu.ow.server.ecm.OwVersion getVersion()
throws Exception
getVersion in interface com.wewebu.ow.server.ecm.OwObjectgetVersion in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic com.wewebu.ow.server.ecm.OwVersionSeries getVersionSeries()
throws Exception
getVersionSeries in interface com.wewebu.ow.server.ecm.OwObjectgetVersionSeries in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic boolean canChangeClass()
throws Exception
canChangeClass in interface com.wewebu.ow.server.ecm.OwObjectcanChangeClass in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic void changeClass(String strNewClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p) throws Exception
changeClass in interface com.wewebu.ow.server.ecm.OwObjectchangeClass in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic boolean hasVersionSeries()
throws Exception
hasVersionSeries in interface com.wewebu.ow.server.ecm.OwObjecthasVersionSeries in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic com.wewebu.ow.server.ecm.OwVersion getLatest()
throws Exception
getLatest in interface com.wewebu.ow.server.ecm.OwVersionSeriesExceptionpublic com.wewebu.ow.server.ecm.OwObject getObject(com.wewebu.ow.server.ecm.OwVersion version_p)
throws Exception
getObject in interface com.wewebu.ow.server.ecm.OwVersionSeriesExceptionpublic com.wewebu.ow.server.ecm.OwVersion getReleased()
throws Exception
getReleased in interface com.wewebu.ow.server.ecm.OwVersionSeriesExceptionpublic com.wewebu.ow.server.ecm.OwVersion getReservation()
throws Exception
getReservation in interface com.wewebu.ow.server.ecm.OwVersionSeriesExceptionpublic Collection getVersions(Collection properties_p, com.wewebu.ow.server.field.OwSort sort_p, int iMaxSize_p) throws Exception
getVersions in interface com.wewebu.ow.server.ecm.OwVersionSeriesExceptionpublic String getId()
getId in interface com.wewebu.ow.server.ecm.OwVersionSeriespublic boolean canCancelcheckout(int context_p)
throws Exception
canCancelcheckout in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canCheckin(int context_p)
throws Exception
canCheckin in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canCheckout(int context_p)
throws Exception
canCheckout in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canDemote(int context_p)
throws Exception
canDemote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canPromote(int context_p)
throws Exception
canPromote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean canSave(int context_p)
throws Exception
canSave in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void cancelcheckout()
throws Exception
cancelcheckout in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void checkin(boolean fPromote_p,
Object mode_p,
String strObjectClassName_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
com.wewebu.ow.server.ecm.OwContentCollection content_p,
boolean fOverwriteContent_p,
String strMimeType_p,
String strMimeParameter_p)
throws Exception
checkin in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void checkout(Object mode_p) throws Exception
checkout in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void demote()
throws Exception
demote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean equals(com.wewebu.ow.server.ecm.OwVersion version_p)
throws Exception
equals in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic String getVersionInfo() throws Exception
getVersionInfo in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic int[] getVersionNumber()
throws Exception
getVersionNumber in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean isCheckedOut(int context_p)
throws Exception
isCheckedOut 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 Exception
isMajor in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic boolean isReleased(int context_p)
throws Exception
isReleased in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void promote()
throws Exception
promote in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void save(com.wewebu.ow.server.ecm.OwContentCollection content_p,
String strMimeType_p,
String strMimeParameter_p)
throws Exception
save in interface com.wewebu.ow.server.ecm.OwVersionExceptionpublic void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
Object mode_p)
throws Exception
setProperties in interface com.wewebu.ow.server.ecm.OwObjectsetProperties in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p)
throws Exception
setProperties in interface com.wewebu.ow.server.ecm.OwObjectsetProperties in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic com.wewebu.ow.server.ecm.OwObjectReference getWorkitem(int iIndex_p)
throws Exception
getWorkitem in interface com.wewebu.ow.server.ecm.bpm.OwCaseObjectExceptionpublic int getWorkitemCount()
throws Exception
getWorkitemCount in interface com.wewebu.ow.server.ecm.bpm.OwCaseObjectExceptionpublic String getCheckedOutUserID(int context_p) throws Exception
getCheckedOutUserID in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.ecm.OwStatusContextException - if not implementedExceptionOwVersion.getCheckedOutUserID(int)public boolean isMyCheckedOut(int context_p)
throws Exception
isMyCheckedOut in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.ecm.OwStatusContextException - if not implementedExceptionOwVersion.isMyCheckedOut(int)public boolean exists()
exists in class com.wewebu.ow.server.ecm.OwFileObjectCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.