Class SecurityRolesMetaData
java.lang.Object
org.jboss.metadata.javaee.support.IdMetaDataImpl
org.jboss.metadata.javaee.support.AbstractMappedMetaData<SecurityRoleMetaData>
org.jboss.metadata.javaee.spec.SecurityRolesMetaData
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<SecurityRoleMetaData>, Collection<SecurityRoleMetaData>, IdMetaData, MappedMetaData<SecurityRoleMetaData>
SecurityRolesMetaData.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidNotification that something was addedgetSecurityRoleNamesByPrincipal(String userName) Get the security role names by principalgetSecurityRolesByPrincipal(String userName) Deprecated.voidprotected voidremoveNotification(SecurityRoleMetaData removed) Notification that something was removedMethods inherited from class AbstractMappedMetaData
add, addAll, clear, contains, containsAll, containsKey, equals, get, getByName, hashCode, isEmpty, iterator, keySet, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class IdMetaDataImpl
clone, getId, setIdMethods inherited from interface Collection
parallelStream, removeIf, spliterator, stream, toArrayMethods inherited from interface IdMetaData
getId, setId
-
Constructor Details
-
SecurityRolesMetaData
public SecurityRolesMetaData()Create a new SecurityRolesMetaData.
-
-
Method Details
-
addNotification
Description copied from class:AbstractMappedMetaDataNotification that something was added- Overrides:
addNotificationin classAbstractMappedMetaData<SecurityRoleMetaData>- Parameters:
added- the thing added
-
getPrincipalVersusRolesMap
-
rebuildPrincipalVersusRolesMap
public void rebuildPrincipalVersusRolesMap() -
getSecurityRolesByPrincipal
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
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
Description copied from class:AbstractMappedMetaDataNotification that something was removed- Overrides:
removeNotificationin classAbstractMappedMetaData<SecurityRoleMetaData>- Parameters:
removed- the thing removed
-