gran.app.adapter.kernel
Interface TaskAdapter

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

public interface TaskAdapter
extends KernelAdapter


Method Summary
 java.lang.String createTaskImpl(java.lang.String parentTaskId, java.lang.String submitterUserId, java.lang.String categoryId, 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
 int getMessageCountImpl(java.lang.String id, int result)
          Get amount of messages for current task
 java.util.LinkedList getTaskIdChainImpl(java.lang.String startid, java.lang.String stopid, java.util.LinkedList result)
          Get list of task from startid to stopid.
 
Methods inherited from interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

findByShortNameImpl

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

Throws:
GranException
TaskNotFoundException

findByNumberImpl

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

getTaskIdChainImpl

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

Throws:
GranException

getMessageCountImpl

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

Throws:
GranException

createTaskImpl

public java.lang.String createTaskImpl(java.lang.String parentTaskId,
                                       java.lang.String submitterUserId,
                                       java.lang.String categoryId,
                                       java.lang.String name,
                                       java.lang.String result)
                                throws GranException
Throws:
GranException


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