|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ecm.OwFileObject
com.wewebu.ow.server.ecmimpl.owdummy.OwDummyFileObject
public class OwDummyFileObject
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
| Nested Class Summary | |
|---|---|
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. |
| Nested classes/interfaces inherited from class com.wewebu.ow.server.ecm.OwFileObject |
|---|
com.wewebu.ow.server.ecm.OwFileObject.OwFileObjectClass, com.wewebu.ow.server.ecm.OwFileObject.OwFilePropertyClass, com.wewebu.ow.server.ecm.OwFileObject.OwObjectFileFilter |
| Field Summary | |
|---|---|
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 |
| Fields inherited from class com.wewebu.ow.server.ecm.OwFileObject |
|---|
m_eventmanager, m_File, m_locale, m_PropertyMap |
| Fields inherited from interface com.wewebu.ow.server.ecm.OwObject |
|---|
STANDARD_PATH_DELIMITER |
| Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectReference |
|---|
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 |
| Fields inherited from interface com.wewebu.ow.server.field.OwFieldProvider |
|---|
TYPE_AJAX, TYPE_CHECKIN_OBJECT, TYPE_CREATE_OBJECT, TYPE_META_OBJECT, TYPE_RESULT_LIST, TYPE_SEARCH, TYPE_SMALL |
| Fields inherited from interface com.wewebu.ow.server.ecm.OwContentCollection |
|---|
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 |
| Constructor Summary | |
|---|---|
OwDummyFileObject(com.wewebu.ow.server.ecm.OwNetwork network_p,
File file_p)
construct File Object |
|
| Method Summary | |
|---|---|
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)
|
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)
|
| Methods inherited from class com.wewebu.ow.server.ecm.OwFileObject |
|---|
add, canAdd, canDelete, canFilterChilds, canGetContent, canGetPermissions, canGetProperties, canLock, canMove, canRemoveReference, canSetContent, canSetPermissions, canSetProperties, delete, exists, getChildCount, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public OwDummyFileObject(com.wewebu.ow.server.ecm.OwNetwork network_p,
File file_p)
throws Exception
network_p - reference to the network adaptorfile_p - reference to the file, the object is working on.
Exception| Method Detail |
|---|
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.OwFileObject
public String getDMSID()
throws Exception
getDMSID in interface com.wewebu.ow.server.ecm.OwObjectReferencegetDMSID in class com.wewebu.ow.server.ecm.OwFileObjectException
public Collection getFilterProperties(Collection propertynames_p)
throws Exception
getFilterProperties in interface com.wewebu.ow.server.ecm.OwObjectgetFilterProperties in class com.wewebu.ow.server.ecm.OwFileObjectException
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 for
Exception
protected void loadProperties()
throws Exception
loadProperties in class com.wewebu.ow.server.ecm.OwFileObjectException
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.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 node
Exception
public 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.OwFileObjectException
protected com.wewebu.ow.server.ecm.OwFileObject createFileObject(File file_p)
throws Exception
createFileObject in class com.wewebu.ow.server.ecm.OwFileObjectfile_p -
OwFileObject
Exception
public 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.OwFileObjectException
public 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.OwFileObjectException
public 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.OwFileObjectException
public boolean canChangeClass()
throws Exception
canChangeClass in interface com.wewebu.ow.server.ecm.OwObjectcanChangeClass in class com.wewebu.ow.server.ecm.OwFileObjectException
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.OwObjectchangeClass in class com.wewebu.ow.server.ecm.OwFileObjectException
public boolean hasVersionSeries()
throws Exception
hasVersionSeries in interface com.wewebu.ow.server.ecm.OwObjecthasVersionSeries in class com.wewebu.ow.server.ecm.OwFileObjectException
public com.wewebu.ow.server.ecm.OwVersion getLatest()
throws Exception
getLatest in interface com.wewebu.ow.server.ecm.OwVersionSeriesException
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.OwVersionSeriesException
public com.wewebu.ow.server.ecm.OwVersion getReleased()
throws Exception
getReleased in interface com.wewebu.ow.server.ecm.OwVersionSeriesException
public com.wewebu.ow.server.ecm.OwVersion getReservation()
throws Exception
getReservation in interface com.wewebu.ow.server.ecm.OwVersionSeriesException
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.OwVersionSeriesExceptionpublic 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.OwVersionException
public boolean canCheckin(int context_p)
throws Exception
canCheckin in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean canCheckout(int context_p)
throws Exception
canCheckout in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean canDemote(int context_p)
throws Exception
canDemote in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean canPromote(int context_p)
throws Exception
canPromote in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean canSave(int context_p)
throws Exception
canSave in interface com.wewebu.ow.server.ecm.OwVersionException
public void cancelcheckout()
throws Exception
cancelcheckout in interface com.wewebu.ow.server.ecm.OwVersionException
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.OwVersionException
public void checkout(Object mode_p)
throws Exception
checkout in interface com.wewebu.ow.server.ecm.OwVersionException
public void demote()
throws Exception
demote in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean equals(com.wewebu.ow.server.ecm.OwVersion version_p)
throws Exception
equals in interface com.wewebu.ow.server.ecm.OwVersionException
public String getVersionInfo()
throws Exception
getVersionInfo in interface com.wewebu.ow.server.ecm.OwVersionException
public int[] getVersionNumber()
throws Exception
getVersionNumber in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean isCheckedOut(int context_p)
throws Exception
isCheckedOut in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean isLatest(int context_p)
throws Exception
isLatest in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean isMajor(int context_p)
throws Exception
isMajor in interface com.wewebu.ow.server.ecm.OwVersionException
public boolean isReleased(int context_p)
throws Exception
isReleased in interface com.wewebu.ow.server.ecm.OwVersionException
public void promote()
throws Exception
promote in interface com.wewebu.ow.server.ecm.OwVersionException
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.OwVersionException
public 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.OwFileObjectException
public 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.OwFileObjectException
public com.wewebu.ow.server.ecm.OwObjectReference getWorkitem(int iIndex_p)
throws Exception
getWorkitem in interface com.wewebu.ow.server.ecm.bpm.OwCaseObjectException
public int getWorkitemCount()
throws Exception
getWorkitemCount in interface com.wewebu.ow.server.ecm.bpm.OwCaseObjectException
public String getCheckedOutUserID(int context_p)
throws Exception
getCheckedOutUserID in interface com.wewebu.ow.server.ecm.OwVersioncom.wewebu.ow.server.ecm.OwStatusContextException - if not implemented
ExceptionOwVersion.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 implemented
ExceptionOwVersion.isMyCheckedOut(int)public int hashCode()
hashCode in class Objectpublic boolean equals(Object o_p)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||