public class OwDummyWorkitemContainer
extends com.wewebu.ow.server.ecm.OwFileObject
implements com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
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
Modifier and Type | Field and Description |
---|---|
protected OwDummyWorkitemRepository |
m_repository |
m_DirectoryClassDescription, m_eventmanager, m_File, m_FileClassDescription, m_locale, m_PropertyMap
FILTER_TYPE_NONE, FILTER_TYPE_NORMAL, FILTER_TYPE_RESUBMISSION, GROUPBOX_PROPERTY_NAME
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
TYPE_AJAX, TYPE_CHECKIN_OBJECT, TYPE_CREATE_OBJECT, TYPE_META_OBJECT, TYPE_RESULT_LIST, TYPE_SEARCH, TYPE_SMALL
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 and Description |
---|
OwDummyWorkitemContainer(OwDummyWorkitemRepository repository_p,
File file_p,
String sMimeType_p,
int iType_p)
construct a dummy work item container
|
Modifier and Type | Method and Description |
---|---|
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
|
add, canAdd, canChangeClass, canDelete, canFilterChilds, canGetContent, canGetPermissions, canGetProperties, canLock, canMove, canRemoveReference, canSetContent, canSetPermissions, canSetProperties, changeClass, delete, exists, getChildren, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected OwDummyWorkitemRepository m_repository
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
public boolean canResubmit() throws Exception
canResubmit
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
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 com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate() throws Exception
getSearchTemplate
in interface com.wewebu.ow.server.ecm.OwObject
getSearchTemplate
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public void setFilterType(int iFilterType_p)
setFilterType
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
iFilterType_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.OwContentElement
getMIMEType
in interface com.wewebu.ow.server.ecm.OwObjectReference
getMIMEType
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public int getType()
getType
in interface com.wewebu.ow.server.ecm.OwObjectReference
getType
in class com.wewebu.ow.server.ecm.OwFileObject
public 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.OwWorkitemContainer
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.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
Exception
public int getChildCount(int[] iObjectTypes_p, int iContext_p) throws Exception
getChildCount
in interface com.wewebu.ow.server.ecm.OwObject
getChildCount
in class com.wewebu.ow.server.ecm.OwFileObject
Exception
public boolean canPull(int iContext_p) throws Exception, com.wewebu.ow.server.ecm.OwStatusContextException
canPull
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
iContext_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.OwWorkitemContainer
sort_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 userException
- for general error, or OwServerException if timed out or OwObjectNotFoundException if no work item is availablecom.wewebu.ow.server.exceptions.OwObjectNotFoundException
com.wewebu.ow.server.exceptions.OwServerException
public Collection getDefaultUsers()
getDefaultUsers
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitemContainer
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.