gran.app.adapter.kernel.task
Class BaseTaskAdapter

java.lang.Object
  extended bygran.app.adapter.kernel.task.BaseTaskAdapter
All Implemented Interfaces:
Adapter, KernelAdapter, TaskAdapter

public class BaseTaskAdapter
extends java.lang.Object
implements TaskAdapter


Constructor Summary
BaseTaskAdapter()
           
 
Method Summary
 java.lang.String createTaskImpl(java.lang.String parentTaskId, java.lang.String submitterId, 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
 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.LinkedList getTaskIdChainImpl(java.lang.String startid, java.lang.String stopid, java.util.LinkedList result)
          Get list of task from startid to stopid.
 boolean init()
          Initialize adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTaskAdapter

public BaseTaskAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

createTaskImpl

public java.lang.String createTaskImpl(java.lang.String parentTaskId,
                                       java.lang.String submitterId,
                                       java.lang.String categoryId,
                                       java.lang.String name,
                                       java.lang.String result)
                                throws GranException
Specified by:
createTaskImpl in interface TaskAdapter
Throws:
GranException

findByShortNameImpl

public java.lang.String findByShortNameImpl(java.lang.String name,
                                            java.lang.String result)
                                     throws GranException,
                                            TaskNotFoundException
Description copied from interface: TaskAdapter
Find task by short name

Specified by:
findByShortNameImpl in interface TaskAdapter
Throws:
GranException
TaskNotFoundException

findByNumberImpl

public java.lang.String findByNumberImpl(java.lang.String name,
                                         java.lang.String result)
                                  throws GranException
Specified by:
findByNumberImpl in interface TaskAdapter
Throws:
GranException

getTaskIdChainImpl

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

Specified by:
getTaskIdChainImpl in interface TaskAdapter
Throws:
GranException

getMessageCountImpl

public int getMessageCountImpl(java.lang.String id,
                               int result)
                        throws GranException
Description copied from interface: TaskAdapter
Get amount of messages for current task

Specified by:
getMessageCountImpl in interface TaskAdapter
Throws:
GranException


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