Examples of newID()


Examples of org.apache.abdera.model.Entry.newId()

    public static void main(String... args) throws Exception {

        Abdera abdera = new Abdera();
        Entry entry = abdera.newEntry();
        entry.newId();
        entry.setTitle("test");
        entry.setContentAsHtml("<b>foo</b>");
        entry.addAuthor("James");
        entry.addCategory("term");
        entry.writeTo("json", System.out);
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

        Feed f1 = abdera.newFeed();
        Feed f2 = abdera.newFeed();

        // Create a couple of sharing-enabled entries
        Entry e1 = SharingHelper.createEntry(abdera, "jms", f1);
        e1.newId();

        Entry e2 = SharingHelper.createEntry(abdera, "jms", f1);
        e2.newId();

        Entry e3 = (Entry)e2.clone();
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

        // Create a couple of sharing-enabled entries
        Entry e1 = SharingHelper.createEntry(abdera, "jms", f1);
        e1.newId();

        Entry e2 = SharingHelper.createEntry(abdera, "jms", f1);
        e2.newId();

        Entry e3 = (Entry)e2.clone();
        f2.addEntry(e3);

        // concurrent modification of the same entry by two different users in two different feeds
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

        Abdera abdera = new Abdera();
        Entry e1 = abdera.newEntry();
        Entry e2 = abdera.newEntry();

        e1.newId();
        e2.newId();

        // Entry e2 is a reply to Entry e1
        ThreadHelper.addInReplyTo(e2, e1);

        // Get the in-reply-to information
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

        return createEntry(abdera, by, null);
    }

    public static Entry createEntry(Abdera abdera, String by, Feed feed) {
        Entry entry = feed != null ? feed.addEntry() : abdera.newEntry();
        entry.newId();
        Sync sync = getSync(entry, true);
        sync.setId(entry.getId().toString());
        sync.setUpdates(1);
        History history = sync.addHistory();
        history.setSequence(sync.getUpdates());
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

    return createEntry(abdera, by, null);
  }
 
  public static Entry createEntry(Abdera abdera, String by, Feed feed) {
    Entry entry = feed != null ? feed.addEntry() : abdera.newEntry();
    entry.newId();
    Sync sync = getSync(entry,true);
    sync.setId(entry.getId().toString());
    sync.setUpdates(1);
    History history = sync.addHistory();
    history.setSequence(sync.getUpdates());
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory.newID()

      if (normalize) id.setNormalizedValue(value);
      else id.setValue(value);
      return id;
    } else {
      FOMFactory fomfactory = (FOMFactory) factory;
      IRIElement iri = fomfactory.newID(this);
      iri.setValue((normalize) ? URIHelper.normalize(value) : value);
      return iri;
    }
  }
 
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.newId()

         protected void invokeApplication() throws Exception
         {
            Conversation.instance().begin();

            DocumentStore store = (DocumentStore) getValue("#{org.jboss.seam.document.documentStore}");
            String docId = store.newId();

            Contexts.getSessionContext().set("docId", docId);

            DocumentData documentData = new ByteArrayDocumentData("base", UIDocument.PDF, new byte[100]);
            store.saveData(docId, documentData);
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.newId()

      }
     
      if (sendRedirect)
      {
         DocumentStore store = DocumentStore.instance();
         String id = store.newId();

         String url = store.preferredUrlForContent(baseName, type.getExtension(), id);
         url = Manager.instance().encodeConversationId(url, viewId);

         store.saveData(id, documentData);
View Full Code Here

Examples of org.jboss.seam.pdf.DocumentStore.newId()

            throw new RuntimeException(e);
        }

        if (sendRedirect) {
            DocumentStore store = DocumentStore.instance();
            id = store.newId();

            ResponseWriter response = context.getResponseWriter();
            response.write("<!DOCTYPE composition PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" >");
            response.startElement("html", this);
            response.writeAttribute("xmlns", "http://www.w3.org/1999/xhtml", null);
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.