Package com.dotmarketing.business.web

Examples of com.dotmarketing.business.web.UserWebAPI.loadUserById()


   
    List<Map<String, Object>> resultList = new LinkedList<Map<String,Object>>();
    List<FieldVariable> fieldVars = fieldAPI.getFieldVariablesForField(fieldId, user, respectFrontendRoles);
    for(FieldVariable variable : fieldVars) {
      Map<String, Object> variableMap = variable.getMap();
      User variableLastModifier = userWebAPI.loadUserById(variable.getLastModifierId(), userWebAPI.getSystemUser(), false);
      String lastModifierFullName = "Unknown";
      if(variableLastModifier != null)
        lastModifierFullName = variableLastModifier.getFullName();
      variableMap.put("lastModifierFullName", lastModifierFullName);
      resultList.add(variableMap);
View Full Code Here


   
    List<Map<String, Object>> resultList = new LinkedList<Map<String,Object>>();
    List<HostVariable> hvars = hostVariableAPI.getVariablesForHost(hostId, user, respectFrontendRoles);
    for(HostVariable variable : hvars) {
      Map<String, Object> variableMap = variable.getMap();
      User variableLastModifier = userWebAPI.loadUserById(variable.getLastModifierId(), userWebAPI.getSystemUser(), false);
      String lastModifierFullName = "Unknown";
      if(variableLastModifier != null)
        lastModifierFullName = variableLastModifier.getFullName();
      variableMap.put("lastModifierFullName", lastModifierFullName);
      resultList.add(variableMap);
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.