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_PropertyMap
CONTENT_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_START
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 |
---|
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, setPermissions
protected 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.OwObject
getObjectClass
in class com.wewebu.ow.server.ecm.OwFileObject
public String getDMSID() throws Exception
getDMSID
in interface com.wewebu.ow.server.ecm.OwObjectReference
getDMSID
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public Collection getFilterProperties(Collection propertynames_p) throws Exception
getFilterProperties
in interface com.wewebu.ow.server.ecm.OwObject
getFilterProperties
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public 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 forException
protected void loadProperties() throws Exception
loadProperties
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public 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.OwObject
getChilds
in class com.wewebu.ow.server.ecm.OwFileObject
iObjectTypes_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 nodeException
public boolean hasChilds(int[] iObjectTypes_p, int iContext_p) throws Exception
hasChilds
in interface com.wewebu.ow.server.ecm.OwObject
hasChilds
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
protected com.wewebu.ow.server.ecm.OwFileObject createFileObject(File file_p) throws Exception
createFileObject
in class com.wewebu.ow.server.ecm.OwFileObject
file_p
- OwFileObject
Exception
public com.wewebu.ow.server.ecm.OwResource getResource() throws Exception
getResource
in interface com.wewebu.ow.server.ecm.OwObject
getResource
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public com.wewebu.ow.server.ecm.OwVersion getVersion() throws Exception
getVersion
in interface com.wewebu.ow.server.ecm.OwObject
getVersion
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public com.wewebu.ow.server.ecm.OwVersionSeries getVersionSeries() throws Exception
getVersionSeries
in interface com.wewebu.ow.server.ecm.OwObject
getVersionSeries
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public boolean canChangeClass() throws Exception
canChangeClass
in interface com.wewebu.ow.server.ecm.OwObject
canChangeClass
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public 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.OwObject
changeClass
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public boolean hasVersionSeries() throws Exception
hasVersionSeries
in interface com.wewebu.ow.server.ecm.OwObject
hasVersionSeries
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public com.wewebu.ow.server.ecm.OwVersion getLatest() throws Exception
getLatest
in interface com.wewebu.ow.server.ecm.OwVersionSeries
Exception
public 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.OwVersionSeries
Exception
public com.wewebu.ow.server.ecm.OwVersion getReleased() throws Exception
getReleased
in interface com.wewebu.ow.server.ecm.OwVersionSeries
Exception
public com.wewebu.ow.server.ecm.OwVersion getReservation() throws Exception
getReservation
in interface com.wewebu.ow.server.ecm.OwVersionSeries
Exception
public 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.OwVersionSeries
Exception
public String getId()
getId
in interface com.wewebu.ow.server.ecm.OwVersionSeries
public boolean canCancelcheckout(int context_p) throws Exception
canCancelcheckout
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 boolean canCheckout(int context_p) throws Exception
canCheckout
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 boolean canPromote(int context_p) throws Exception
canPromote
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public boolean canSave(int context_p) throws Exception
canSave
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public void cancelcheckout() throws Exception
cancelcheckout
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public 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.OwVersion
Exception
public void checkout(Object mode_p) throws Exception
checkout
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 equals(com.wewebu.ow.server.ecm.OwVersion version_p) throws Exception
equals
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public String getVersionInfo() throws Exception
getVersionInfo
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public int[] getVersionNumber() throws Exception
getVersionNumber
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public boolean isCheckedOut(int context_p) throws Exception
isCheckedOut
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 Exception
isMajor
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public boolean isReleased(int context_p) throws Exception
isReleased
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public void promote() throws Exception
promote
in interface com.wewebu.ow.server.ecm.OwVersion
Exception
public 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.OwVersion
Exception
public void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, Object mode_p) throws Exception
setProperties
in interface com.wewebu.ow.server.ecm.OwObject
setProperties
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p) throws Exception
setProperties
in interface com.wewebu.ow.server.ecm.OwObject
setProperties
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public com.wewebu.ow.server.ecm.OwObjectReference getWorkitem(int iIndex_p) throws Exception
getWorkitem
in interface com.wewebu.ow.server.ecm.bpm.OwCaseObject
Exception
public int getWorkitemCount() throws Exception
getWorkitemCount
in interface com.wewebu.ow.server.ecm.bpm.OwCaseObject
Exception
public String getCheckedOutUserID(int context_p) throws Exception
getCheckedOutUserID
in interface com.wewebu.ow.server.ecm.OwVersion
com.wewebu.ow.server.ecm.OwStatusContextException
- if not implementedException
OwVersion.getCheckedOutUserID(int)
public boolean isMyCheckedOut(int context_p) throws Exception
isMyCheckedOut
in interface com.wewebu.ow.server.ecm.OwVersion
com.wewebu.ow.server.ecm.OwStatusContextException
- if not implementedException
OwVersion.isMyCheckedOut(int)
public boolean exists()
exists
in class com.wewebu.ow.server.ecm.OwFileObject
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.