Package com.liferay.socialnetworking.model

Examples of com.liferay.socialnetworking.model.WallEntry


  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    WallEntry wallEntry = null;

    try {
      wallEntry = (WallEntry)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long pk = wallEntry.getPrimaryKey();

    if (getPrimaryKey() == pk) {
      return true;
    }
    else {
View Full Code Here


      return;
    }

    long wallEntryId = ParamUtil.getLong(actionRequest, "wallEntryId");

    WallEntry wallEntry = null;

    try {
      wallEntry = WallEntryLocalServiceUtil.getWallEntry(wallEntryId);
    }
    catch (Exception e) {
      return;
    }

    if (wallEntry.getGroupId() != themeDisplay.getScopeGroupId()) {
      return;
    }

    Group group = GroupLocalServiceUtil.getGroup(
      themeDisplay.getScopeGroupId());
View Full Code Here

    int activityType = activity.getType();

    // Link

    WallEntry wallEntry = WallEntryLocalServiceUtil.getWallEntry(
      activity.getClassPK());

    String link =
      themeDisplay.getPortalURL() +
        themeDisplay.getPathFriendlyURLPublic() + StringPool.SLASH +
          HtmlUtil.escapeURL(receiverUser.getScreenName()) +
            "/profile/-/wall/" + activity.getClassPK();

    // Title

    String title = StringPool.BLANK;

    if (activityType == WallActivityKeys.ADD_ENTRY) {
      title = themeDisplay.translate(
        "activity-social-networking-wall-add-entry",
        new Object[] {creatorUserName, receiverUserName});
    }

    // Body

    StringBuilder sb = new StringBuilder();

    sb.append("<a href=\"");
    sb.append(link);
    sb.append("\">");
    sb.append(HtmlUtil.escape(cleanContent(wallEntry.getComments())));
    sb.append("</a>");

    String body = sb.toString();

    return new SocialActivityFeedEntry(link, title, body);
View Full Code Here

TOP

Related Classes of com.liferay.socialnetworking.model.WallEntry

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.