Package com.dotmarketing.business

Examples of com.dotmarketing.business.Role.toMap()


        taskMap.put("host", host.getMap());
      }
      Role role = roleAPI.loadRoleById(roleId);
      if(role == null)
        continue;
      taskMap.put("role", role.toMap());
      scheduled.add(taskMap);
    }
    return scheduled;
  }
View Full Code Here


    Map<String, Object> roleMap = roles.get(roleId);
    if(roleMap == null) {
      Role role = roleAPI.loadRoleById(roleId);
      if(role == null)
        return;
      roleMap = role.toMap();
      roles.put(role.getId(), roleMap);
      if(!inheritable) {
        if(p.getInode().equals(perm.getPermissionId())) {
          roleMap.put("inherited", false);
        } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.