gran.app.adapter.external.prstatus
Class BaseSecuredPrstatusAdapter

java.lang.Object
  extended bygran.app.adapter.external.prstatus.BaseSecuredPrstatusAdapter
All Implemented Interfaces:
Adapter, SecuredAdapter, SecuredPrstatusAdapter

public class BaseSecuredPrstatusAdapter
extends java.lang.Object
implements SecuredPrstatusAdapter


Constructor Summary
BaseSecuredPrstatusAdapter()
           
 
Method Summary
 java.lang.String clonePrstatusImpl(SessionContext sc, java.lang.String toUserId, java.lang.String prstatusId)
          Copies Prstatus.
 java.lang.String createPrstatusImpl(SessionContext sc, java.lang.String userId, java.lang.String name, java.lang.String parentPrstatusId, java.lang.String result)
          Create Prstatus.
 void deletePrstatusImpl(SessionContext sc, java.lang.String prstatusId)
          Deletes Prstatus.
 java.util.ArrayList getAllViewablePrstatusesImpl(SessionContext sc, java.util.ArrayList result)
           
 java.util.ArrayList getAvailableAclPrstatusListImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
           
 java.util.ArrayList getAvailablePrstatusListImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
          Returns available Prstatuses for specified User.
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.ArrayList getViewablePrstatusListImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
          Returns children and children of children for Prstatus.
 boolean init()
          Initialize adapter.
 boolean isManagerAvailableImpl(SessionContext sc, java.lang.String userId, java.lang.String managerId, boolean result)
           
 void setRolesImpl(SessionContext sc, java.lang.String prstatusId, java.lang.String[] roleId)
          Sets Action for specified Prstatus.
 void updatePrstatusImpl(SessionContext sc, java.lang.String prstatusId, java.lang.String name)
          Updates Prstatus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredPrstatusAdapter

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

clonePrstatusImpl

public java.lang.String clonePrstatusImpl(SessionContext sc,
                                          java.lang.String toUserId,
                                          java.lang.String prstatusId)
                                   throws GranException
Description copied from interface: SecuredPrstatusAdapter
Copies Prstatus. Available via SOAP.

Specified by:
clonePrstatusImpl in interface SecuredPrstatusAdapter
Parameters:
sc -
prstatusId -
Returns:
new Prstatus identifier
Throws:
GranException

createPrstatusImpl

public java.lang.String createPrstatusImpl(SessionContext sc,
                                           java.lang.String userId,
                                           java.lang.String name,
                                           java.lang.String parentPrstatusId,
                                           java.lang.String result)
                                    throws GranException
Description copied from interface: SecuredPrstatusAdapter
Create Prstatus. Available via SOAP.

Specified by:
createPrstatusImpl in interface SecuredPrstatusAdapter
Parameters:
sc -
name -
parentPrstatusId -
result -
Returns:
Prstatus identifier
Throws:
GranException

deletePrstatusImpl

public void deletePrstatusImpl(SessionContext sc,
                               java.lang.String prstatusId)
                        throws GranException
Description copied from interface: SecuredPrstatusAdapter
Deletes Prstatus. Available via SOAP.

Specified by:
deletePrstatusImpl in interface SecuredPrstatusAdapter
Parameters:
sc -
prstatusId -
Throws:
GranException

getAvailablePrstatusListImpl

public java.util.ArrayList getAvailablePrstatusListImpl(SessionContext sc,
                                                        java.lang.String userId,
                                                        java.util.ArrayList result)
                                                 throws GranException
Description copied from interface: SecuredPrstatusAdapter
Returns available Prstatuses for specified User. Available via SOAP.

Specified by:
getAvailablePrstatusListImpl in interface SecuredPrstatusAdapter
Parameters:
sc -
userId -
result -
Returns:
list of SecuredPrstatusBeans
Throws:
GranException
See Also:
SecuredPrstatusBean

getAvailableAclPrstatusListImpl

public java.util.ArrayList getAvailableAclPrstatusListImpl(SessionContext sc,
                                                           java.lang.String userId,
                                                           java.util.ArrayList result)
                                                    throws GranException
Specified by:
getAvailableAclPrstatusListImpl in interface SecuredPrstatusAdapter
Throws:
GranException

getAllViewablePrstatusesImpl

public java.util.ArrayList getAllViewablePrstatusesImpl(SessionContext sc,
                                                        java.util.ArrayList result)
                                                 throws GranException
Specified by:
getAllViewablePrstatusesImpl in interface SecuredPrstatusAdapter
Throws:
GranException

setRolesImpl

public void setRolesImpl(SessionContext sc,
                         java.lang.String prstatusId,
                         java.lang.String[] roleId)
                  throws GranException
Description copied from interface: SecuredPrstatusAdapter
Sets Action for specified Prstatus. Available via SOAP.

Specified by:
setRolesImpl in interface SecuredPrstatusAdapter
Parameters:
sc -
prstatusId -
roleId -
Throws:
GranException

updatePrstatusImpl

public void updatePrstatusImpl(SessionContext sc,
                               java.lang.String prstatusId,
                               java.lang.String name)
                        throws GranException
Description copied from interface: SecuredPrstatusAdapter
Updates Prstatus. Available via SOAP.

Specified by:
updatePrstatusImpl in interface SecuredPrstatusAdapter
Parameters:
sc -
prstatusId -
name -
Throws:
GranException

isManagerAvailableImpl

public boolean isManagerAvailableImpl(SessionContext sc,
                                      java.lang.String userId,
                                      java.lang.String managerId,
                                      boolean result)
                               throws GranException
Specified by:
isManagerAvailableImpl in interface SecuredPrstatusAdapter
Throws:
GranException

getViewablePrstatusListImpl

public java.util.ArrayList getViewablePrstatusListImpl(SessionContext sc,
                                                       java.lang.String userId,
                                                       java.util.ArrayList result)
                                                throws GranException
Description copied from interface: SecuredPrstatusAdapter
Returns children and children of children for Prstatus. Available via SOAP.

Specified by:
getViewablePrstatusListImpl in interface SecuredPrstatusAdapter
Parameters:
result -
Returns:
list of SecuredPrstatusBean
Throws:
GranException
See Also:
SecuredPrstatusBean


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