Examples of addItemField()


Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

      ContentRecord record = response.newItem();

      record.addItemKeyField(item.getContentItemKey());
      record.addItemField(Params.MESSAGE.getParamName(), msg);
      record.addItemField(Params.PRIORITY.getParamName(), new Integer(
          item.getPriority()).toString());

      List<SharedItemReff> shares = item.getSharedItemReff();
      boolean isOwner = false;
      boolean isEditor = false;
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

          UserProfile owner = UserProfilesUtils.getProfileById(item
              .getOwnerId());

          if (owner != null && !owner.isPrivate()) {
            if (owner.getNickName() != null)
              record.addItemField(ProfileFields.PROFILE_NICKNAME
                  .getParamName(), owner.getNickName());
            if (owner.getPhotoUrl() != null
                && owner.getPhotoUrl().length() > 0)
              record.addItemField(
                  ProfileFields.PROFILE_THUMBNAILURL
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

            if (owner.getNickName() != null)
              record.addItemField(ProfileFields.PROFILE_NICKNAME
                  .getParamName(), owner.getNickName());
            if (owner.getPhotoUrl() != null
                && owner.getPhotoUrl().length() > 0)
              record.addItemField(
                  ProfileFields.PROFILE_THUMBNAILURL
                      .getParamName(), owner
                      .getPhotoUrl());

          }
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

    SimpleDateFormat df = new SimpleDateFormat("MMM/dd/yy hh:mm");
    String formatedDate = null;

    item.addItemKeyField(discussion.getContentItemKey());
    item.addItemField(Params.DISCUSSION_TEXT.getParamName(),
        discussion.getDiscussion());

    formatedDate = df.format(discussion.getCreation());

    if (formatedDate != null)
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

        discussion.getDiscussion());

    formatedDate = df.format(discussion.getCreation());

    if (formatedDate != null)
      item.addItemField(Params.DISCUSSION_MSD_DATE.getParamName(),
          formatedDate);
    else
      item.addItemField(Params.DISCUSSION_MSD_DATE.getParamName(), "");

    item.addItemField(Params.DISCUSSION_LEVEL.getParamName(), "0");
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

    if (formatedDate != null)
      item.addItemField(Params.DISCUSSION_MSD_DATE.getParamName(),
          formatedDate);
    else
      item.addItemField(Params.DISCUSSION_MSD_DATE.getParamName(), "");

    item.addItemField(Params.DISCUSSION_LEVEL.getParamName(), "0");

    item.setContentName(Params.DISCUSSION_TEXT.getParamName());
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

      item.addItemField(Params.DISCUSSION_MSD_DATE.getParamName(),
          formatedDate);
    else
      item.addItemField(Params.DISCUSSION_MSD_DATE.getParamName(), "");

    item.addItemField(Params.DISCUSSION_LEVEL.getParamName(), "0");

    item.setContentName(Params.DISCUSSION_TEXT.getParamName());

    DomainUser writer = DomainUserUtils.getDomainUserByUniqueId(discussion
        .getOwnerId(), request.getCurrentDomainUser().getAccount());
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

    item.setContentName(Params.DISCUSSION_TEXT.getParamName());

    DomainUser writer = DomainUserUtils.getDomainUserByUniqueId(discussion
        .getOwnerId(), request.getCurrentDomainUser().getAccount());

    item.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(),
        writer.getNickName());
    item.addItemField(ProfileFields.PROFILE_TITLE.getParamName(),
        writer.getTitle());

    if (writer.getPhotoUrl() != null && writer.getPhotoUrl().length() > 0)
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

    DomainUser writer = DomainUserUtils.getDomainUserByUniqueId(discussion
        .getOwnerId(), request.getCurrentDomainUser().getAccount());

    item.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(),
        writer.getNickName());
    item.addItemField(ProfileFields.PROFILE_TITLE.getParamName(),
        writer.getTitle());

    if (writer.getPhotoUrl() != null && writer.getPhotoUrl().length() > 0)
      item.addItemField(
          ProfileFields.PROFILE_THUMBNAILURL.getParamName(),
View Full Code Here

Examples of com.gadglet.core.GadgletResponse.ContentRecord.addItemField()

        writer.getNickName());
    item.addItemField(ProfileFields.PROFILE_TITLE.getParamName(),
        writer.getTitle());

    if (writer.getPhotoUrl() != null && writer.getPhotoUrl().length() > 0)
      item.addItemField(
          ProfileFields.PROFILE_THUMBNAILURL.getParamName(),
          writer.getPhotoUrl());

    item.setGadgetPermissions(discussion.isUserEdit(request),
        discussion.isOwnedByMe(request),
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.