Package org.jboss.security

Examples of org.jboss.security.SecurityRoleMetaData


      SecurityRolesMetaData roles = getDelegate().getSecurityRoles();
      if (roles == null)
         return Collections.emptyMap();
      Map<String, SecurityRoleMetaData> result = new LinkedHashMap<String, SecurityRoleMetaData>(roles.size());
      for (org.jboss.metadata.javaee.spec.SecurityRoleMetaData role : roles)
         result.put(role.getRoleName(), new SecurityRoleMetaData(role));
      return result;
   }
View Full Code Here


   public SecurityRoleMetaData getSecurityRoleByName(String roleName)
   {
      org.jboss.metadata.javaee.spec.SecurityRoleMetaData role = getDelegate().getSecurityRole(roleName);
      if (role == null)
         return null;
      return new SecurityRoleMetaData(role);
   }
View Full Code Here

      if (securityRoles != null)
      {
         Iterator it = securityRoles.values().iterator();
         while (it.hasNext())
         {
            SecurityRoleMetaData srMetaData = (SecurityRoleMetaData) it.next();
            if (srMetaData.getPrincipals().contains(userName))
               roleNames.add(srMetaData.getRoleName());
         }
      }
      return roleNames;
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.SecurityRoleMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.