public interface ITaskMechanics extends IBasicMechanics
Modifier and Type | Field and Description |
---|---|
static int |
UPDATE_RESULT_SUCCESS |
static int |
UPDATE_RESULT_TASK_MUTABLE |
static int |
UPDATE_RESULT_TASK_NOT_UP_TO_DATE |
PROP_CUSTOM_FILE_ENCODING, PROP_FILE_ENCODING, TITLEBAR_ACTION_SHOW_ADD_TO_HOME, TITLEBAR_ACTION_SHOW_DISPLAY_OPTIONS, TITLEBAR_ACTION_SHOW_MAXIMIZED, TITLEBAR_ACTION_SHOW_MINIMIZED, TITLEBAR_ACTION_SHOW_NORMAL
CONTENT_FORMAT_EMAIL, CONTENT_FORMAT_EMAIL_DIGEST, CONTENT_FORMAT_PORTAL_INBOX, CONTENT_FORMAT_PORTAL_INBOX_DIGEST, HEADER_FROM, HEADER_SUBJECT, HEADER_TO
COMMENTS_LINK_TYPE, CONTENT_LINK_TYPE, DEFAULT_ORDER, DEFAULT_PAGE_SIZE, DEFAULT_SORT, DETAILS_LINK_TYPE, LARGE_ICON_TYPE, LINK_TYPE, LINK_TYPE_COMMENTS, LINK_TYPE_CONTENT, LINK_TYPE_DETAILS, LINK_TYPE_EDIT, LINK_TYPE_HELP, LINK_TYPE_HELP_MAXIMIZED, LINK_TYPE_MAXIMIZED, LINK_TYPE_MINIMIZED, LINK_TYPE_PERMISSIONS, LINK_TYPE_PORTAL_CONTENT, LINK_TYPE_PORTLET_STANDALONE, LINK_TYPE_PROPERTIES, LINK_TYPE_RESTORED, LINK_TYPE_SUBSCRIPTIONS, LINK_TYPE_THUMBNAILS, LINK_TYPE_VERSIONS, PERMISSIONS_LINK_TYPE, PORTAL_CONTENT_LINK_TYPE, PROPERTIES_LINK_TYPE, PROPERTY_LINK_TARGET, PROPERTY_OWNER_NAME, PROPERTY_PARENT_NAME, PROPERTY_TOOLTIP, REFERENCE_ICON_TYPE, SUBSCRIPTIONS_LINK_TYPE, THUMBNAIL_ICON_TYPE, THUMBNAILS_LINK_TYPE, VERSIONS_LINK_TYPE
ACCESS_DENIED, ACCESS_GRANTED, ACCESS_RIGHT_ID, ACCESS_RIGHT_LONG_NAME, ACCESS_RIGHT_SHORT_NAME, ACCESS_RIGHTS_CONTAINER, ACCESS_UNSPECIFIED, AUTH_LEVEL_ANONYMOUS, AUTH_LEVEL_BASIC, AUTH_LEVEL_DEFAULT, AUTH_LEVEL_FULL_ACCESS, AUTH_LEVEL_KERBEROS, AUTH_LEVEL_NTLM, AUTH_LEVEL_PROPERTY
Modifier and Type | Method and Description |
---|---|
String |
canUpdateTask(IURI principalURI,
IURI taskURI,
Map<String,?> properties)
Obtains container ID where task comments should be stored.
|
void |
checkCreateCollaboration(IURI principalURI,
IURI taskDefinitionURI)
Throws PortalAccessException if principal may not create a collaboration tasks for the specified task type
|
void |
checkCreateTask(IURI principalURI,
IURI taskDefinitionURI)
Throws PortalAccessException if principal may not create a task of a given type
|
void |
checkRollbackTask(IURI principalURI,
IURI taskURI)
PortalAccessException is thrown if principal does not have rights to update task
|
void |
checkUpdateTask(IURI principalURI,
IURI taskURI,
Map<String,?> properties)
PortalAccessException is thrown if principal does not have rights to update task
|
void |
checkViewTask(IURI principalURI,
IURI taskURI)
PortalAccessException is thrown if principal does not have rights to view task info
|
void |
checkViewTaskAudit(IURI principalURI,
IURI taskURI)
PortalAccessException is thrown if principal does not have rights to view task audit
|
IURI |
createTask(IURI principalURI,
IURI taskDefinitionURI,
Map<String,?> properties) |
void |
fireCreateTaskEvent(IURI principalURI,
IURI taskURI,
int status)
Fires create new task event
|
default void |
fireTaskReindexStopEvent(ITaskDefinition taskDefinition)
Fires stop reindex task event
|
void |
fireTaskReindexStopEvent(ITaskDefinition taskDefinition,
String indexEngineType)
Fires stop reindex task event
|
default void |
fireTaskVotingStrategyUpdateStopEvent(ITaskDefinition taskDefinition)
Fires stop voting strategy update task event
|
void |
fireTaskVotingStrategyUpdateStopEvent(ITaskDefinition taskDefinition,
String indexEngineType)
Fires stop Voting Strategy Update task event
|
void |
fireUpdateTaskEvent(IURI principalURI,
IURI taskURI,
int status,
DifferenceMap diffMap)
Fires update task event
|
IThingID |
getAttachmentsContainerID(IThingID taskID)
Obtains container ID where task attachments should be stored.
|
IThingID |
getCommentsContainerID(IThingID taskID)
Obtains container ID where task comments should be stored.
|
ITask |
getTask(IURI taskURI)
Returns instance of the task
|
List<ITaskAuditEntry> |
getTaskAudit(IURI taskURI)
Returns list of
ITaskAuditEntry audit entries for the task |
List<ITaskAuditEntry> |
getTaskAudit(IURI taskURI,
int fromIndex,
int toIndex) |
Object |
getTaskData(IURI taskURI)
Returns instance of task data
|
IURI |
getTaskURIByCustomID(String externalID)
Returns task uri by task external (correlation) ID
|
boolean |
isTaskAssignedToPrincipal(IURI principalURI,
IURI taskURI,
boolean includeRoles,
boolean activeTasksOnly)
Checks if task is still in the user inbox
|
IURI |
isTaskDelegatedToPrincipal(IURI principalURI,
IURI taskURI)
Checks if the task is delegated to that principal
|
ITaskList |
listAllTasks(IURI principalURI)
Queries for all tasks
|
ITaskList |
listAllTasks(IURI principalURI,
TaskSearchQuery taskQuery)
Queries for all tasks.
|
int |
listAllTasksCount(IURI principalURI,
TaskSearchQueryV2 taskQuery,
boolean includeRoles,
boolean businessData)
Queries for tasks in the given user's inbox which match passed search query and return total number of tasks
|
List<ITaskSearchRecord> |
listAllTasksPaged(IURI principalURI,
TaskSearchQueryV2 taskQuery,
boolean includeRoles,
boolean businessData)
Queries for tasks in the given user's inbox which match passed search query
|
ITaskList |
listUserTasks(IURI principalURI)
Queries for tasks in the given user inbox
|
ITaskList |
listUserTasks(IURI principalURI,
TaskSearchQuery taskQuery,
boolean includeRoles)
Queries for tasks in the given user inbox.
|
int |
listUserTasksCount(IURI principalURI,
TaskSearchQueryV2 taskQuery,
boolean includeRoles,
boolean businessData)
Queries for tasks in the given user's inbox which match passed search query and return total number of tasks
|
List<ITaskSearchRecord> |
listUserTasksPaged(IURI principalURI,
TaskSearchQueryV2 taskQuery,
boolean includeRoles,
boolean businessData)
Queries for tasks in the given user's inbox which match passed search query
|
void |
processSinkRequest(String sourceID,
List<String> contents,
MimeMessage mimeMessage)
Processes request from external sink
|
void |
rollbackTask(IURI principalURI,
IURI taskURI,
int auditEntryID)
Reverts task state to the point indicated by auditEntryID
|
int |
updateTask(IURI principalURI,
IURI taskURI,
Map<String,?> properties,
int taskVersionNumber,
boolean lockTask)
Updates task
|
int |
updateTask(IURI principalURI,
IURI taskURI,
Map<String,?> properties,
int taskVersionNumber,
boolean lockTask,
boolean syncUpdate,
boolean hiddenUpdate)
Updates task
|
addNote, addReference, addRelation, canAddNote, canCloneRemote, canCreate, canDelete, canDestroy, canDoTitlebarAction, canListAccess, canListContainers, canListNotes, canRemoveAccess, canRemoveNote, canSetAccess, canSetAuthentication, canSetOwner, canUninstall, canUpdateContent, canUpdateProperties, canVerb, canViewAuthentication, canViewContent, checkAddNote, checkCloneRemote, checkCreate, checkDelete, checkDestroy, checkListAccess, checkListContainers, checkListNotes, checkRemoveAccess, checkRemoveNote, checkSetAccess, checkSetAuthentication, checkSetOwner, checkUninstall, checkUpdateContent, checkUpdateProperties, checkViewAuthentication, checkViewContent, cloneRemote, copy, create, create, delete, destroy, doAfterInstall, doAfterUpgrade, doBeforeUninstall, doBeforeUpgrade, fireAddNoteEvent, fireCacheInvalidateEvent, fireDeleteEvent, fireInsoEvent, fireListAccessEvent, fireListContainersEvent, fireListNotesEvent, firePurgeEvent, fireRemoveAcccesEvent, fireRemoveNoteEvent, fireSetAccessEvent, fireSetAuthenticationEvent, fireSetOwnerEvent, fireUpdateContentEvent, fireUpdatePropertiesEvent, fireViewAuthenticationEvent, fireViewContentEvent, getAccess, getAncestors, getAuthentication, getContent, getContent, getContentStore, getContentStore, getDependencyList, getPrimaryRelatedChild, getPrimaryRelatedContainer, getTimeToLive, isAnonymous, isBaseType, isContainer, isNormal, isReference, isVersionable, isWorkflowEnabled, listAccess, listAccess, listContainers, listContainers, listDependants, listNotes, listRelatedChildren, listRelatedContainers, move, move, prepareForDeletion, removeNote, removeReference, removeRelation, restoreXTypeConfProps, saveXTypeConfProps, setAuthentication, setOwner, setTimeToLive, undeleteAllUndestroyed, updateContent, updateContent, updateProperties, updateProperties
canCopyToClipboard, canCutToClipboard, checkCopyToClipboard, checkCutToClipboard, copyToClipboard, cutToClipboard, getClipboard, getClipboardInfo, newClipboardItem
canDeliverToPrincipal, canEditSubscription, canListSubscriptions, canViewSubscription, checkEditSubscription, checkListSubscriptions, checkViewSubscription, checkViewSubscription, createAppCriteria, createAppCriteriaFolder, createPortletSubscription, createPortletSubscription, disable, disable, disableBySystem, disableBySystem, enable, enable, fireGetAppCriteriaEvent, fireGetSubscriptionEvent, fireSetSubscriptionEvent, fireUnsubscribeEvent, fireViewSubscriptionEvent, generateNotificationContent, generateNotificationHeaders, getAppCriteria, getGroupSubscription, getSubscription, listSubscriptions, listSubscriptions, setGroupSubscription, setGroupSubscription, setSubscription, setSubscription, unsubscribe, unsubscribe, viewSubscription
canView, checkView, createPagingCookie, fireViewEvent, getCss, getCss, getDefaultLinkType, getFormattedProperty, getHierachicalUri, getIcon, getIcon, getLink, getLink, getListProperty, getListPropertyHTML, getListPropertyJS, isEnabled, view, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
canRemoveSecurityRealm, canSetSecurityRealm, checkAccess, checkAccessEx, checkRemoveSecurityRealm, checkSetSecurityRealm, cloneAces, fireRemoveAcccesEvent, fireRemoveSecurityRealmEvent, fireSetAccessEvent, fireSetAuthenticationEvent, fireSetOwnerEvent, fireSetSecurityRealmEvent, getAccessEx, getAccessList, getAccessListEx, getAclView, getAuthLevelForAuthScheme, getAuthScheme, getAuthSchemeForAuthLevel, getAuthSchemeForResource, getAvailableAuthSchemes, getDefaultAuthScheme, getRightNameForValue, getRightsForType, getRightValueForName, getSecurityRealm, invalidateAcesForThing, invalidateAcesForUser, listSecurityRealmObjects, removeAces, removeSecurityRealm, setAces, setAcesEx, setSecurityRealm, setSecurityRealm
static final int UPDATE_RESULT_SUCCESS
static final int UPDATE_RESULT_TASK_MUTABLE
static final int UPDATE_RESULT_TASK_NOT_UP_TO_DATE
void checkCreateTask(IURI principalURI, IURI taskDefinitionURI) throws PortalException, PortalAccessException
principalURI
- taskDefinitionURI
- PortalException
PortalAccessException
void checkCreateCollaboration(IURI principalURI, IURI taskDefinitionURI) throws PortalException, PortalAccessException
principalURI
- taskDefinitionURI
- PortalException
PortalAccessException
void checkUpdateTask(IURI principalURI, IURI taskURI, Map<String,?> properties) throws PortalException, PortalAccessException
principalURI
- taskURI
- PortalException
PortalAccessException
void checkViewTask(IURI principalURI, IURI taskURI) throws PortalException, PortalAccessException
principalURI
- taskURI
- PortalException
PortalAccessException
void checkViewTaskAudit(IURI principalURI, IURI taskURI) throws PortalException, PortalAccessException
principalURI
- taskURI
- PortalException
PortalAccessException
void checkRollbackTask(IURI principalURI, IURI taskURI) throws PortalException, PortalAccessException
principalURI
- taskURI
- PortalException
PortalAccessException
void fireCreateTaskEvent(IURI principalURI, IURI taskURI, int status) throws PortalException
principalURI
- taskURI
- status
- PortalException
void fireUpdateTaskEvent(IURI principalURI, IURI taskURI, int status, DifferenceMap diffMap) throws PortalException
principalURI
- taskURI
- status
- diffMap
- PortalException
default void fireTaskReindexStopEvent(ITaskDefinition taskDefinition) throws PortalException
taskDefinition
- PortalException
void fireTaskReindexStopEvent(ITaskDefinition taskDefinition, String indexEngineType) throws PortalException
taskDefinition
- indexEngineType
- PortalException
IURI createTask(IURI principalURI, IURI taskDefinitionURI, Map<String,?> properties) throws PortalException
principalURI
- taskDefinitionURI
- properties
- propeties of new taskPortalException
int updateTask(IURI principalURI, IURI taskURI, Map<String,?> properties, int taskVersionNumber, boolean lockTask) throws PortalException
principalURI
- taskURI
- properties
- taskVersionNumber
- optional task version number to check for stale tasklockTask
- whether task should be locked during update operationUPDATE_RESULT_SUCCESS
, UPDATE_RESULT_TASK_MUTABLE
, UPDATE_RESULT_TASK_NOT_UP_TO_DATE
PortalException
int updateTask(IURI principalURI, IURI taskURI, Map<String,?> properties, int taskVersionNumber, boolean lockTask, boolean syncUpdate, boolean hiddenUpdate) throws PortalException
principalURI
- taskURI
- properties
- taskVersionNumber
- optional task version number to check for stale tasklockTask
- whether task should be locked during update operationUPDATE_RESULT_SUCCESS
, UPDATE_RESULT_TASK_MUTABLE
, UPDATE_RESULT_TASK_NOT_UP_TO_DATE
PortalException
void rollbackTask(IURI principalURI, IURI taskURI, int auditEntryID) throws PortalException
principalURI
- taskURI
- auditEntryID
- PortalException
IURI getTaskURIByCustomID(String externalID) throws PortalException
externalID
- PortalException
ITask getTask(IURI taskURI) throws PortalException
taskURI
- PortalException
Object getTaskData(IURI taskURI) throws PortalException
taskURI
- PortalException
List<ITaskAuditEntry> getTaskAudit(IURI taskURI) throws PortalException
ITaskAuditEntry
audit entries for the tasktaskURI
- PortalException
List<ITaskAuditEntry> getTaskAudit(IURI taskURI, int fromIndex, int toIndex) throws PortalException
taskURI
- fromIndex
- toIndex
- PortalException
boolean isTaskAssignedToPrincipal(IURI principalURI, IURI taskURI, boolean includeRoles, boolean activeTasksOnly) throws PortalException, com.webmethods.caf.rules.RuleException
principalURI
- taskURI
- includeRoles
- TODOactiveTasksOnly
- TODOPortalException
com.webmethods.caf.rules.RuleException
IURI isTaskDelegatedToPrincipal(IURI principalURI, IURI taskURI) throws PortalException
principalURI
- taskURI
- PortalException
ITaskList listAllTasks(IURI principalURI, TaskSearchQuery taskQuery) throws PortalException
principalURI
- cookie
- rights
- access rights to checkPortalException
ITaskList listAllTasks(IURI principalURI) throws PortalException
principalURI
- rights
- access rights to checkPortalException
ITaskList listUserTasks(IURI principalURI, TaskSearchQuery taskQuery, boolean includeRoles) throws PortalException, com.webmethods.caf.rules.RuleException
principalURI
- includeRoles
- TODOcookie
- rights
- access to checkPortalException
com.webmethods.caf.rules.RuleException
List<ITaskSearchRecord> listUserTasksPaged(IURI principalURI, TaskSearchQueryV2 taskQuery, boolean includeRoles, boolean businessData) throws PortalException
PortalException
int listUserTasksCount(IURI principalURI, TaskSearchQueryV2 taskQuery, boolean includeRoles, boolean businessData) throws PortalException
PortalException
List<ITaskSearchRecord> listAllTasksPaged(IURI principalURI, TaskSearchQueryV2 taskQuery, boolean includeRoles, boolean businessData) throws PortalException
PortalException
int listAllTasksCount(IURI principalURI, TaskSearchQueryV2 taskQuery, boolean includeRoles, boolean businessData) throws PortalException
PortalException
ITaskList listUserTasks(IURI principalURI) throws PortalException, com.webmethods.caf.rules.RuleException
principalURI
- rights
- access rights to checkPortalException
com.webmethods.caf.rules.RuleException
void processSinkRequest(String sourceID, List<String> contents, MimeMessage mimeMessage) throws PortalException
sourceID
- identifier of the source of the request. Generally this is some string which helps to
identify the source of the request. For example for email sink this could be messageID or From: email addresscontents
- request content. May be multipartPortalException
IThingID getAttachmentsContainerID(IThingID taskID) throws PortalException
taskID
- PortalException
IThingID getCommentsContainerID(IThingID taskID) throws PortalException
taskID
- PortalException
String canUpdateTask(IURI principalURI, IURI taskURI, Map<String,?> properties) throws PortalException
taskID
- PortalException
default void fireTaskVotingStrategyUpdateStopEvent(ITaskDefinition taskDefinition) throws PortalException
taskDefinition
- PortalException
void fireTaskVotingStrategyUpdateStopEvent(ITaskDefinition taskDefinition, String indexEngineType) throws PortalException
taskDefinition
- indexEngineType
- PortalException