gran.app.adapter.kernel.task
Interface TaskAdapter

All Superinterfaces:
Adapter, KernelAdapter
All Known Implementing Classes:
BaseTaskAdapter

public interface TaskAdapter
extends KernelAdapter


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 id, 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)
           
 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 sessionid, 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
 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 interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

saveTaskImpl

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
Save task

Parameters:
id - - task id
shortname - - task alias
name - - название задачи
description - - task description
hrs - - budget (hh)
mns - - budget (mm)
deadline - - task deadline
category - - task category
priority - - task priority
parent - - task parent
userid - - submitter identifier
sendMail - - send mail when create this message
Throws:
gran.exception.CantCreateTaskException
gran.exception.GranException

newTaskImpl

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
create new child task

Parameters:
taskid - - parent task identifier
userid - - submitter identifier
categoryid - - category of new task identifier
name - - name of new task
Throws:
gran.exception.GranException

deleteTasksImpl

public void deleteTasksImpl(java.lang.String[] ids)
                     throws gran.exception.GranException
delete selected task

Parameters:
ids - array of task identifiers
Throws:
gran.exception.GranException

getTaskListImpl

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
Get list of subtasks

Parameters:
taskid - - task identifier
userid - - logged user identifier
flthm - - filter
vABACL - - is access to taskid allowed by ACL ?
withUDF - - any UDFs for taskid
pagen - - page number
Throws:
java.lang.Exception

findByShortNameImpl

public java.lang.String findByShortNameImpl(java.lang.String name,
                                            java.lang.String result)
                                     throws gran.exception.GranException
Find task by short name

Throws:
gran.exception.GranException

findByNameImpl

public java.lang.String findByNameImpl(java.lang.String id,
                                       java.lang.String name,
                                       java.lang.String result)
                                throws gran.exception.GranException
Throws:
gran.exception.GranException

findByNumberImpl

public java.lang.String findByNumberImpl(java.lang.String name,
                                         java.lang.String result)
                                  throws gran.exception.GranException
Throws:
gran.exception.GranException

getPossibleParentListImpl

public java.util.Collection getPossibleParentListImpl(java.lang.String taskid,
                                                      java.util.Collection tasksWithShortNames,
                                                      java.util.Collection result)
                                               throws gran.exception.GranException
Get list of possible task parents.

Throws:
gran.exception.GranException

containSubtaskImpl

public int containSubtaskImpl(java.lang.String taskid,
                              int result)
                       throws gran.exception.GranException
Get amount of subtasks for current task

Throws:
gran.exception.GranException

getTaskChainImpl

public java.util.ArrayList getTaskChainImpl(java.lang.String startid,
                                            java.lang.String stopid,
                                            java.util.ArrayList result)
                                     throws gran.exception.GranException
Get list of task from startid to stopid. Set startid = null for list from root task

Throws:
gran.exception.GranException

getTaskIdChainImpl

public java.util.ArrayList getTaskIdChainImpl(java.lang.String startid,
                                              java.lang.String stopid,
                                              java.util.ArrayList result)
                                       throws gran.exception.GranException
Get list of task from startid to stopid. Set startid = null for list from root task

Throws:
gran.exception.GranException

getProjectListImpl

public java.util.Collection getProjectListImpl(java.lang.String sessionid,
                                               java.util.Collection result)
                                        throws gran.exception.GranException
Get list of available projects for current user

Throws:
gran.exception.GranException

allowedChildsImpl

public java.util.HashSet allowedChildsImpl(java.lang.String taskid,
                                           java.lang.String userid,
                                           java.util.HashSet result)
                                    throws gran.exception.GranException
Get collection of of allowed childs

Throws:
gran.exception.GranException

allowedChildsWithSubtasksImpl

public java.util.HashSet allowedChildsWithSubtasksImpl(java.lang.String taskid,
                                                       java.lang.String userid,
                                                       java.util.HashSet result)
                                                throws gran.exception.GranException
Get collection of of allowed childs

Throws:
gran.exception.GranException

getProjectNameImpl

public java.lang.String getProjectNameImpl(java.lang.String id,
                                           java.lang.String result)
                                    throws gran.exception.GranException
Throws:
gran.exception.GranException

getChildrenIdCollectionImpl

public java.util.Collection getChildrenIdCollectionImpl(java.lang.String taskId,
                                                        java.util.Collection result)
                                                 throws gran.exception.GranException
Throws:
gran.exception.GranException

getChildsHashImpl

public java.util.Collection getChildsHashImpl(java.lang.String id,
                                              java.util.Collection result)
                                       throws gran.exception.GranException
Throws:
gran.exception.GranException

getUsersImpl

public java.util.Collection getUsersImpl(java.lang.String id,
                                         java.util.Collection result)
                                  throws gran.exception.GranException
Get has of allowed users

Throws:
gran.exception.GranException

getMessageCountImpl

public int getMessageCountImpl(java.lang.String id,
                               int result)
                        throws gran.exception.GranException
Get amount of messages for current task

Throws:
gran.exception.GranException

findTaskImpl

public java.lang.String findTaskImpl(java.lang.String quick_go,
                                     gran.model.User u,
                                     java.lang.String result)
                              throws gran.exception.GranException
Throws:
gran.exception.GranException


Copyright © 2002-2003 TrackStudio, Ltd. All Rights Reserved.