Examples of newEntry()


Examples of org.apache.abdera.factory.Factory.newEntry()

     * Constructor the user will be using inside javaScript
     */
    public void jsConstructor() {
        abdera = new Abdera();
        Factory factory = abdera.getFactory();
        entry = factory.newEntry();
    }

    public String getClassName() {
        return "AtomEntry";
    }
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

     * @throws CarbonException
     */
    private Entry createEntry(NativeObject nativeEntry) throws CarbonException {
        Entry entry;
        Factory factory = abdera.getFactory();
        entry = factory.newEntry();

        // process authors
        // TODO persons
        Object authorProperty = ScriptableObject.getProperty(nativeEntry, "author");
        if (authorProperty instanceof String) {
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

    Element el = factory.newEmail();
    assertNotNull(el);
    el = factory.newEmail();
    el.setText("a");
    assertEquals(el.getText(), "a");
    Entry entry = factory.newEntry();
    assertNotNull(entry);
    entry = factory.newEntry();
    assertNotNull(entry);
    Element ee = factory.newExtensionElement(new QName("urn:foo", "bar", "b"));
    assertNotNull(ee);
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

    el = factory.newEmail();
    el.setText("a");
    assertEquals(el.getText(), "a");
    Entry entry = factory.newEntry();
    assertNotNull(entry);
    entry = factory.newEntry();
    assertNotNull(entry);
    Element ee = factory.newExtensionElement(new QName("urn:foo", "bar", "b"));
    assertNotNull(ee);
    assertEquals(ee.getQName(), new QName("urn:foo", "bar", "b"));
    Feed feed = factory.newFeed();
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

    @Override
    public Object transformMessage(MuleMessage message, String outputEncoding) throws TransformerException
    {
        Factory factory = Abdera.getInstance().getFactory();
        Entry entry = factory.newEntry();

        for (ExpressionArgument arg: arguments)
        {
            String argName = arg.getName();
            if (argName.equals("title"))
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

{
    public Entry newEvent()
    {
        Factory factory = Abdera.getInstance().getFactory();

        Entry entry = factory.newEntry();
        entry.setTitle("Some Event");
        entry.setContent("Foo bar");
        entry.setUpdated(new Date());
        entry.setId(factory.newUuidUri());
        entry.addAuthor("Dan Diephouse");
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

        AbderaClient client = new AbderaClient(abdera);
        String base = "http://localhost:9002" + basePath + "/";

        // Testing of entry creation
        IRI colUri = new IRI(base).resolve("customers");
        Entry entry = factory.newEntry();
        entry.setTitle("Hmmm this is ignored right now");
        entry.setUpdated(new Date());
        entry.addAuthor("Acme Industries");
        entry.setId(factory.newUuidUri());
        entry.setSummary("Customer document");
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

        feed.addAuthor(FEED_AUTHOR);

        // Get all blog posts and convert to Atom entries
        final List<BlogPost> blogEntries = getAllBlogPosts();
        for (BlogPost blogEntry : blogEntries) {
            final Entry entry = factory.newEntry();
            entry.setId(nextBlogID());
            entry.addAuthor(blogEntry.getAuthor());
            entry.setTitle(blogEntry.getTitle());
            entry.setContentAsHtml(blogEntry.getContent());
            entry.setUpdated(blogEntry.getUpdated());
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

        try {       
            AlertsType alerts = this.alerts.getAllNewAlerts("");
           
            for( Object alertObject : alerts.getAlert() ){        
                AlertType alert = ((AlertType)alertObject);
                Entry entry = factory.newEntry();
                entry.setTitle(alert.getTitle());
                //entry.(alert.getSummary());                   
                entry.addLink(alert.getAddress());
                entry.setPublished(dateFormatter.parse(alert.getDate()));
                       
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newEntry()

  public void testPost() throws Exception {
    System.out.println(">>>ContentNegotiationTest.testPost");
    // Testing of entry creation
    Factory factory = abdera.getFactory();
    String customerName = "Fred Farkle";
    Entry entry = factory.newEntry();
    entry.setTitle("customer " + customerName);
    entry.setUpdated(new Date());
    entry.addAuthor("Apache Tuscany");
    // ID created by collection.
    Content content = abdera.getFactory().newContent();
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.