Package | Description |
---|---|
com.communote.server.api.core.task | |
com.communote.server.model.task | |
com.communote.server.persistence.tasks |
Constructor and Description |
---|
TaskTO(Task task,
boolean skipHandlerCreation)
Creates this TaskTO out of the given Task entity.
|
Modifier and Type | Class and Description |
---|---|
class |
TaskImpl |
Modifier and Type | Method and Description |
---|---|
Task |
TaskExecution.getTask() |
static Task |
Task.Factory.newInstance()
Constructs a new instance of
Task . |
static Task |
Task.Factory.newInstance(String uniqueName,
Boolean active,
TaskStatus taskStatus,
Date nextExecution,
Date lastExecution,
Long taskInterval,
String handlerClassName,
Set<TaskProperty> properties)
Constructs a new instance of
Task , taking all
possible properties (except the identifier(s))as arguments. |
static Task |
Task.Factory.newInstance(String uniqueName,
Boolean active,
TaskStatus taskStatus,
Date nextExecution,
String handlerClassName)
Constructs a new instance of
Task , taking all
required and/or read-only properties as arguments. |
Modifier and Type | Method and Description |
---|---|
static TaskExecution |
TaskExecution.Factory.newInstance(String instanceName,
Task task)
Constructs a new instance of
TaskExecution ,
taking all possible properties (except the identifier(s))as arguments. |
void |
TaskExecution.setTask(Task task) |
Modifier and Type | Method and Description |
---|---|
Task |
TaskDaoBase.create(Task task) |
Task |
TaskDao.create(Task task)
Creates an instance of com.communote.server.persistence.tasks.Task and adds it to the
persistent store.
|
Task |
TaskDaoBase.findNextScheduledTask() |
Task |
TaskDao.findNextScheduledTask() |
Task |
TaskDaoBase.findTaskByUniqueName(String uniqueName) |
Task |
TaskDao.findTaskByUniqueName(String uniqueName) |
protected Task |
TaskDaoImpl.handleFindNextScheduledTask()
Performs the core logic for
TaskDaoBase.findNextScheduledTask() |
protected abstract Task |
TaskDaoBase.handleFindNextScheduledTask()
Performs the core logic for
TaskDaoBase.findNextScheduledTask() |
protected Task |
TaskDaoImpl.handleFindTaskByUniqueName(String uniqueName)
Performs the core logic for
TaskDaoBase.findTaskByUniqueName(String) |
protected abstract Task |
TaskDaoBase.handleFindTaskByUniqueName(String uniqueName)
Performs the core logic for
TaskDaoBase.findTaskByUniqueName(String) |
Task |
TaskDaoBase.load(Long id) |
Task |
TaskDao.load(Long id)
Loads an instance of com.communote.server.persistence.tasks.Task from the persistent store.
|
Modifier and Type | Method and Description |
---|---|
Collection<Task> |
TaskDaoBase.create(Collection<Task> entities) |
Collection<Task> |
TaskDao.create(Collection<Task> entities)
Creates a new instance of com.communote.server.persistence.tasks.Task and adds from the
passed in
entities collection |
Collection<Task> |
TaskDaoBase.create(int transform,
Collection<Task> entities) |
Collection<Task> |
TaskDaoBase.findNextScheduledTasks(Date upperBound,
int maxTasks,
Collection<Long> taskIdsToExclude) |
Collection<Task> |
TaskDao.findNextScheduledTasks(Date upperBound,
int maxTasks,
Collection<Long> taskIdsToExclude)
Returns all task, which can be scheduled within the next time frame.
|
protected Collection<Task> |
TaskDaoImpl.handleFindNextScheduledTasks(Date upperBound,
int maxTasks,
Collection<Long> taskIdsToExclude)
Performs the core logic for
#findNextScheduledTasks(java.util.Date, int,
java.util.Collection |
protected abstract Collection<Task> |
TaskDaoBase.handleFindNextScheduledTasks(Date upperBound,
int maxTasks,
Collection<Long> taskIdsToExclude)
Performs the core logic for
#findNextScheduledTasks(java.util.Date, int,
java.util.Collection |
Collection<Task> |
TaskDaoBase.loadAll() |
Collection<Task> |
TaskDao.loadAll()
Loads all entities of type
Task . |
Modifier and Type | Method and Description |
---|---|
Object |
TaskDaoBase.create(int transform,
Task task) |
Object |
TaskDao.create(int transform,
Task task)
Does the same thing as
TaskDao.create(com.communote.server.model.task.Task) with an
additional flag called transform . |
Task |
TaskDaoBase.create(Task task) |
Task |
TaskDao.create(Task task)
Creates an instance of com.communote.server.persistence.tasks.Task and adds it to the
persistent store.
|
void |
TaskDaoBase.evict(Task entity)
Evicts (removes) the entity from the hibernate cache
|
void |
TaskDao.evict(Task entity)
Evicts (removes) the entity from the hibernate cache
|
void |
TaskDaoBase.remove(Task task) |
void |
TaskDao.remove(Task task)
Removes the instance of com.communote.server.persistence.tasks.Task from the persistent
store.
|
protected Object |
TaskDaoBase.transformEntity(int transform,
Task entity)
Allows transformation of entities into value objects (or something else for that matter),
when the
transform flag is set to one of the constants defined in
com.communote.server.persistence.tasks.TaskDao , please note that the
TaskDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be
returned. |
void |
TaskDaoBase.update(Task task) |
void |
TaskDao.update(Task task)
Updates the
task instance in the persistent store. |
Modifier and Type | Method and Description |
---|---|
Collection<Task> |
TaskDaoBase.create(Collection<Task> entities) |
Collection<Task> |
TaskDao.create(Collection<Task> entities)
Creates a new instance of com.communote.server.persistence.tasks.Task and adds from the
passed in
entities collection |
Collection<Task> |
TaskDaoBase.create(int transform,
Collection<Task> entities) |
Collection<?> |
TaskDao.create(int transform,
Collection<Task> entities)
Does the same thing as
TaskDao.create(com.communote.server.model.task.Task) with an
additional flag called transform . |
void |
TaskDaoBase.remove(Collection<Task> entities) |
void |
TaskDao.remove(Collection<Task> entities)
Removes all entities in the given
entities |
void |
TaskDaoBase.update(Collection<Task> entities) |
void |
TaskDao.update(Collection<Task> entities)
Updates all instances in the
entities collection in the persistent store. |
Copyright © 2019 Communote team. All rights reserved.