|
||||||||||
| 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.OwDummyWorkitemContainer
public class OwDummyWorkitemContainer
Implementation for the dummy BPM Repository.
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 |
|---|
| 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 | |
|---|---|
protected OwDummyWorkitemRepository |
m_repository
|
| Fields inherited from class com.wewebu.ow.server.ecm.OwFileObject |
|---|
m_DirectoryClassDescription, m_eventmanager, m_File, m_FileClassDescription, m_locale, m_PropertyMap |
| Fields inherited from interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer |
|---|
FILTER_TYPE_NONE, FILTER_TYPE_NORMAL, FILTER_TYPE_RESUBMISSION, GROUPBOX_PROPERTY_NAME |
| 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 | |
|---|---|
OwDummyWorkitemContainer(OwDummyWorkitemRepository repository_p,
File file_p,
String sMimeType_p,
int iType_p)
construct a dummy work item container |
|
| Method Summary | |
|---|---|
boolean |
canPull(int iContext_p)
check if container supports work item pull, see pull |
boolean |
canResubmit()
|
protected com.wewebu.ow.server.ecm.OwFileObject |
createFileObject(File file_p)
overridable factory method |
int |
getChildCount(int[] iObjectTypes_p,
int iContext_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)
|
Collection |
getDefaultUsers()
get a collection of users that should be offered to the users for reassignment. The dummy implementation returns a hard-coded list of users. |
Collection |
getFilterProperties(Collection propertynames_p)
|
int |
getFilterType()
get a filter to filter specific items in getChilds in addition to the getChilds OwSearchNode parameter |
String |
getMIMEType()
|
String |
getPublicReassignContainerDisplayName(String sName_p)
|
Collection |
getPublicReassignContainerNames()
|
com.wewebu.ow.server.field.OwSearchTemplate |
getSearchTemplate()
|
int |
getType()
|
com.wewebu.ow.server.ecm.bpm.OwWorkitem |
pull(com.wewebu.ow.server.field.OwSort sort_p,
Set exclude_p)
pulls the next available work item out of the container and locks it for the user |
void |
setFilterType(int iFilterType_p)
set a filter to filter specific items in getChilds in addition to the getChilds OwSearchNode parameter |
| Methods inherited from class com.wewebu.ow.server.ecm.OwFileObject |
|---|
add, canAdd, canChangeClass, canDelete, canFilterChilds, canGetContent, canGetPermissions, canGetProperties, canLock, canMove, canRemoveReference, canSetContent, canSetPermissions, canSetProperties, changeClass, delete, exists, getClassName, getClonedPermissions, getClonedProperties, getColumnInfoList, getContentCollection, getContentElement, getContentFilePath, getContentObject, getContentRepresentation, getContentStream, getContentTypes, getContentURL, getDMSID, getField, getFieldProviderName, getFieldProviderSource, getFieldProviderType, getFields, getFileObject, getID, getInstance, getLock, getLockUserID, getMIMEParameter, getMyLock, getName, getNativeObject, getNetwork, getObjectClass, getPageCount, getPageNumber, getParents, getPath, getPermissions, getProperties, getProperty, getResource, getResourceID, getSafeFieldValue, getVersion, getVersionSeries, hasChilds, hasContent, hasVersionSeries, isInputStreamNative, loadProperties, move, refreshProperties, refreshProperties, releaseResources, removeReference, setContentCollection, setField, setLock, setPermissions, setProperties, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.wewebu.ow.server.ecm.OwObject |
|---|
add, canAdd, canChangeClass, canDelete, canFilterChilds, canGetContent, canGetPermissions, canGetProperties, canLock, canMove, canRemoveReference, canSetContent, canSetPermissions, canSetProperties, changeClass, delete, getClassName, getClonedPermissions, getClonedProperties, getColumnInfoList, getContentCollection, getLock, getLockUserID, getMyLock, getNativeObject, getObjectClass, getParents, getPath, getPermissions, getProperties, getProperty, getResource, getVersion, getVersionSeries, hasChilds, hasVersionSeries, move, refreshProperties, refreshProperties, removeReference, setContentCollection, setLock, setPermissions, setProperties, setProperties |
| Methods inherited from interface com.wewebu.ow.server.ecm.OwObjectReference |
|---|
getDMSID, getID, getInstance, getMIMEParameter, getName, getPageCount, getResourceID, hasContent |
| Methods inherited from interface com.wewebu.ow.server.field.OwFieldProvider |
|---|
getField, getFieldProviderName, getFieldProviderSource, getFieldProviderType, getFields, getSafeFieldValue, setField |
| Field Detail |
|---|
protected OwDummyWorkitemRepository m_repository
| Constructor Detail |
|---|
public OwDummyWorkitemContainer(OwDummyWorkitemRepository repository_p,
File file_p,
String sMimeType_p,
int iType_p)
throws Exception
repository_p - file_p - sMimeType_p - iType_p -
Exception| Method Detail |
|---|
public boolean canResubmit()
throws Exception
canResubmit in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainerException
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 com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate()
throws Exception
getSearchTemplate in interface com.wewebu.ow.server.ecm.OwObjectgetSearchTemplate in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic void setFilterType(int iFilterType_p)
setFilterType in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContaineriFilterType_p - int as defined in FILTER_TYPE_...public int getFilterType()
getFilterType in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
public String getMIMEType()
throws Exception
getMIMEType in interface com.wewebu.ow.server.ecm.OwContentElementgetMIMEType in interface com.wewebu.ow.server.ecm.OwObjectReferencegetMIMEType in class com.wewebu.ow.server.ecm.OwFileObjectExceptionpublic int getType()
getType in interface com.wewebu.ow.server.ecm.OwObjectReferencegetType in class com.wewebu.ow.server.ecm.OwFileObjectpublic String getPublicReassignContainerDisplayName(String sName_p)
getPublicReassignContainerDisplayName in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
public Collection getPublicReassignContainerNames()
throws Exception
getPublicReassignContainerNames in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainerException
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.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.OwFileObjectException
public int getChildCount(int[] iObjectTypes_p,
int iContext_p)
throws Exception
getChildCount in interface com.wewebu.ow.server.ecm.OwObjectgetChildCount in class com.wewebu.ow.server.ecm.OwFileObjectException
public boolean canPull(int iContext_p)
throws Exception,
com.wewebu.ow.server.ecm.OwStatusContextException
canPull in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContaineriContext_p - as defined by OwStatusContextDefinitions
Exception
com.wewebu.ow.server.ecm.OwStatusContextException
public com.wewebu.ow.server.ecm.bpm.OwWorkitem pull(com.wewebu.ow.server.field.OwSort sort_p,
Set exclude_p)
throws Exception,
com.wewebu.ow.server.exceptions.OwObjectNotFoundException,
com.wewebu.ow.server.exceptions.OwServerException
pull in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainersort_p - OwSort optional sorts the items and takes the first available one, can be nullexclude_p - Set of work item DMSIDs to be excluded, i.e. that may have already been pulled by the user
Exception - for general error, or OwServerException if timed out or OwObjectNotFoundException if no work item is available
com.wewebu.ow.server.exceptions.OwObjectNotFoundException
com.wewebu.ow.server.exceptions.OwServerExceptionpublic Collection getDefaultUsers()
getDefaultUsers in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||