Examples of findRootRoles()


Examples of com.dotmarketing.business.RoleAPI.findRootRoles()

  public List<Map<String, Object>> getRolesTree (boolean onlyUserAssignableRoles, String excludeRoles, boolean excludeUserRoles) throws DotDataException {

    List<Map<String, Object>> toReturn = new ArrayList<Map<String,Object>>();

    RoleAPI roleAPI = APILocator.getRoleAPI();
    List<Role> rootRoles = roleAPI.findRootRoles();

    String[] excludeRolesArray = null;
    if(UtilMethods.isSet(excludeRoles)){
      excludeRolesArray = excludeRoles.split(",");
    }
View Full Code Here

Examples of com.dotmarketing.business.RoleAPI.findRootRoles()

      JSONObject jsonRoleObject = new JSONObject();
      jsonRoleObject.put("id", "root");
      jsonRoleObject.put("name", "Roles");
      jsonRoleObject.put("top", "true");
     
      List<Role> rootRoles = roleAPI.findRootRoles();
      JSONArray jsonChildren = new JSONArray();

      for(Role r : rootRoles) {
        JSONObject jsonRoleChildObject = new JSONObject();
        jsonRoleChildObject.put("id", r.getId());
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.