public abstract class AbstractTaskType extends java.lang.Object implements TaskType
Constructor and Description |
---|
AbstractTaskType(java.lang.String ownerId,
java.lang.String typeId,
java.lang.String bundleKey,
boolean canCancel,
boolean canSuspend) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCancel()
Returns whether or not the task can be canceled.
|
boolean |
canSuspend()
Returns whether or not the task supports suspending and resuming.
|
protected <T> T |
findProfileSettingsRecord(GatewayContext context,
PersistentRecord taskRecord)
Convenience function for looking up the task's type-specific settings.
|
java.lang.String |
getBaseBundleKey()
Returns a base Bundle key for this type.
|
LocalizedString |
getOwnerName()
Shortcut for baseBundleKey.Owner
|
LocalizedString |
getTypeName()
Shortcut for baseBundleKey.typeId.Name
|
java.lang.String |
ownerId()
Tasks are organized by owner, and can be displayed for selection based on owner.
|
java.lang.String |
typeId()
A name/id for the task type that identifies it relative to the owner.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildWizardModel, createInstance, fullId, getSettingsRecordForeignKey, getSettingsRecordType, isPrivate
public AbstractTaskType(java.lang.String ownerId, java.lang.String typeId, java.lang.String bundleKey, boolean canCancel, boolean canSuspend)
public java.lang.String ownerId()
TaskType
public java.lang.String typeId()
TaskType
public java.lang.String getBaseBundleKey()
TaskType
getBaseBundleKey
in interface TaskType
public LocalizedString getOwnerName()
TaskType
getOwnerName
in interface TaskType
public LocalizedString getTypeName()
TaskType
getTypeName
in interface TaskType
public boolean canCancel()
TaskType
public boolean canSuspend()
TaskType
canSuspend
in interface TaskType
protected <T> T findProfileSettingsRecord(GatewayContext context, PersistentRecord taskRecord)
T
- context
- taskRecord
-