org.figure8.join.control.config
Class RoleConfig
java.lang.Object
org.figure8.join.control.config.RoleConfig
- All Implemented Interfaces:
- java.io.Serializable
public class RoleConfig
- extends java.lang.Object
- implements java.io.Serializable
A JavaBean representing information about a security role into Join application.
A security role can be a simple role (such as "administrator" or "joiner") or can
be applied to a specific resource. In this later case, the resourceParameter
attribute can gives the HTTP request parameter that will be used to identify resource
key.
- Version:
- $Revision: 1.1 $
- Author:
- Laurent Broudoux
- See Also:
- Serialized Form
Constructor Summary |
RoleConfig()
Creates a new instance of RoleConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleConfig
public RoleConfig()
- Creates a new instance of RoleConfig
getName
public java.lang.String getName()
- Returns:
- Name of this role
setName
public void setName(java.lang.String name)
- Parameters:
name
- Name of this role
getResource
public java.lang.String getResource()
- Returns:
- The resource the role applies to
setResource
public void setResource(java.lang.String resource)
- Parameters:
resource
- The resource the role applies to
getResourceParameter
public java.lang.String getResourceParameter()
- Returns:
- Request parameter allowing to identify the resource role applies to
setResourceParameter
public void setResourceParameter(java.lang.String resourceParameter)
- Parameters:
resourceParameter
- Request parameter allowing to identify the resource role applies to
hasResource
public boolean hasResource()
- Returns:
- Boolean flag that tells if role applies to a resource or not
hasResourceParameter
public boolean hasResourceParameter()
- Returns:
- Boolean flag that tells if role applies to a resource retrieved from parameter
Copyright © 2005-2008 Join. All Rights Reserved.