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(java.lang.String sessionId, java.lang.String taskId, java.lang.String userId)
          Creates an Acl.
 void deleteAclImpl(java.lang.String sessionid, java.lang.String id)
          Deletes specified Acl.
 java.util.ArrayList getAclListImpl(java.lang.String sessionid, java.lang.String taskid, java.util.ArrayList result)
          Returns list of Acl for specified Task and it's children.
 java.util.ArrayList getAllowedPrstatusListImpl(java.lang.String sessionid, java.lang.String task, java.lang.String userid, java.util.ArrayList a)
          Returns list of Prstatus that's allowed for specified Task and User.
 java.util.ArrayList getAllowedUserListImpl(java.lang.String sessionid, java.lang.String taskid, java.util.ArrayList result)
          Returns list of User that's allowed for specified Task.
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.ArrayList getViewableUserListImpl(java.lang.String sessionid, java.lang.String taskid, boolean active, java.util.ArrayList result)
          Returns a list of all users, who has any access to any subtask of specified task
 boolean init()
          Initialize adapter.
 boolean isAllowedImpl(java.lang.String sessionid, java.lang.String taskid, java.lang.String userid, boolean result)
          Checks Acl for specified User and Task.
 void updateAclImpl(java.lang.String sessionid, java.lang.String aclid, java.lang.String prstatusid, java.lang.Integer 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(java.lang.String sessionid,
                                          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:
sessionid - the session ID
taskid - the Task ID
result -
Returns:
list of SecuredAclBean
Throws:
GranException
See Also:
SecuredAclBean

isAllowedImpl

public boolean isAllowedImpl(java.lang.String sessionid,
                             java.lang.String taskid,
                             java.lang.String userid,
                             boolean result)
                      throws GranException
Description copied from interface: SecuredAclAdapter
Checks Acl for specified User and Task. Available via SOAP.

Specified by:
isAllowedImpl in interface SecuredAclAdapter
Parameters:
sessionid - the session ID
taskid - the Task ID
userid - the User ID
result -
Returns:
true if specified User has Acl for specified Task
Throws:
GranException

getAllowedUserListImpl

public java.util.ArrayList getAllowedUserListImpl(java.lang.String sessionid,
                                                  java.lang.String taskid,
                                                  java.util.ArrayList result)
                                           throws GranException
Description copied from interface: SecuredAclAdapter
Returns list of User that's allowed for specified Task. Available via SOAP.

Specified by:
getAllowedUserListImpl in interface SecuredAclAdapter
Parameters:
sessionid - the session ID
taskid - the Task ID
result -
Returns:
list of SecuredUserBean
Throws:
GranException
See Also:
SecuredUserBean

getViewableUserListImpl

public java.util.ArrayList getViewableUserListImpl(java.lang.String sessionid,
                                                   java.lang.String taskid,
                                                   boolean active,
                                                   java.util.ArrayList result)
                                            throws GranException
Description copied from interface: SecuredAclAdapter
Returns a list of all users, who has any access to any subtask of specified task

Specified by:
getViewableUserListImpl in interface SecuredAclAdapter
Parameters:
sessionid -
taskid -
result -
Returns:
A list of SecuredUserBeans.
Throws:
GranException
See Also:
SecuredUserBean

deleteAclImpl

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

Specified by:
deleteAclImpl in interface SecuredAclAdapter
Parameters:
sessionid - the session ID
id - the Acl ID
Throws:
GranException

createAclImpl

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

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

updateAclImpl

public void updateAclImpl(java.lang.String sessionid,
                          java.lang.String aclid,
                          java.lang.String prstatusid,
                          java.lang.Integer override)
                   throws GranException
Description copied from interface: SecuredAclAdapter
Updates specified Acl. Available via SOAP.

Specified by:
updateAclImpl in interface SecuredAclAdapter
Parameters:
sessionid - the session ID
aclid - the Acl ID
prstatusid - the Prstatus ID
Throws:
GranException

getAllowedPrstatusListImpl

public java.util.ArrayList getAllowedPrstatusListImpl(java.lang.String sessionid,
                                                      java.lang.String task,
                                                      java.lang.String userid,
                                                      java.util.ArrayList a)
                                               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:
sessionid - the session ID
task - the Task ID
userid - the User ID
a -
Returns:
list of SecuredPrstatusBean
Throws:
GranException
See Also:
SecuredPrstatusBean


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