gran.app.adapter.external.acl
Class BaseSecuredAclAdapter

java.lang.Object
  extended bygran.app.adapter.external.acl.BaseSecuredAclAdapter
All Implemented Interfaces:
Adapter, SecuredAclAdapter, SecuredAdapter

public class BaseSecuredAclAdapter
extends java.lang.Object
implements SecuredAclAdapter


Constructor Summary
BaseSecuredAclAdapter()
           
 
Method Summary
 java.lang.String createAclImpl(SessionContext sc, java.lang.String taskId, java.lang.String toUserId, java.lang.String userId, java.lang.String groupId)
          Creates an Acl.
 void deleteAclImpl(SessionContext sc, java.lang.String aclId)
          Deletes specified Acl.
 java.util.ArrayList getAclListImpl(SessionContext sc, java.lang.String taskId, java.util.ArrayList result)
          Returns list of Acl for specified Task and it's children.
 java.util.ArrayList getAllowedGroupsImpl(SessionContext sc, java.lang.String taskId, java.util.ArrayList result)
           
 java.util.ArrayList getAllowedPrstatusListImpl(SessionContext sc, java.lang.String taskId, java.lang.String userId, java.util.ArrayList result)
          Returns list of Prstatus that's allowed for specified Task and User.
 java.util.ArrayList getAssignedUserListImpl(SessionContext sc, java.lang.String userkId, java.util.ArrayList result)
           
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.ArrayList getGroupAclListImpl(SessionContext sc, java.lang.String prstatusId, java.util.ArrayList result)
           
 java.util.ArrayList getHandlerForFilterImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
           
 java.util.Map getStatusesForTaskFilterImpl(SessionContext sc, java.lang.String userId, java.util.Map result)
           
 java.util.ArrayList getTaskListImpl(SessionContext sc, java.lang.String userkId, java.util.ArrayList result)
           
 java.util.ArrayList getUserAclListImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
           
 java.util.ArrayList getUserAllowedPrstatusListImpl(SessionContext sc, java.lang.String toUserId, java.lang.String userId, java.util.ArrayList result)
           
 java.util.ArrayList getUserEffectiveStatusesListImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
           
 java.util.ArrayList getUserListImpl(SessionContext sc, java.lang.String taskId, java.util.ArrayList result)
           
 boolean init()
          Initialize adapter.
 void pasteAclsImpl(SessionContext sc, java.lang.String taskId, java.lang.String[] aclIds, java.lang.String operation)
           
 void updateAclImpl(SessionContext sc, java.lang.String aclId, java.lang.String prstatusId, boolean override)
          Updates specified Acl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredAclAdapter

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

getAclListImpl

public java.util.ArrayList getAclListImpl(SessionContext sc,
                                          java.lang.String taskId,
                                          java.util.ArrayList result)
                                   throws GranException
Description copied from interface: SecuredAclAdapter
Returns list of Acl for specified Task and it's children. Available via SOAP.

Specified by:
getAclListImpl in interface SecuredAclAdapter
Parameters:
sc -
taskId - the Task ID
result -
Returns:
list of SecuredAclBean
Throws:
GranException
See Also:
SecuredAclBean

getUserAclListImpl

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

getHandlerForFilterImpl

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

getStatusesForTaskFilterImpl

public java.util.Map getStatusesForTaskFilterImpl(SessionContext sc,
                                                  java.lang.String userId,
                                                  java.util.Map result)
                                           throws GranException
Specified by:
getStatusesForTaskFilterImpl in interface SecuredAclAdapter
Throws:
GranException

deleteAclImpl

public void deleteAclImpl(SessionContext sc,
                          java.lang.String aclId)
                   throws GranException
Description copied from interface: SecuredAclAdapter
Deletes specified Acl. Available via SOAP.

Specified by:
deleteAclImpl in interface SecuredAclAdapter
Parameters:
sc - the session ID
aclId - the Acl ID
Throws:
GranException

createAclImpl

public java.lang.String createAclImpl(SessionContext sc,
                                      java.lang.String taskId,
                                      java.lang.String toUserId,
                                      java.lang.String userId,
                                      java.lang.String groupId)
                               throws GranException
Description copied from interface: SecuredAclAdapter
Creates an Acl.

Specified by:
createAclImpl in interface SecuredAclAdapter
Parameters:
sc - the Session identifier
taskId - the Task identifier
userId - the User identifier
Throws:
GranException

updateAclImpl

public void updateAclImpl(SessionContext sc,
                          java.lang.String aclId,
                          java.lang.String prstatusId,
                          boolean override)
                   throws GranException
Description copied from interface: SecuredAclAdapter
Updates specified Acl. Available via SOAP.

Specified by:
updateAclImpl in interface SecuredAclAdapter
Parameters:
sc -
aclId - the Acl ID
prstatusId - the Prstatus ID
Throws:
GranException

getAllowedPrstatusListImpl

public java.util.ArrayList getAllowedPrstatusListImpl(SessionContext sc,
                                                      java.lang.String taskId,
                                                      java.lang.String userId,
                                                      java.util.ArrayList result)
                                               throws GranException
Description copied from interface: SecuredAclAdapter
Returns list of Prstatus that's allowed for specified Task and User. Available via SOAP.

Specified by:
getAllowedPrstatusListImpl in interface SecuredAclAdapter
Parameters:
sc -
taskId - the Task ID
userId - the User ID
result -
Returns:
list of SecuredPrstatusBean
Throws:
GranException
See Also:
SecuredPrstatusBean

getUserAllowedPrstatusListImpl

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

getUserListImpl

public java.util.ArrayList getUserListImpl(SessionContext sc,
                                           java.lang.String taskId,
                                           java.util.ArrayList result)
                                    throws GranException
Specified by:
getUserListImpl in interface SecuredAclAdapter
Throws:
GranException

getUserEffectiveStatusesListImpl

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

getTaskListImpl

public java.util.ArrayList getTaskListImpl(SessionContext sc,
                                           java.lang.String userkId,
                                           java.util.ArrayList result)
                                    throws GranException
Specified by:
getTaskListImpl in interface SecuredAclAdapter
Throws:
GranException

getAssignedUserListImpl

public java.util.ArrayList getAssignedUserListImpl(SessionContext sc,
                                                   java.lang.String userkId,
                                                   java.util.ArrayList result)
                                            throws GranException
Specified by:
getAssignedUserListImpl in interface SecuredAclAdapter
Throws:
GranException

getGroupAclListImpl

public java.util.ArrayList getGroupAclListImpl(SessionContext sc,
                                               java.lang.String prstatusId,
                                               java.util.ArrayList result)
                                        throws GranException
Specified by:
getGroupAclListImpl in interface SecuredAclAdapter
Throws:
GranException

pasteAclsImpl

public void pasteAclsImpl(SessionContext sc,
                          java.lang.String taskId,
                          java.lang.String[] aclIds,
                          java.lang.String operation)
                   throws GranException
Specified by:
pasteAclsImpl in interface SecuredAclAdapter
Throws:
GranException

getAllowedGroupsImpl

public java.util.ArrayList getAllowedGroupsImpl(SessionContext sc,
                                                java.lang.String taskId,
                                                java.util.ArrayList result)
                                         throws GranException
Specified by:
getAllowedGroupsImpl in interface SecuredAclAdapter
Throws:
GranException


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