Class SecurityRoleMetaData

All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MappableMetaData, WithDescriptions

public class SecurityRoleMetaData extends NamedMetaDataWithDescriptions
SecurityRoleMetaData.
Version:
$Revision: 1.1 $
Author:
Adrian Brock, Scott.Stark@jboss.org
See Also:
  • Constructor Details

    • SecurityRoleMetaData

      public SecurityRoleMetaData()
      Create a new SecurityRoleMetaData.
  • Method Details

    • getRoleName

      public String getRoleName()
      Get the roleName.
      Returns:
      the roleName.
    • setRoleName

      public void setRoleName(String roleName)
      Set the roleName.
      Parameters:
      roleName - the roleName.
      Throws:
      IllegalArgumentException - for a null roleName
    • getPrincipals

      public Set<String> getPrincipals()
      Get the principals.
      Returns:
      the principals.
    • setPrincipals

      public void setPrincipals(Set<String> principals)
      Set the principals.
      Parameters:
      principals - the principals.
      Throws:
      IllegalArgumentException - for a null principals
    • hasPrincipal

      public boolean hasPrincipal(String userName)
      Whether this roles has the principal
      Parameters:
      userName - the principal
      Returns:
      true when it has the principal
      Throws:
      IllegalArgumentException - for a null principal