Package org.onesocialweb.model.activity

Examples of org.onesocialweb.model.activity.ActivityObject


    // First we clear all objects
    getPanel().clear();

    // And we add them one by one
    while (iterator.hasNext()) {
      ActivityObject object = iterator.next();
      render(object);
    }

    // Notify our parent that our size has changed
    // TODO not ideal to do this here
View Full Code Here


    final AtomFactory atomFactory = service.getAtomFactory();

    Date now = new Date();
    String status = textareaUpdate.getText();

    ActivityObject object = service.getActivityFactory().object(
        ActivityObject.STATUS_UPDATE);
    object.addContent(service.getAtomFactory().content(status,
        "text/plain", null));
    object.setPublished(now);

    // the basics
    ActivityEntry entry = service.getActivityFactory().entry();
    entry.setTitle(status);
    entry.addVerb(service.getActivityFactory().verb(ActivityVerb.POST));
View Full Code Here

    // Init attachment dialogs
    pictureChooserDialog = new PictureChooserDialog(new PictureHandler() {
      public void handlePicture(String pictureUrl) {
        if (pictureUrl != null && pictureUrl.length() > 0) {
          OswService service = OswClient.getInstance().getService();
          ActivityObject object = service.getActivityFactory()
              .object(ActivityObject.PICTURE);
          object.addLink(service.getAtomFactory().link(pictureUrl,
              "alternate", null, null));
          pictureAttachments.add(object);
        }
      }
    });
View Full Code Here

TOP

Related Classes of org.onesocialweb.model.activity.ActivityObject

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.