Modifier and Type | Method and Description |
---|---|
<T extends ScheduleTask> |
createTask(Class<T> type)
Create and set a task of the provided type.
|
boolean |
delete()
To delete this template it has to be locked
|
long |
getId()
-1 for unsaved new task templates
|
Project |
getProject()
the project for
project specific task templates |
ScheduleTask |
getTask()
The task instance.
|
int |
getUsageCount()
Returns the number of usages of this template.
|
List<ScheduleEntry> |
getUsages()
a list of schedule entries which contains task that use this template
|
boolean |
isChanged()
true if this template has been changed, false otherwise |
boolean |
isProjectTaskTemplate()
true |
boolean |
isPublic()
returns
true if this template is visible for other projects, false if this template is only available for local usagenote: only server schedule task templates can be public |
void |
setProject(Project project) |
void |
setPublic(boolean value) |
long getId()
boolean isProjectTaskTemplate()
true for project specific task templates
getProject()
@Nullable Project getProject()
project specific
task templatesvoid setProject(@Nullable Project project)
project
- null
for a project independent schedule task templateboolean isChanged()
true
if this template has been changed, false
otherwiseboolean isPublic()
true
if this template is visible for other projects, false
if this template is only available for local usagetrue
if this template is visible for other projects, false
if this template is only available for local usagevoid setPublic(boolean value)
value
- true
if this template should be visible for other projects, false
if this template should be only available for local usage@Nullable ScheduleTask getTask()
null
until createTask(Class)
has been called.null
if no task instance has been created.createTask(Class)
<T extends ScheduleTask> T createTask(Class<T> type)
type
- Task type.boolean delete()
true
if template could be deleted, false
otherwise@NotNull List<ScheduleEntry> getUsages()
int getUsageCount()
getUsages()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500