gran.app.adapter.external
Interface SecuredAclAdapter

All Superinterfaces:
Adapter, SecuredAdapter
All Known Implementing Classes:
BaseSecuredAclAdapter

public interface SecuredAclAdapter
extends SecuredAdapter

Adapter for Acl managment.


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 aclId)
          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 taskId, java.lang.String userId, java.util.ArrayList result)
          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.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 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 interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

createAclImpl

public java.lang.String createAclImpl(java.lang.String sessionId,
                                      java.lang.String taskId,
                                      java.lang.String userId)
                               throws GranException
Creates an Acl.

Parameters:
sessionId - the Session identifier
taskId - the Task identifier
userId - the User identifier
Throws:
GranException

deleteAclImpl

public void deleteAclImpl(java.lang.String sessionId,
                          java.lang.String aclId)
                   throws GranException
Deletes specified Acl. Available via SOAP.

Parameters:
sessionId - the session ID
aclId - the Acl ID
Throws:
GranException

updateAclImpl

public void updateAclImpl(java.lang.String sessionId,
                          java.lang.String aclId,
                          java.lang.String prstatusId,
                          java.lang.Integer override)
                   throws GranException
Updates specified Acl. Available via SOAP.

Parameters:
sessionId - the session ID
aclId - the Acl ID
prstatusId - the Prstatus ID
Throws:
GranException

getAclListImpl

public java.util.ArrayList getAclListImpl(java.lang.String sessionId,
                                          java.lang.String taskId,
                                          java.util.ArrayList result)
                                   throws GranException
Returns list of Acl for specified Task and it's children. Available via SOAP.

Parameters:
sessionId - the session ID
taskId - the Task ID
result -
Returns:
list of SecuredAclBean
Throws:
GranException
See Also:
SecuredAclBean

getAllowedUserListImpl

public java.util.ArrayList getAllowedUserListImpl(java.lang.String sessionId,
                                                  java.lang.String taskId,
                                                  java.util.ArrayList result)
                                           throws GranException
Returns list of User that's allowed for specified Task. Available via SOAP.

Parameters:
sessionId - the session ID
taskId - the Task ID
result -
Returns:
list of SecuredUserBean
Throws:
GranException
See Also:
SecuredUserBean

getAllowedPrstatusListImpl

public java.util.ArrayList getAllowedPrstatusListImpl(java.lang.String sessionId,
                                                      java.lang.String taskId,
                                                      java.lang.String userId,
                                                      java.util.ArrayList result)
                                               throws GranException
Returns list of Prstatus that's allowed for specified Task and User. Available via SOAP.

Parameters:
sessionId - the session ID
taskId - the Task ID
userId - the User ID
result -
Returns:
list of SecuredPrstatusBean
Throws:
GranException
See Also:
SecuredPrstatusBean

isAllowedImpl

public boolean isAllowedImpl(java.lang.String sessionId,
                             java.lang.String taskId,
                             java.lang.String userId,
                             boolean result)
                      throws GranException
Checks Acl for specified User and Task. Available via SOAP.

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

getViewableUserListImpl

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

Parameters:
sessionid -
taskid -
result -
Returns:
A list of SecuredUserBeans.
Throws:
GranException
See Also:
SecuredUserBean


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