| java.lang.Object org.apache.cocoon.auth.StandardUser
All known Subclasses: org.apache.cocoon.portal.security.PortalUser,
Field Summary | |
final protected Map | attributes The user attributes. | protected String | id The unique id of the user. | protected List | roles Cache the roles info. |
attributes | final protected Map attributes(Code) | | The user attributes.
|
roles | protected List roles(Code) | | Cache the roles info.
|
StandardUser | public StandardUser(String userId)(Code) | | Create a new user object.
Parameters: userId - The unique identifier for this user. |
StandardUser | public StandardUser()(Code) | | Create a new user object.
If you use this constructor, you have to ensure that the id of the user
is set accordingly before the user object is used
|
isUserInRole | public boolean isUserInRole(String role)(Code) | | Check if the user is in a given role. This default implementation
checks the two attributes "roles" and "role". If the incomming role
is found in one of the two attributes, true is returned.
Subclasses should override this method.
Parameters: role - The role to test. Returns true if the user has the role, otherwise false. See Also: org.apache.cocoon.auth.User.isUserInRole(java.lang.String) |
|
|