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

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


      Collection<Relation> relaciones = (Collection<Relation>) result.get(ParamsConst.DATA);
      Iterator<Relation> itRelaciones = relaciones.iterator();
      while (itRelaciones.hasNext()) {
        Relation relation = (Relation) itRelaciones.next();
        if (relation instanceof RelationWithActionCreateTask) {
          RelationWithActionCreateTask create = (RelationWithActionCreateTask) relation;
          create.setTarea(null);
        }
        if (relation instanceof RelationWithModifyStateTask) {
          RelationWithModifyStateTask modify = (RelationWithModifyStateTask) relation;
          Collection tareas = modify.getTareas();
          if (tareas!=null){
View Full Code Here


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

  protected void addRelationCreate(Collection list) {
    RelationWithActionCreateTask relation = new RelationWithActionCreateTask();
    relation.setName("Relacion" + relation.getId().toString());
   
    Event event;
    Random random = new Random();
    int intRandom = random.nextInt(4);
    switch (intRandom) {
    case 1:
      event = new EventLDAP();
      break;
    case 2:
      event = new EventFiles();
      break;
    case 3:
      event = new EventLogs();
      break;
    case 4:
      event = new EventServices();
      break;
    default:
      event = new EventLDAP();
      break;
    }
    relation.setEvent(event);
    list.add(relation);
  }
View Full Code Here

public class UpdateRelationCreateTaskService extends
    CreateRelationCreateTaskService {
 
  @Override
  public Entity getEntity(Map paramsthrows Exception {
    RelationWithActionCreateTask relation = (RelationWithActionCreateTask) super.getEntity(params);
    relation.setId((Integer) params.get(ParamsConst.ID));
    return relation;
  }
View Full Code Here

    return null;
  }

  @Override
  public Entity getEntity(Map paramsthrows Exception {
    RelationWithActionCreateTask relation = new RelationWithActionCreateTask();
    String eventId = (String) params.get(ParamsConst.EVENT);
    Event event = getEvent(eventId);
    relation.setEvent(event);
    relation.setName((String) params.get(ParamsConst.NAME));
    relation.setUser((String) params.get(ParamsConst.USER));
    setVisibles(params, relation);
    return relation;
  }
View Full Code Here

TOP

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

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.