Package com.iqser.core.model

Examples of com.iqser.core.model.Content.addAttribute()


  public void testPerformActionPostContent() throws IQserTechnicalException, IOException {
    //create facebook note
    String contentUrl = URLUtils.makeContentURL("122788341354", "note");
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("subject", "note subject", Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("message", "note message", Attribute.ATTRIBUTE_TYPE_TEXT));
   
    //check if documents exists in object graph
    assertTrue(repo.getContentByProvider(fbcp.getId(), true).size() == 0);
       
View Full Code Here


  public void testPerformActionPostContent() throws IQserTechnicalException, IOException {
    //create facebook note
    String contentUrl = URLUtils.makeContentURL("122788341354", "note");
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("subject", "note subject", Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("message", "note message", Attribute.ATTRIBUTE_TYPE_TEXT));
   
    //check if documents exists in object graph
    assertTrue(repo.getContentByProvider(fbcp.getId(), true).size() == 0);
       
    //expected behavior
View Full Code Here

    String message = "\u003cimg class=\"img\" src=\"http://photos-h.ak.fbcdn.net/hphotos-ak-snc1/5650_98675398379_6628568379_2126294_254285_a.jpg\" />\u003cimg class=\"img\" src=\"http://photos-c.ak.fbcdn.net/hphotos-ak-snc1/5650_98675293379_6628568379_2126292_547965_a.jpg\" />Facebook for iPhone 3.0 is coming very soon.  I can't predict an exact date when I will submit to Apple, but I can say that I am about 98\u0025 done.  So what's new in this update?\u003cBR />\u003cBR />1. The "new" News Feed\u003cBR />2. Like\u003cBR />3. Events (including the ability to RSVP)\u003cBR />4. Notes\u003cBR />5. Pages\u003cBR />6. Create new photo albums\u003cBR />7. Upload photos to any album\u003cBR />8. Zoom into photos\u003cBR />9. Easier photo tagging\u003cBR />10. Profile Pictures albums\u003cBR />11. A new home screen for easy access to all your stuff, search, and notifications\u003cBR />12. Add your favorite profiles and pages to the home screen\u003cBR />13. Better Notifications (they link to the comments so you can reply)\u003cBR />14. Quickly call or text people right from the Friends page\u003cBR />15. Messages you are typing will be restored if you quit or are interrupted by a phone call\u003cBR />\u003cBR />The one feature everyone is asking for, Push Notifications, is in development but it won't make it into 3.0.  You can expect it in a 3.1 update later this summer.\u003cBR />\u003cBR />When I have submitted the app to Apple I will let you all know!\u003cBR />\u003cBR />- Joe\u003cBR />";

    // create facebook post
    String contentUrl = URLUtils.makeContentURL(fbid, "note");
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("subject", subject,
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("message", message,
        Attribute.ATTRIBUTE_TYPE_TEXT));

    // check if documents exists in object graph
View Full Code Here

    // create facebook post
    String contentUrl = URLUtils.makeContentURL(fbid, "note");
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("subject", subject,
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("message", message,
        Attribute.ATTRIBUTE_TYPE_TEXT));

    // check if documents exists in object graph
    assertTrue(repo.getContentByProvider(providerID, true).size() == 0);
View Full Code Here

    String STATUS_FBID = "122788341354";

    // create facebook post
    String contentUrl = URLUtils.makeContentURL(STATUS_FBID, ContentTypeEnum.STATUS.name());
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("message", "test status message",
        Attribute.ATTRIBUTE_TYPE_TEXT));

    // check if documents exists in object graph
    assertTrue(repo.getContentByProvider(providerID, true).size() == 0);
View Full Code Here

    // create facebook post
    String contentUrl = URLUtils.makeContentURL(STATUS_FBID,
        ContentTypeEnum.EVENT.name());
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("owner", "George Boosley",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("name", "TestEvent",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("description", "some test event",
        Attribute.ATTRIBUTE_TYPE_TEXT));
View Full Code Here

    String contentUrl = URLUtils.makeContentURL(STATUS_FBID,
        ContentTypeEnum.EVENT.name());
    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("owner", "George Boosley",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("name", "TestEvent",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("description", "some test event",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("startTime", tomorrow + "",
        Attribute.ATTRIBUTE_TYPE_TEXT));
View Full Code Here

    Content content = createDummyContentFromUrl(contentUrl);
    content.addAttribute(new Attribute("owner", "George Boosley",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("name", "TestEvent",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("description", "some test event",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("startTime", tomorrow + "",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("endTime", tomorrowX2 + "",
        Attribute.ATTRIBUTE_TYPE_TEXT));
View Full Code Here

        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("name", "TestEvent",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("description", "some test event",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("startTime", tomorrow + "",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("endTime", tomorrowX2 + "",
        Attribute.ATTRIBUTE_TYPE_TEXT));

    // check if documents exists in object graph
View Full Code Here

        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("description", "some test event",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("startTime", tomorrow + "",
        Attribute.ATTRIBUTE_TYPE_TEXT));
    content.addAttribute(new Attribute("endTime", tomorrowX2 + "",
        Attribute.ATTRIBUTE_TYPE_TEXT));

    // check if documents exists in object graph
    assertTrue(repo.getContentByProvider(providerID, true).size() == 0);
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.