Package org.dmd.dmp.server.extended

Examples of org.dmd.dmp.server.extended.DMPEvent


        super(new DMPEventDMO(mods), org.dmd.dmp.server.generated.DmpSchemaAG._DMPEvent);
    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:470)
    public DMPEvent getModificationRecorder(){
        DMPEvent rc = new DMPEvent();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here


    public DMPEventDMW(DMPEventDMO obj) {
        super(obj, org.dmd.dmp.server.generated.DmpSchemaAG._DMPEvent);
    }

    public DMPEvent cloneIt() {
        DMPEvent rc = new DMPEvent();
        rc.setDmcObject(getDMO().cloneIt());
        return(rc);
    }
View Full Code Here

  ///////////////////////////////////////////////////////////////////////////
  // OBJECT MODIFICATION HANDLING
 
  private void processSetRequest(SetRequest request){
    SetResponse response = null;
    DMPEvent event = null;
   
    if (request.isTrackingEnabled())
      logger.trace("Processing set request for: " + request.getTarget().getKeyAsString());
   
    DmwNamedObjectWrapper wrapper = theCache.get(request.getTarget().getName());
View Full Code Here

  }
 
  ///////////////////////////////////////////////////////////////////////////
 
  private DMPEvent createEvent(DMPEventTypeEnum type, DmwNamedObjectWrapper wrapper, Integer originatorID, boolean track, boolean notifyOriginator){
        DMPEvent event = new DMPEvent(type, wrapper);
        if (originatorID != null)
          event.setOriginatorID(originatorID);
        event.setNotifyOriginator(notifyOriginator);
        event.setTrackingEnabled(track);
    return(event);
  }
View Full Code Here

        event.setTrackingEnabled(track);
    return(event);
  }
 
  private DMPEvent createModifyEvent(SetRequest request, DmwNamedObjectWrapper wrapper){
        DMPEvent event = new DMPEvent(request);
        if (request.getOriginatorID() != null)
          event.setOriginatorID(request.getOriginatorID());
        event.setNotifyOriginator(request.isNotifyOriginator());
        event.setTrackingEnabled(request.isTrackingEnabled());
        event.setSourceObjectClass(wrapper.getConstructionClass());
    return(event);
  }
View Full Code Here

        event.setSourceObjectClass(wrapper.getConstructionClass());
    return(event);
  }
 
  private void sendEvent(DMPEventTypeEnum type, DmwNamedObjectWrapper wrapper, Integer originatorID, boolean track, boolean notifyOriginator){
        DMPEvent event = new DMPEvent(type, wrapper);
        if (originatorID != null)
          event.setOriginatorID(originatorID);
        event.setNotifyOriginator(notifyOriginator);
        event.setTrackingEnabled(track);
    forwardEvent(event);
  }
View Full Code Here

          return;
        }
       
        // We slice the event if required i.e. if slice information is available, we will only
        // forward the event if any of the attributes in the slice have changed or been created
        DMPEvent forwardedEvent = null;
        if (sliceInfo == null)
          forwardedEvent = event.clone();
        else
          forwardedEvent = event.getSlice(sliceInfo);
       
        if (forwardedEvent == null){
          if (event.isTrackingEnabled())
            LoggerFactory.getLogger(getClass()).debug("Dropping event due to slicing: " + event.toOIF());
          return;
        }
         
        // All events are tagged with the unique listener associated with this cache listener.
        forwardedEvent.setListenerID(listenerId);
       
        eventHandler.handleEvent(forwardedEvent);
    }
View Full Code Here

TOP

Related Classes of org.dmd.dmp.server.extended.DMPEvent

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.