| |
|
| java.lang.Object com.rift.coad.lib.security.ThreadPermissionSession
ThreadPermissionSession | public class ThreadPermissionSession (Code) | | This object stores the thread permissions for the current session.
author: Brett Chaldecott |
Method Summary | |
public void | addRole(Role role) This method adds the specified role to the list principal containers. | public Set | getPrincipals() This method returns the list of principals. | public Long | getThreadId() The getter method for the thread id information. | public UserSession | getUser() This method retrieves the use information. | public void | removeRole(Role role) This method removes the role from the container list. |
ThreadPermissionSession | public ThreadPermissionSession(Long threadId, UserSession user)(Code) | | Creates a new instance of ThreadSecuritySession
Parameters: threadId - The id of the thread. Parameters: user - The reference to the user object. |
addRole | public void addRole(Role role) throws SecurityException(Code) | | This method adds the specified role to the list principal containers.
Parameters: role - The object containining the role information. exception: SecurityException - |
removeRole | public void removeRole(Role role)(Code) | | This method removes the role from the container list.
Parameters: role - The object containing the role information. |
|
|
|