Class SecurityRoleMetaData
java.lang.Object
org.jboss.metadata.javaee.support.IdMetaDataImpl
org.jboss.metadata.javaee.support.NamedMetaData
org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptions
org.jboss.metadata.javaee.spec.SecurityRoleMetaData
- All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MappableMetaData, WithDescriptions
SecurityRoleMetaData.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock, Scott.Stark@jboss.org
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the principals.Get the roleName.booleanhasPrincipal(String userName) Whether this roles has the principalvoidsetPrincipals(Set<String> principals) Set the principals.voidsetRoleName(String roleName) Set the roleName.Methods inherited from class NamedMetaDataWithDescriptions
getDescriptions, setDescriptionsMethods inherited from class IdMetaDataImpl
clone, getId, setIdMethods inherited from interface MappableMetaData
getKey
-
Constructor Details
-
SecurityRoleMetaData
public SecurityRoleMetaData()Create a new SecurityRoleMetaData.
-
-
Method Details
-
getRoleName
-
setRoleName
Set the roleName.- Parameters:
roleName- the roleName.- Throws:
IllegalArgumentException- for a null roleName
-
getPrincipals
-
setPrincipals
Set the principals.- Parameters:
principals- the principals.- Throws:
IllegalArgumentException- for a null principals
-
hasPrincipal
Whether this roles has the principal- Parameters:
userName- the principal- Returns:
- true when it has the principal
- Throws:
IllegalArgumentException- for a null principal
-