public interface TaskType
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
buildWizardModel(org.apache.wicket.extensions.wizard.WizardModel model,
org.apache.wicket.model.IModel<? extends java.util.List<? extends PersistentRecord>> dataModel)
Returns a new wizard that can be used to configure the task settings.
|
boolean |
canCancel()
Returns whether or not the task can be canceled.
|
boolean |
canSuspend()
Returns whether or not the task supports suspending and resuming.
|
Task |
createInstance(GatewayContext context,
GatewayTaskRecord gatewayRecord) |
default java.lang.String |
fullId()
Returns a combo of the ownerId and typeId that uniquely identifies this task type.
|
java.lang.String |
getBaseBundleKey()
Returns a base Bundle key for this type.
|
LocalizedString |
getOwnerName()
Shortcut for baseBundleKey.Owner
|
ReferenceField<GatewayTaskRecord> |
getSettingsRecordForeignKey()
If a settings record type is defined, return the foreign key field that references the main record type
|
RecordMeta<? extends PersistentRecord> |
getSettingsRecordType()
Returns the record meta of the settings record for this type of task.
|
LocalizedString |
getTypeName()
Shortcut for baseBundleKey.typeId.Name
|
boolean |
isPrivate()
A private task type is one that cannot be created from the general task management system.
|
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.
|
java.lang.String ownerId()
java.lang.String typeId()
default java.lang.String fullId()
boolean isPrivate()
java.lang.String getBaseBundleKey()
LocalizedString getTypeName()
LocalizedString getOwnerName()
boolean canCancel()
boolean canSuspend()
Task createInstance(GatewayContext context, GatewayTaskRecord gatewayRecord)
void buildWizardModel(org.apache.wicket.extensions.wizard.WizardModel model, org.apache.wicket.model.IModel<? extends java.util.List<? extends PersistentRecord>> dataModel)
RecordMeta<? extends PersistentRecord> getSettingsRecordType()
ReferenceField<GatewayTaskRecord> getSettingsRecordForeignKey()