Package org.onesocialweb.model.activity

Examples of org.onesocialweb.model.activity.ActivityEntry.addObject()


    // the basics
    ActivityEntry entry = service.getActivityFactory().entry();
    entry.setTitle(status);
    entry.addVerb(service.getActivityFactory().verb(ActivityVerb.POST));
    entry.addObject(object);
    entry.setPublished(now);

    // add attachments if there are any
    for (ActivityObject current : pictureAttachments) {
      entry.addObject(current);
View Full Code Here


    entry.addObject(object);
    entry.setPublished(now);

    // add attachments if there are any
    for (ActivityObject current : pictureAttachments) {
      entry.addObject(current);
    }

    // Add recipients if there are any
    for (String recipient : shoutAttachmentPanel.getRecipients()) {
      entry.addRecipient(atomFactory.reply(null, recipient, null, 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.