|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gran.app.adapter.kernel.task.BaseTaskAdapter
| Constructor Summary | |
BaseTaskAdapter()
|
|
| Method Summary | |
java.util.HashSet |
allowedChildsImpl(java.lang.String taskid,
java.lang.String userid,
java.util.HashSet result)
Get collection of of allowed childs |
java.util.HashSet |
allowedChildsWithSubtasksImpl(java.lang.String taskid,
java.lang.String userid,
java.util.HashSet result)
Get collection of of allowed childs |
int |
containSubtaskImpl(java.lang.String taskid,
int result)
Get amount of subtasks for current task |
void |
deleteTasksImpl(java.lang.String[] ids)
delete selected task |
java.lang.String |
findByShortNameImpl(java.lang.String name,
java.lang.String result)
Find task by short name |
int |
getChildCountImpl(java.lang.String id,
int result)
Get amount of subtasks for current task |
java.util.Collection |
getChildrenIdCollectionImpl(java.lang.String taskId,
java.util.Collection result)
|
java.util.HashMap |
getChildsHashImpl(java.lang.String id,
java.util.HashMap result)
|
java.lang.String |
getDescription()
Get description of adapter as plain text |
int |
getMessageCountImpl(java.lang.String id,
int result)
Get amount of messages for current task |
java.util.Collection |
getMessagesImpl(java.lang.String taskId,
java.util.Collection result)
Returns collection of messages. |
java.util.Collection |
getPossibleParentListImpl(java.lang.String taskid,
java.util.Collection tasksWithShortNames,
java.util.Collection result)
Get list of possible task parents. |
java.util.Collection |
getProjectListImpl(java.lang.String userid,
java.util.Collection result)
Get list of available projects for current user |
java.lang.String |
getProjectNameImpl(java.lang.String id,
java.lang.String result)
|
java.util.ArrayList |
getTaskChainImpl(java.lang.String startid,
java.lang.String stopid,
java.util.ArrayList result)
Get list of task from startid to stopid. |
java.util.ArrayList |
getTaskIdChainImpl(java.lang.String startid,
java.lang.String stopid,
java.util.ArrayList result)
Get list of task from startid to stopid. |
gran.app.slider.TaskSlider |
getTaskListImpl(java.lang.String taskid,
java.lang.String userid,
gran.app.filter.FValue flthm,
boolean vABACL,
boolean withUDF,
int pagen,
gran.app.slider.TaskSlider result)
Get list of subtasks |
java.util.Collection |
getUsersImpl(java.lang.String id,
java.util.Collection result)
Get has of allowed users |
boolean |
init()
Initialize adapter. |
gran.model.Task |
newTaskImpl(java.lang.String taskid,
java.lang.String userid,
java.lang.String categoryid,
java.lang.String name,
gran.model.Task result)
create new child task |
void |
saveTaskImpl(java.lang.String id,
java.lang.String shortname,
java.lang.String name,
java.lang.String description,
java.lang.String hrs,
java.lang.String mns,
java.lang.String deadline,
java.lang.String category,
java.lang.String priority,
java.lang.String parent,
java.lang.String userid,
boolean sendMail)
Save task |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BaseTaskAdapter()
| Method Detail |
public boolean init()
Adapter
init in interface Adapterpublic java.lang.String getDescription()
Adapter
getDescription in interface Adapter
public void saveTaskImpl(java.lang.String id,
java.lang.String shortname,
java.lang.String name,
java.lang.String description,
java.lang.String hrs,
java.lang.String mns,
java.lang.String deadline,
java.lang.String category,
java.lang.String priority,
java.lang.String parent,
java.lang.String userid,
boolean sendMail)
throws gran.exception.CantCreateTaskException,
gran.exception.GranException
TaskAdapter
saveTaskImpl in interface TaskAdapterid - - task idshortname - - task aliasname - - название задачиdescription - - task descriptionhrs - - budget (hh)mns - - budget (mm)deadline - - task deadlinecategory - - task categorypriority - - task priorityparent - - task parentuserid - - submitter identifiersendMail - - send mail when create this message
gran.exception.CantCreateTaskException
gran.exception.GranException
public gran.model.Task newTaskImpl(java.lang.String taskid,
java.lang.String userid,
java.lang.String categoryid,
java.lang.String name,
gran.model.Task result)
throws gran.exception.GranException
TaskAdapter
newTaskImpl in interface TaskAdaptertaskid - - parent task identifieruserid - - submitter identifiercategoryid - - category of new task identifiername - - name of new task
gran.exception.GranException
public void deleteTasksImpl(java.lang.String[] ids)
throws gran.exception.GranException
TaskAdapter
deleteTasksImpl in interface TaskAdapterids - array of task identifiers
gran.exception.GranException
public gran.app.slider.TaskSlider getTaskListImpl(java.lang.String taskid,
java.lang.String userid,
gran.app.filter.FValue flthm,
boolean vABACL,
boolean withUDF,
int pagen,
gran.app.slider.TaskSlider result)
throws java.lang.Exception
TaskAdapter
getTaskListImpl in interface TaskAdaptertaskid - - task identifieruserid - - logged user identifierflthm - - filtervABACL - - is access to taskid allowed by ACL ?withUDF - - any UDFs for taskidpagen - - page number
java.lang.Exception
public java.lang.String findByShortNameImpl(java.lang.String name,
java.lang.String result)
throws gran.exception.GranException
TaskAdapter
findByShortNameImpl in interface TaskAdaptergran.exception.GranException
public java.util.Collection getPossibleParentListImpl(java.lang.String taskid,
java.util.Collection tasksWithShortNames,
java.util.Collection result)
throws gran.exception.GranException
TaskAdapter
getPossibleParentListImpl in interface TaskAdaptergran.exception.GranException
public int containSubtaskImpl(java.lang.String taskid,
int result)
throws gran.exception.GranException
TaskAdapter
containSubtaskImpl in interface TaskAdaptergran.exception.GranException
public java.util.ArrayList getTaskChainImpl(java.lang.String startid,
java.lang.String stopid,
java.util.ArrayList result)
throws gran.exception.GranException
TaskAdapter
getTaskChainImpl in interface TaskAdaptergran.exception.GranException
public java.util.ArrayList getTaskIdChainImpl(java.lang.String startid,
java.lang.String stopid,
java.util.ArrayList result)
throws gran.exception.GranException
TaskAdapter
getTaskIdChainImpl in interface TaskAdaptergran.exception.GranException
public java.util.Collection getProjectListImpl(java.lang.String userid,
java.util.Collection result)
throws gran.exception.GranException
TaskAdapter
getProjectListImpl in interface TaskAdaptergran.exception.GranException
public java.util.HashSet allowedChildsImpl(java.lang.String taskid,
java.lang.String userid,
java.util.HashSet result)
throws gran.exception.GranException
TaskAdapter
allowedChildsImpl in interface TaskAdaptergran.exception.GranException
public java.util.HashSet allowedChildsWithSubtasksImpl(java.lang.String taskid,
java.lang.String userid,
java.util.HashSet result)
throws gran.exception.GranException
TaskAdapter
allowedChildsWithSubtasksImpl in interface TaskAdaptergran.exception.GranException
public java.lang.String getProjectNameImpl(java.lang.String id,
java.lang.String result)
throws gran.exception.GranException
getProjectNameImpl in interface TaskAdaptergran.exception.GranException
public java.util.Collection getChildrenIdCollectionImpl(java.lang.String taskId,
java.util.Collection result)
throws gran.exception.GranException
getChildrenIdCollectionImpl in interface TaskAdaptergran.exception.GranException
public java.util.Collection getMessagesImpl(java.lang.String taskId,
java.util.Collection result)
throws gran.exception.GranException
TaskAdapter
getMessagesImpl in interface TaskAdaptertaskId - Task identifier
gran.exception.GranException
public java.util.HashMap getChildsHashImpl(java.lang.String id,
java.util.HashMap result)
throws gran.exception.GranException
getChildsHashImpl in interface TaskAdaptergran.exception.GranException
public java.util.Collection getUsersImpl(java.lang.String id,
java.util.Collection result)
throws gran.exception.GranException
TaskAdapter
getUsersImpl in interface TaskAdaptergran.exception.GranException
public int getMessageCountImpl(java.lang.String id,
int result)
throws gran.exception.GranException
TaskAdapter
getMessageCountImpl in interface TaskAdaptergran.exception.GranException
public int getChildCountImpl(java.lang.String id,
int result)
throws gran.exception.GranException
TaskAdapter
getChildCountImpl in interface TaskAdaptergran.exception.GranException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||