Package eu.planets_project.services.datatypes

Examples of eu.planets_project.services.datatypes.Event


            .content(resolverLink).permanentUri(resDo.getPermanentUri()).build();

    // check if resDo has an ingest event
    assertTrue(DigitalObjectUtils.hasEvent(resDo, JcrDigitalObjectManagerImpl.INGEST_EVENT));
    // add an ingest event from resDo to the expectedStoreDigitalObject
    Event ingestEvent = DigitalObjectUtils.getEventBySummary(
        resDo, JcrDigitalObjectManagerImpl.INGEST_EVENT);   
    expectedStoreDigitalObject = DigitalObjectUtils.addEvent(expectedStoreDigitalObject, ingestEvent);

    // except content and permanent URI resDo and expectedStoreDigitalObject
    // should be equal
View Full Code Here


    DigitalObject object = createDigitalObject();
    // store and retrieve content
    DigitalObject resDo = dom.store(PERMANENT_URI_PATH, object, true);

    // change digital object parameters
    Event addEvent = new Event(NEW_SUMMARY, "datetime3", 12.35d, agent, propList);

    // this is a digital object we expect after store method.
    // we have to add the permanent URI and content after store method to check for equality
    DigitalObject expectedStoreDigitalObject = new DigitalObject.Builder(object)
        .permanentUri(resDo.getPermanentUri())
        .format(NEWFORMAT).build();

    // add an ingest event from resDo to the expectedStoreDigitalObject
    Event ingestEvent = DigitalObjectUtils.getEventBySummary(resDo,
        JcrDigitalObjectManagerImpl.INGEST_EVENT);   
    expectedStoreDigitalObject = DigitalObjectUtils.addEvent(expectedStoreDigitalObject, ingestEvent);
    expectedStoreDigitalObject = DigitalObjectUtils.addEvent(expectedStoreDigitalObject, addEvent);   

    // try update existing digital object with parameters from new digital object that is null
View Full Code Here

    }
   
    // fill events
    Iterator<Event> iterEvents = o.getEvents().iterator();
    while (iterEvents.hasNext()) {
      Event event = iterEvents.next();
      if (event != null)
        fillEvent(event);
    }           
  }
View Full Code Here

  servicePerformanceHelper.stop();

  // Add information about the migration event to the digital object.
  final DateFormat defaultDateFormat = DateFormat.getDateInstance();
  final Event event = new Event(eventSummary, defaultDateFormat
    .format(migrationStartTime), migrationDuration, agent,
    servicePerformanceHelper.getPerformanceProperties());
  builder.events(event);

  final DigitalObject resultObject = builder.build();
View Full Code Here

TOP

Related Classes of eu.planets_project.services.datatypes.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.