JBoss Metadata Common 7.0.1.Final

org.jboss.metadata.javaee.spec
Class SecurityRolesMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.AbstractMappedMetaData<SecurityRoleMetaData>
          extended by org.jboss.metadata.javaee.spec.SecurityRolesMetaData
All Implemented Interfaces:
Serializable, Cloneable, Iterable<SecurityRoleMetaData>, Collection<SecurityRoleMetaData>, IdMetaData, MappedMetaData<SecurityRoleMetaData>

public class SecurityRolesMetaData
extends AbstractMappedMetaData<SecurityRoleMetaData>

SecurityRolesMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
SecurityRolesMetaData()
          Create a new SecurityRolesMetaData.
 
Method Summary
protected  void addNotification(SecurityRoleMetaData added)
          Notification that something was added
 Map<String,Set<String>> getPrincipalVersusRolesMap()
           
 Set<String> getSecurityRoleNamesByPrincipal(String userName)
          Get the security role names by principal
 SecurityRolesMetaData getSecurityRolesByPrincipal(String userName)
          Deprecated. 
 void rebuildPrincipalVersusRolesMap()
           
protected  void removeNotification(SecurityRoleMetaData removed)
          Notification that something was removed
 
Methods inherited from class org.jboss.metadata.javaee.support.AbstractMappedMetaData
add, addAll, clear, contains, containsAll, containsKey, equals, get, getByName, hashCode, isEmpty, iterator, keySet, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.javaee.support.IdMetaData
getId, setId
 

Constructor Detail

SecurityRolesMetaData

public SecurityRolesMetaData()
Create a new SecurityRolesMetaData.

Method Detail

addNotification

protected void addNotification(SecurityRoleMetaData added)
Description copied from class: AbstractMappedMetaData
Notification that something was added

Overrides:
addNotification in class AbstractMappedMetaData<SecurityRoleMetaData>
Parameters:
added - the thing added

getPrincipalVersusRolesMap

public Map<String,Set<String>> getPrincipalVersusRolesMap()

rebuildPrincipalVersusRolesMap

public void rebuildPrincipalVersusRolesMap()

getSecurityRolesByPrincipal

@Deprecated
public SecurityRolesMetaData getSecurityRolesByPrincipal(String userName)
Deprecated. 

Get the security roles by principal

Parameters:
userName - the principal name
Returns:
the security roles containing the principal or null for no roles
Throws:
IllegalArgumentException - for a null user name

getSecurityRoleNamesByPrincipal

public Set<String> getSecurityRoleNamesByPrincipal(String userName)
Get the security role names by principal

Parameters:
userName - the principal name
Returns:
the security role names containing the principal
Throws:
IllegalArgumentException - for a null user name

removeNotification

protected void removeNotification(SecurityRoleMetaData removed)
Description copied from class: AbstractMappedMetaData
Notification that something was removed

Overrides:
removeNotification in class AbstractMappedMetaData<SecurityRoleMetaData>
Parameters:
removed - the thing removed

JBoss Metadata Common 7.0.1.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.