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

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


     
      Collection events = (Collection) result.get(ParamsConst.DATA);
      // Se lanza la deteccion para los eventos que tienen alguna relacion establecida
      // y que no se encuentren actualmente en ejecucion
      for (Iterator iterator = events.iterator(); iterator.hasNext();) {
        Event event = (Event) iterator.next();
        Set relations = event.getRelationsAvaiable();
        if ((activeProcesses.get(event.getId())==null) && (relations!=null) && (relations.size()>0)){
          activeProcesses.put(event.getId(), factory.getProcess(event));
        }
      }
      transaction.commit();
      new BackgroundEventController(this);
      logger.debug("Fin BackgroundEventController");
View Full Code Here


  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();
View Full Code Here

  @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));
 
View Full Code Here

  @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.Event

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.