Methods Summary |
---|
public void | addApplicationException(ApplicationException applicationException)
applicationExceptions.add(applicationException);
|
public void | addContainerTransaction(ContainerTransaction containerTransaction)
containerTransactions.add(containerTransaction);
|
public void | addInject(Inject inject)
injects.add(inject);
|
public void | addInterceptorBinding(InterceptorBinding binding)
interceptorBindings.add(binding);
|
public void | addMessageDestination(MessageDestination messageDestination)
messageDestinations.put(messageDestination.getMessageDestinationName(), messageDestination);
|
public void | addMethodPermission(MethodPermission methodPermission)
methodPermissions.add(methodPermission);
|
public void | addSecurityRole(org.jboss.metamodel.descriptor.SecurityRole securityRole)
securityRoles.add(securityRole);
|
public void | addSecurityRoleMetaData(org.jboss.security.SecurityRoleMetaData srm)
this.securityRoleMetaData.put(srm.getRoleName(), srm);
|
public MessageDestination | findMessageDestination(java.lang.String name)
return messageDestinations.get(name);
|
public java.util.List | getApplicationExceptions()
return applicationExceptions;
|
public java.util.List | getContainerTransactions()
return containerTransactions;
|
public ExcludeList | getExcludeList()
return excludeList;
|
public InitList | getInitList()
return initList;
|
public java.util.List | getInjects()
return injects;
|
public java.util.List | getInterceptorBindings()
return interceptorBindings;
|
public java.util.Collection | getMessageDestinations()
return messageDestinations.values();
|
public java.util.List | getMethodPermissions()
return methodPermissions;
|
public java.util.Map | getPrincipalVersusRolesMap()Get a map of principals versus set of roles
that may be configured by the user at the deployment level
Map principalRolesMap = null;
Iterator iter = securityRoleMetaData.keySet().iterator();
while(iter.hasNext())
{
if(principalRolesMap == null)
principalRolesMap = new HashMap();
String rolename = (String)iter.next();
SecurityRoleMetaData srm = (SecurityRoleMetaData) securityRoleMetaData.get(rolename);
Iterator principalIter = srm.getPrincipals().iterator();
while(principalIter.hasNext())
{
String pr = (String)principalIter.next();
Set roleset = (Set)principalRolesMap.get(pr);
if(roleset == null)
roleset = new HashSet();
if(!roleset.contains(rolename))
roleset.add(rolename);
principalRolesMap.put(pr, roleset);
}
}
return principalRolesMap;
|
public java.util.Map | getSecurityRoleMetaData()
return this.securityRoleMetaData;
|
public java.util.List | getSecurityRoles()
return securityRoles;
|
public java.util.Set | getSecurityRolesGivenPrincipal(java.lang.String userName)
HashSet roleNames = new HashSet();
Iterator it = securityRoleMetaData.values().iterator();
while (it.hasNext())
{
SecurityRoleMetaData srMetaData = (SecurityRoleMetaData) it.next();
if (srMetaData.getPrincipals().contains(userName))
roleNames.add(srMetaData.getRoleName());
}
return roleNames;
|
public void | setContainerTransactions(java.util.List containerTransactions)
this.containerTransactions = containerTransactions;
|
public void | setExcludeList(ExcludeList excludeList)
this.excludeList = excludeList;
|
public void | setInitList(InitList initList)
this.initList = initList;
|
public void | setMethodPermissions(java.util.List methodPermissions)
this.methodPermissions = methodPermissions;
|
public void | setSecurityRoles(java.util.List securityRoles)
this.securityRoles = securityRoles;
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer(100);
sb.append("[");
sb.append("securityRoles=").append(securityRoles);
sb.append(", applicationExceptions=").append(applicationExceptions);
sb.append("]");
return sb.toString();
|