Package ar.com.AmberSoft.iEvenTask.backend.entities

Examples of ar.com.AmberSoft.iEvenTask.backend.entities.Profile


    map.put(ParamsConst.PAGING_LOAD_RESULT, Boolean.TRUE);
    return map;
  }

  private void addPerfil(Collection list, Boolean permiso1, Boolean permiso2) {
    Profile perfil = new Profile();
    perfil.setGroupLDAP("Grupo" + perfil.getId().toString());
    list.add(perfil);
  }
View Full Code Here


    return null;
  }

  @Override
  public Entity getEntity(Map params) {
    Profile profile = new Profile();
    profile.setGroupLDAP((String) params.get(ParamsConst.GROUP));
   
    Collection permisos = (Collection) params.get(ParamsConst.PERMISSIONS);
    Iterator<Integer> it = permisos.iterator();
    while (it.hasNext()) {
      Integer actual = (Integer) it.next();
View Full Code Here

@SuppressWarnings({"rawtypes"})
public class UpdateProfileService extends CreateProfileService {

  @Override
  public Entity getEntity(Map params) {
    Profile profile = (Profile) super.getEntity(params);
    profile.setId((Integer) params.get(ParamsConst.ID));
    return profile;
  }
View Full Code Here

    Map map = new HashMap();
    User user = new User();
    user.setId("USEREMULE");
    user.setName("Usuario Emulado");
    user.setPassword("pass".getBytes());
    Profile profile = new Profile();
    profile.setId(-1);
    Set<Permission> permissions = new HashSet<Permission>();
    profile.setPermissions(permissions);

    addPermission(permissions, "1", "");
    addPermission(permissions, "2", "");
    addPermission(permissions, "3", "");
    addPermission(permissions, "4", "");
    addPermission(permissions, "5", "");
    addPermission(permissions, "6", "");
    addPermission(permissions, "7", "");
    addPermission(permissions, "8", "");
    addPermission(permissions, "9", "");
    addPermission(permissions, "10", "");
    addPermission(permissions, "11", "");
    addPermission(permissions, "12", "");
   
    profile.setPermissions(permissions);
    user.setProfile(profile);   
   
    setUserInSession(params, user);
   
    map.put(ParamsConst.USER, user);
View Full Code Here

public class GetProfileByGroupService extends GetProfileService {
  @Override
  public Map onEmulate(Map params) {
    Map map = new HashMap();
    map.put(ParamsConst.ENTITY, new Profile());
    return map;
  }
View Full Code Here

    Map params = new HashMap();
    Map result = service.execute(params) ;
    Collection datas = (Collection) result.get(ParamsConst.DATA);
    Iterator itData = datas.iterator();
    while (itData.hasNext()) {
      Profile actual = (Profile) itData.next();
      profiles.put(actual.getGroupLDAP().trim(), actual);
    }
  }
View Full Code Here

            Iterator<String> itSubs = cSubItems.iterator();
            if ((itSubs.hasNext()) && ("CN".equals(itSubs.next()))){
              try {
                String possibleProfile = itSubs.next();
                if ((possibleProfile!=null) && (!"".equals(possibleProfile.trim()))){
                  Profile profile = ProfileManager.getInstance().getProfile(possibleProfile);
                  if (profile!=null){
                    return profile;
                  }
                }
              } catch(Exception e){
View Full Code Here

TOP

Related Classes of ar.com.AmberSoft.iEvenTask.backend.entities.Profile

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.