gran.app.adapter.external.step
Class BaseSecuredStepAdapter

java.lang.Object
  extended bygran.app.adapter.external.step.BaseSecuredStepAdapter
All Implemented Interfaces:
Adapter, SecuredAdapter, SecuredStepAdapter

public class BaseSecuredStepAdapter
extends java.lang.Object
implements SecuredStepAdapter


Constructor Summary
BaseSecuredStepAdapter()
           
 
Method Summary
 java.util.ArrayList getAllowedMsgRecepientListImpl(java.lang.String sessionId, java.lang.String taskid, java.lang.String mstatus, java.util.ArrayList result)
          returns ArrayList of User (message recipient) that allowed by ACL and workflow
 java.util.ArrayList getAvailableMstatusListImpl(java.lang.String sessionId, java.lang.String taskid, java.util.ArrayList result)
          Returns available Mstatuses for specified Task.
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.ArrayList getHandlerListImpl(java.lang.String sessionId, java.lang.String taskId, java.util.ArrayList result)
          Returns available Handlers for specified Task.
 java.util.ArrayList getMessageListImpl(java.lang.String sessionId, java.lang.String t, java.util.ArrayList result)
          Returns Messages for specified Task.
 boolean init()
          Initialize adapter.
 void stepImpl(java.lang.String sessionId, java.lang.String mstatus, java.lang.String task, java.lang.String userid, java.lang.String handler, java.lang.String resolution)
          Выполнить смену состояния задачи Available via SOAP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredStepAdapter

public BaseSecuredStepAdapter()
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 sessionId,
                     java.lang.String mstatus,
                     java.lang.String task,
                     java.lang.String userid,
                     java.lang.String handler,
                     java.lang.String resolution)
              throws GranException
Description copied from interface: SecuredStepAdapter
Выполнить смену состояния задачи Available via SOAP.

Specified by:
stepImpl in interface SecuredStepAdapter
Parameters:
sessionId -
mstatus - - тип перехода
task - - задача, для которой меняется состояние
userid - - пользователь, который меняет состояние
handler - - новый handler
resolution - - новый resolution
Throws:
GranException

getAvailableMstatusListImpl

public java.util.ArrayList getAvailableMstatusListImpl(java.lang.String sessionId,
                                                       java.lang.String taskid,
                                                       java.util.ArrayList result)
                                                throws GranException
Description copied from interface: SecuredStepAdapter
Returns available Mstatuses for specified Task. Available via SOAP.

Specified by:
getAvailableMstatusListImpl in interface SecuredStepAdapter
Parameters:
sessionId -
taskid -
result -
Returns:
list of SecuredMstatusBeans
Throws:
GranException
See Also:
SecuredMstatusBean

getHandlerListImpl

public java.util.ArrayList getHandlerListImpl(java.lang.String sessionId,
                                              java.lang.String taskId,
                                              java.util.ArrayList result)
                                       throws GranException
Description copied from interface: SecuredStepAdapter
Returns available Handlers for specified Task. Available via SOAP.

Specified by:
getHandlerListImpl in interface SecuredStepAdapter
Parameters:
sessionId -
taskId -
result -
Returns:
list of SecuredUserBean
Throws:
GranException

getMessageListImpl

public java.util.ArrayList getMessageListImpl(java.lang.String sessionId,
                                              java.lang.String t,
                                              java.util.ArrayList result)
                                       throws GranException
Description copied from interface: SecuredStepAdapter
Returns Messages for specified Task. Available via SOAP.

Specified by:
getMessageListImpl in interface SecuredStepAdapter
Parameters:
sessionId -
t -
result -
Returns:
list of SecuredMessageBeans
Throws:
GranException
See Also:
SecuredMessageBean

getAllowedMsgRecepientListImpl

public java.util.ArrayList getAllowedMsgRecepientListImpl(java.lang.String sessionId,
                                                          java.lang.String taskid,
                                                          java.lang.String mstatus,
                                                          java.util.ArrayList result)
                                                   throws GranException
returns ArrayList of User (message recipient) that allowed by ACL and workflow

Specified by:
getAllowedMsgRecepientListImpl in interface SecuredStepAdapter
Parameters:
taskid - - задача, для которой формируется список получателей
mstatus - - message type.
Returns:
коллекцию User - получателей email notification
Throws:
GranException
See Also:
SecuredUserBean


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