GNDMS 0.6.0
RESTful verison of GNDMS
|
Public Types | |
enum | TaskRelationships { OFFER_TYPE_REL, PARENT_REL } |
Public Member Functions | |
Task (@NotNull ReprSession session,@NotNull String typeNick,@NotNull Node underlying) | |
void | onCreate (ReprSession reprSession) |
final String | getId () |
final void | setId (@NotNull String id) |
String | getResourceId () |
void | setResourceId (String id) |
String | getWID () |
void | setWID (@NotNull String wid) |
String | getDescription () |
void | setDescription (@NotNull String description) |
TaskFlowType | getTaskFlowType () |
void | setTaskFlowType (@Nullable TaskFlowType taskFlowType) |
DateTime | getTerminationTime () |
void | setTerminationTime (@Nullable DateTime terminationTime) |
TaskState | getTaskState () |
void | setTaskState (@NotNull TaskState newTaskState) |
TaskState | getAltTaskState () |
void | setAltTaskState (@Nullable TaskState newAltTaskState) |
int | getMaxProgress () |
void | setMaxProgress (int maxProgress) |
int | getProgress () |
void | setProgress (int progress) |
Task | getRootTask () |
final boolean | hasParent () |
Task | getParent () |
void | setParent (@Nullable Task parent) |
boolean | isRootTask () |
final boolean | isSubTask () |
boolean | isBelowTask (@NotNull Task task) |
Iterable< Task > | getSubTasks () |
Iterable< Task > | getSubTasks (final TaskFlowType ot) |
Task | createSubTask () |
Serializable | getOrder () |
void | setORQ (Serializable orq) |
PersistentContract | getContract () |
void | setContract (@NotNull PersistentContract contract) |
boolean | isBroken () |
void | setBroken (boolean brokenState) |
PermissionInfo | getPermissionInfo () |
void | setPermissionInfo (@NotNull PermissionInfo permInfo) |
byte[] | getSerializedCredential () |
void | setSerializedCredential (@NotNull byte[] serializedCredential) |
Serializable | getPayload () |
void | setPayload (final @Nullable Serializable payload) |
LinkedList< Exception > | getCause () |
void | setCause (final @Nullable LinkedList< Exception > cause) |
LinkedList< Exception > | addCause (final @NotNull Exception exception) |
boolean | isDone () |
void | setDone (boolean doneState) |
String | getFaultString () |
void | setFaultString (@Nullable String faultString) |
void | delete () |
Taskling | getTaskling () |
TaskAccessor | getSnapshot () |
Static Public Member Functions | |
static void | fullDelete (Task task, Session session) |
Deletes a task and all of his sub tasks. | |
Static Public Attributes | |
static final String | RESOURCE_ID_P = "RESOURCE_ID_P" |
static final String | WID_P = "WID_P" |
static final String | DESCRIPTION_P = "DESCRIPTION_P" |
static final String | TERMINATION_TIME_P = "TERMINATION_TIME_P" |
static final String | TASK_STATE_P = "TASK_STATE_P" |
static final String | ALT_TASK_STATE_P = "ALT_TASK_STATE_P" |
static final String | MAX_PROGRESS_P = "MAX_PROGRESS_P" |
static final String | PROGRESS_P = "PROGRESS_P" |
static final String | ORQ_P = "ORQ_P" |
static final String | CONTRACT_P = "CONTRACT_P" |
static final String | PERMISSION_INFO_P = "PERMISSION_INFO_P" |
static final String | SERIALIZED_CREDENTIAL_P = "SERIALIZED_CREDENTIAL_P" |
static final String | PAYLOAD_P = "PAYLOAD_P" |
static final String | CAUSE_P = "CAUSE_P" |
static final String | DONE_P = "DONE_P" |
static final String | BROKEN_P = "BROKEN_P" |
static final String | FAULT_STRING_P = "FAULT_STRING_P" |
static final String | TASK_STATE_IDX = "taskStateIdx" |
static final String | TERMINATION_TIME_IDX = "terminationTimeIdx" |
static final String | RESOURCE_ID_IDX = "resourceIdIdx" |
Static Private Member Functions | |
static void | collectTasks (List< Task > subtasks, Task task, Session session) |
Task.
User: stepn Date: 05.09.2008 Time: 14:48:36
Deletes a task and all of his sub tasks.
task | |
session |
{ ArrayList<Task> subtasks = new ArrayList<Task>( 10 ); collectTasks( subtasks, task, session ); for ( Task subtask : subtasks ) subtask.delete( session ); task.delete( session ); }