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

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


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


        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){
            Iterator<Tarea> itTareas = tareas.iterator();
            while (itTareas.hasNext()) {
              Tarea tarea = (Tarea) itTareas.next();
              //tarea.set
View Full Code Here

      /*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){
          Iterator<Tarea> itTareas = tareas.iterator();
          while (itTareas.hasNext()) {
            Tarea tarea = (Tarea) itTareas.next();
            //tarea.set
View Full Code Here

public class CreateRelationModifyStateService extends CreateService {

  @Override
  public Entity getEntity(Map params) throws Exception {
    RelationWithModifyStateTask relation = new RelationWithModifyStateTask();
    String eventId = (String) params.get(ParamsConst.EVENT);
    Event event = getEvent(eventId);
    relation.setEvent(event);
   
    relation.setFromState((String) params.get(ParamsConst.FROM_STATE));
    relation.setToState((String) params.get(ParamsConst.TO_STATE));
 
    setTareas(params, relation);
   
    return relation; 
  }
View Full Code Here

TOP

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

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.