gran.app.adapter.kernel.step
Class BaseStepAdapter

java.lang.Object
  |
  +--gran.app.adapter.kernel.step.BaseStepAdapter
All Implemented Interfaces:
Adapter, KernelAdapter, StepAdapter

public class BaseStepAdapter
extends java.lang.Object
implements StepAdapter


Constructor Summary
BaseStepAdapter()
           
 
Method Summary
 java.util.Collection availableMstatusImpl(java.lang.String taskid, java.lang.String userid, java.util.Collection result)
          get available mstatus for current state
 java.util.Collection getAllowedMsgRecepientImpl(java.lang.String taskid, java.lang.String mstatus, java.util.Collection result)
          returns Collection of User (message recipient) that allowed by ACL and workflow
 java.lang.String getDescription()
          Get description of adapter as plain text
 boolean init()
          Initialize adapter.
 java.util.Collection listMessagesImpl(java.lang.String t, java.lang.String u, java.util.Collection result)
          Returns a collection of messages for specified Task
 void sendNotificationImpl(java.lang.String messageid, java.lang.String taskid, java.lang.String userid, boolean checkMessages)
           
 void stepImpl(java.lang.String mstatus, java.lang.String task, java.lang.String userid, java.lang.String handler, java.lang.String resolution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseStepAdapter

public BaseStepAdapter()
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

stepImpl

public void stepImpl(java.lang.String mstatus,
                     java.lang.String task,
                     java.lang.String userid,
                     java.lang.String handler,
                     java.lang.String resolution)
              throws gran.exception.GranException
Specified by:
stepImpl in interface StepAdapter
gran.exception.GranException

availableMstatusImpl

public java.util.Collection availableMstatusImpl(java.lang.String taskid,
                                                 java.lang.String userid,
                                                 java.util.Collection result)
                                          throws gran.exception.GranException
Description copied from interface: StepAdapter
get available mstatus for current state

Specified by:
availableMstatusImpl in interface StepAdapter
gran.exception.GranException

listMessagesImpl

public java.util.Collection listMessagesImpl(java.lang.String t,
                                             java.lang.String u,
                                             java.util.Collection result)
                                      throws gran.exception.GranException
Description copied from interface: StepAdapter
Returns a collection of messages for specified Task

Specified by:
listMessagesImpl in interface StepAdapter
Returns:
Collection of MsgListItem
gran.exception.GranException

getAllowedMsgRecepientImpl

public java.util.Collection getAllowedMsgRecepientImpl(java.lang.String taskid,
                                                       java.lang.String mstatus,
                                                       java.util.Collection result)
                                                throws gran.exception.GranException
returns Collection of User (message recipient) that allowed by ACL and workflow

Specified by:
getAllowedMsgRecepientImpl in interface StepAdapter
gran.exception.GranException

sendNotificationImpl

public void sendNotificationImpl(java.lang.String messageid,
                                 java.lang.String taskid,
                                 java.lang.String userid,
                                 boolean checkMessages)
                          throws gran.exception.GranException
Specified by:
sendNotificationImpl in interface StepAdapter
gran.exception.GranException


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