Package com.piercey.app.entities

Examples of com.piercey.app.entities.Role


    final List<?> result = query.list();

    if (result.size() > 0)
      return null;

    final Role role = new Role(roleName);
    role.setPermissions(permissions);
   
    final Serializable entityId = session.save(role);
    return (Role) session.get(Role.class, entityId);
  }
View Full Code Here


    final Set<String> permissionNames = new HashSet<String>();

    for (final String roleName : roleNames)
    {
      final Role role = getRole(roleName);

      if (role != null)
        for (final Permission permission : role.getPermissions())
          permissionNames.add(permission.getPermissionName());
    }

    return permissionNames;
  }
View Full Code Here

TOP

Related Classes of com.piercey.app.entities.Role

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.