|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgran.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 |
findByNameImpl(java.lang.String userid,
java.lang.String name,
java.lang.String result)
|
java.lang.String |
findByNumberImpl(java.lang.String name,
java.lang.String result)
|
java.lang.String |
findByShortNameImpl(java.lang.String name,
java.lang.String result)
Find task by short name |
java.lang.String |
findTaskImpl(java.lang.String quick_go,
gran.model.User u,
java.lang.String result)
|
java.util.Collection |
getChildrenIdCollectionImpl(java.lang.String taskId,
java.util.Collection result)
|
java.util.Collection |
getChildsHashImpl(java.lang.String id,
java.util.Collection 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 |
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.Slider |
getTaskListImpl(java.lang.String taskid,
java.lang.String userid,
gran.app.filter.FValue flthm,
boolean vABACL,
boolean withUDF,
int pagen,
java.lang.String keyword,
gran.app.slider.Slider 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,
java.lang.String handlerId,
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 Adapter
public 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, java.lang.String handlerId, boolean sendMail) throws gran.exception.CantCreateTaskException, gran.exception.GranException
TaskAdapter
saveTaskImpl
in interface TaskAdapter
id
- - 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 TaskAdapter
taskid
- - 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 TaskAdapter
ids
- array of task identifiers
gran.exception.GranException
public gran.app.slider.Slider getTaskListImpl(java.lang.String taskid, java.lang.String userid, gran.app.filter.FValue flthm, boolean vABACL, boolean withUDF, int pagen, java.lang.String keyword, gran.app.slider.Slider result) throws java.lang.Exception
TaskAdapter
getTaskListImpl
in interface TaskAdapter
taskid
- - 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 TaskAdapter
gran.exception.GranException
public java.lang.String findByNameImpl(java.lang.String userid, java.lang.String name, java.lang.String result) throws gran.exception.GranException
findByNameImpl
in interface TaskAdapter
gran.exception.GranException
public java.lang.String findByNumberImpl(java.lang.String name, java.lang.String result) throws gran.exception.GranException
findByNumberImpl
in interface TaskAdapter
gran.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 TaskAdapter
gran.exception.GranException
public int containSubtaskImpl(java.lang.String taskid, int result) throws gran.exception.GranException
TaskAdapter
containSubtaskImpl
in interface TaskAdapter
gran.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 TaskAdapter
gran.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 TaskAdapter
gran.exception.GranException
public java.util.Collection getProjectListImpl(java.lang.String userid, java.util.Collection result) throws gran.exception.GranException
TaskAdapter
getProjectListImpl
in interface TaskAdapter
gran.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 TaskAdapter
gran.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 TaskAdapter
gran.exception.GranException
public java.lang.String getProjectNameImpl(java.lang.String id, java.lang.String result) throws gran.exception.GranException
getProjectNameImpl
in interface TaskAdapter
gran.exception.GranException
public java.util.Collection getChildrenIdCollectionImpl(java.lang.String taskId, java.util.Collection result) throws gran.exception.GranException
getChildrenIdCollectionImpl
in interface TaskAdapter
gran.exception.GranException
public java.util.Collection getChildsHashImpl(java.lang.String id, java.util.Collection result) throws gran.exception.GranException
getChildsHashImpl
in interface TaskAdapter
gran.exception.GranException
public java.util.Collection getUsersImpl(java.lang.String id, java.util.Collection result) throws gran.exception.GranException
TaskAdapter
getUsersImpl
in interface TaskAdapter
gran.exception.GranException
public int getMessageCountImpl(java.lang.String id, int result) throws gran.exception.GranException
TaskAdapter
getMessageCountImpl
in interface TaskAdapter
gran.exception.GranException
public java.lang.String findTaskImpl(java.lang.String quick_go, gran.model.User u, java.lang.String result) throws gran.exception.GranException
findTaskImpl
in interface TaskAdapter
gran.exception.GranException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |