Package models

Examples of models.PermissionSet


   * @param permsetId
   * @param compareType
   * @param retry
   */
  public static PermissionSet getPermissionSet(String permsetId, String compareType, boolean retry) {
    PermissionSet permset = new PermissionSet(permsetId);

    if (USER_PERMS.equals(compareType)) {
      CompareUserPerms.addPermsToPermset(permset, retry);
     
    } else if (OBJECT_PERMS.equals(compareType)) {
View Full Code Here


   * Creates aggregate permset representing effective perms of a user
   * @param ImmutableSet<PermissionSet> permsets
   * @return PermissionSet
   */
  public static PermissionSet aggregatePermissionSets(ImmutableSet<PermissionSet> permsets, String compareType) {
    PermissionSet permset = new PermissionSet("aggregatePermset_FakeId");
    Set<String> aggregateUserPerms = new HashSet<String>();

    Iterator permIter = permsets.iterator();
    while (permIter.hasNext()) {
      PermissionSet tempPermset = (PermissionSet) permIter.next();

      if (USER_PERMS.equals(compareType)) {
        aggregateUserPerms.addAll(tempPermset.getUserPerms());
       
      } else if (SETUP_ENTITY_PERMS.equals(compareType)) {
        for (SetupEntityTypes type : SetupEntityTypes.values()) {
          permset.getSeaPermMap(ObjPermCategory.original)
              .get(type)
              .addAll(tempPermset.getSeaPermMap(
                  ObjPermCategory.original).get(type));
        }
       
      } else if (OBJECT_PERMS.equals(compareType)) {
        // Don't do anything here since object perms does not require aggregate -- query gets all perms
View Full Code Here

TOP

Related Classes of models.PermissionSet

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.