Examples of Publisher


Examples of buri.ddmsence.ddms.resource.Publisher

          entity = (Organization) inputLoop(Organization.class);
        else if (Service.getName(version).equals(entityType))
          entity = (Service) inputLoop(Service.class);
        else if (Unknown.getName(version).equals(entityType))
          entity = (Unknown) inputLoop(Unknown.class);
        components.add(new Publisher(entity, null, buildSecurityAttributes("publisher")));

        // Skip all optional fields in the metacard (other producers, description, processingInfo,
        // revisionRecall, recordsManagementInfo, and noticeList.

        return (new MetacardInfo(components, buildSecurityAttributes("subject")));
      }
    });
    CONSTRUCTOR_BUILDERS.put(Identifier.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String qualifier = readString("the qualifier [testQualifier]");
        String value = readString("the value [testValue]");
        return (new Identifier(qualifier, value));
      }
    });
    CONSTRUCTOR_BUILDERS.put(Title.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String text = readString("the title text [testTitle]");
        return (new Title(text, buildSecurityAttributes("title")));
      }
    });
    CONSTRUCTOR_BUILDERS.put(Description.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String text = readString("the description text [testDescription]");
        SecurityAttributes attr = buildSecurityAttributes("description");
        return (new Description(text, attr));
      }
    });
    CONSTRUCTOR_BUILDERS.put(Dates.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String created = readString("the created date [2010]");
        String posted = readString("the posted date [2010]");
        String validTil = readString("the validTil date [2010]");
        String infoCutOff = readString("the infoCutOff date [2010]");
        String approvedOn = readString("the approvedOn date [2010]");
        String receivedOn = readString("the receivedOn date [2010]");
        return (new Dates(null, created, posted, validTil, infoCutOff, approvedOn, receivedOn));
      }
    });
    CONSTRUCTOR_BUILDERS.put(AbstractProducerRole.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        DDMSVersion version = DDMSVersion.getCurrentVersion();
        String producerType = readString("the producer type [creator]");
        String entityType = readString("the entity type [organization]");
        String pocTypes = readString("the pocType [DoD-Dist-B]");
        SecurityAttributes attr = buildSecurityAttributes("producer");

        IRoleEntity entity = null;
        if (Person.getName(version).equals(entityType))
          entity = (Person) inputLoop(Person.class);
        else if (Organization.getName(version).equals(entityType))
          entity = (Organization) inputLoop(Organization.class);
        else if (Service.getName(version).equals(entityType))
          entity = (Service) inputLoop(Service.class);
        else if (Unknown.getName(version).equals(entityType))
          entity = (Unknown) inputLoop(Unknown.class);

        if (Creator.getName(version).equals(producerType))
          return (new Creator(entity, null, attr));
        if (Contributor.getName(version).equals(producerType))
          return (new Creator(entity, null, attr));
        if (Publisher.getName(version).equals(producerType))
          return (new Publisher(entity, null, attr));
        if (PointOfContact.getName(version).equals(producerType))
          return (new PointOfContact(entity, Util.getXsListAsList(pocTypes), attr));
        throw new InvalidDDMSException("Unknown producerType: " + producerType);
      }
    });
View Full Code Here

Examples of com.alibaba.wasp.messagequeue.Publisher

   */
  @Override
  public boolean prepare() {
    for (Map.Entry<EntityGroupInfo, List<Action>> entry : transcations
        .entrySet()) {
      Publisher pub = new Publisher(entry.getKey(), action);
      String entityGroupName = entry.getKey().getEntityGroupNameAsString();
      pubs.put(entityGroupName, pub);
      for (Action action : entry.getValue()) {
        try {
          List<MessageID> messages = preparedMessage.get(entityGroupName);
          if (messages == null) {
            messages = new ArrayList<MessageID>();
          }
          messages.add(pub.doAsynchronous((Message) action));
          preparedMessage.put(entityGroupName, messages);
        } catch (IOException e) {
          return false;
        }
      }
View Full Code Here

Examples of com.casamind.adware.server.domain.Publisher

        log.info("Created new slot for company:" + company.getLastname());
        log.info(entity.toString());
      } else {
        log.warning("Did not find a company with attendee: " + attendee);
        log.info("Trying to a find a publisher with attendee: " + attendee);
        Publisher publisher = DatastoreProxy.getPublisherByLogin(attendee);
        if (publisher != null) {
          log.info("Found publisher with attendee: " + publisher.getFirstname() + " " + publisher.getLastname());
          Slot slot = new Slot();
          slot.setOwnerId(publisher.getId());
          log.info("DTSTART :" + startDate);
          Date parsedStartDate = icalFormatter.parse(startDate);
          log.info("Parsed start date :" + logFormatter.format(parsedStartDate));
          log.info("DTEND :" + endDate);
          Date parsedEndDate = icalFormatter.parse(endDate);
          log.info("Parsed end date :" + logFormatter.format(parsedEndDate));
          slot.setStartDate(parsedStartDate);
          slot.setEndDate(parsedEndDate);
          slot.setStatus(SlotStatus.Ordered);
          long slotInterval = parsedEndDate.getTime() - parsedStartDate.getTime();
          log.info("Interval in miliseconds: " + slotInterval);
          long slotDurationInMilisecondes = (long) duration * 60 * 1000;
          log.info("Default slot duration in miliseconds: " + slotDurationInMilisecondes);
          long nbSlots = slotInterval / slotDurationInMilisecondes;
          log.info("Number of slots (Long): " + nbSlots);
          slot.setNbSlots((int) nbSlots);
          slot.setPrice(price);
          Slot entity = DatastoreProxy.createSlot(slot);
          log.info("Created new slot for publisher:" + publisher.getFirstname() + " " + publisher.getLastname());
          log.info(entity.toString());
        } else {
          log.warning("Could not find publisher: " + attendee);
        }
        response.getWriter().println(logFormatter.format(new Date()) + " : Finshed! See the server logs for debug.");
View Full Code Here

Examples of com.dhemery.publishing.Publisher

    public IosSdk sdk() {
        return sdk.get();
    }

    private static Publisher defaultPublisher() {
        return new Publisher() {
            @Override
            public void publish(Object publication) {}
        };
    }
View Full Code Here

Examples of com.esri.gpt.framework.security.principal.Publisher

        // skip if still no native resource
        if (nativeResource!=null) {
          String content = nativeResource.getContent();
          String sourceUri = nativeResource.getSourceUri().asString();

          Publisher publisher = createPublisherOfRepository();

          PublicationRequest publicationRequest = createPublicationRequest(publisher, content, sourceUri);

          publicationRequest.publish();
        }
View Full Code Here

Examples of com.odb.publisher.dto.Publisher

    xs = new XStream();
    xs.alias("Publisher", Publisher.class);
    xs.alias("DataSourceDetails", DataSourceDetails.class);
    xs.alias("AxisDetail", AxisDetails.class);
    xs.alias("SeriesJob", SeriesJob.class);
    ps = new Publisher();
    // dsConfigList = new ArrayList<DataSourceConfiguration>();
  }
View Full Code Here

Examples of flagthis.pubsubhubbub.Publisher

import flagthis.pubsubhubbub.Web;

public class Test {

  public static void testPublisher() throws Exception {
    Publisher publisher = new Publisher();
    String hub = "http://pubsubhubbub.appspot.com/publish";
    int status = publisher
        .execute(hub,
            "http://www.royans.net/rant/feed/");
    System.out.println("Return status : " + status);
    status = publisher
        .execute(hub,
            "http://www.royans.net/rant/feed/");

    status = publisher
        .execute(hub,
            "http://www.royans.net/rant/feed/");

    System.out.println("Return status : " + status);
  }
View Full Code Here

Examples of info.ganglia.gmetric4j.Publisher

          log.fine("Not sampling " + objectName + " attribute "
              + canonicalName + " as value is null");
        }
      }
      if (null != value) {
        Publisher gm = sampler.getPublisher();
        // log.finer("Announcing metric " + this.toString() + " value="
        // + value );
        gm.publish(process, publishName, value, getType(), getSlope(),
            sampler.getDelay(), getDMax(), getUnits());
      }

    } catch (javax.management.InstanceNotFoundException ex) {
      log.warning("Exception when getting " + objectName + " "
View Full Code Here

Examples of net.celisdelafuente.java.Acacia.entity.Publisher

          author.create(a);
          author.refresh(a);
        }
      }
     
      Publisher p = new Publisher();
      if(!fPublisher.getValue().trim().isEmpty()) {
        p = p.getByName(conn, publisher,
            fPublisher.getValue().trim());
        Integer publisher_id = p.getId();
        if(publisher_id != 0 && publisher_id != null) {
          if(!p.getName().equalsIgnoreCase(fPublisher.getValue().trim()))
            publisher.update(p);
          publisher.refresh(p);
        } else {
          p = new Publisher(fPublisher.getValue().trim());
          publisher.create(p);
          publisher.refresh(p);
        }
      }
     
View Full Code Here

Examples of net.sourceforge.cruisecontrol.Publisher

    private List publishers = new ArrayList();

    public void publish(Element log) throws CruiseControlException {
        if (shouldPublish(log)) {
            for (Iterator iterator = publishers.iterator(); iterator.hasNext();) {
                Publisher publisher = (Publisher) iterator.next();
                publisher.publish(log);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.