java.io.Serializable, IdMetaData, MappableMetaData, WithDescriptionspublic class SecurityRoleMetaData extends NamedMetaDataWithDescriptions
| Constructor | Description |
|---|---|
SecurityRoleMetaData() |
Create a new SecurityRoleMetaData.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<java.lang.String> |
getPrincipals() |
Get the principals.
|
java.lang.String |
getRoleName() |
Get the roleName.
|
boolean |
hasPrincipal(java.lang.String userName) |
Whether this roles has the principal
|
void |
setPrincipals(java.util.Set<java.lang.String> principals) |
Set the principals.
|
void |
setRoleName(java.lang.String roleName) |
Set the roleName.
|
clone, getId, setIdgetKeyequals, getKey, getName, hashCode, setName, toStringgetDescriptions, setDescriptionspublic SecurityRoleMetaData()
public java.lang.String getRoleName()
public void setRoleName(java.lang.String roleName)
roleName - the roleName.java.lang.IllegalArgumentException - for a null roleNamepublic java.util.Set<java.lang.String> getPrincipals()
public void setPrincipals(java.util.Set<java.lang.String> principals)
principals - the principals.java.lang.IllegalArgumentException - for a null principalspublic boolean hasPrincipal(java.lang.String userName)
userName - the principaljava.lang.IllegalArgumentException - for a null principalCopyright © 2018 JBoss by Red Hat. All rights reserved.