Package com.gadglet.core.GadgletResponse

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


        record.addItemKeyField(invitation.getInvitationId());
        record.addItemField(ProfileFields.PROFILE_INVITED_BY.getParamName(), invitation.getInvitedBy());
        UserProfile profile = UserProfilesUtils.getProfileById(invitation.getInvitedBy());
       
        if(profile!=null && !profile.isPrivate()){
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
          if( profile.getPhotoUrl()!=null &&  profile.getPhotoUrl().length()>0)
            record.addItemField(ProfileFields.PROFILE_THUMBNAILURL.getParamName(), profile.getPhotoUrl());

        }
        else
View Full Code Here


        UserProfile profile = UserProfilesUtils.getProfileById(invitation.getInvitedBy());
       
        if(profile!=null && !profile.isPrivate()){
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
          if( profile.getPhotoUrl()!=null &&  profile.getPhotoUrl().length()>0)
            record.addItemField(ProfileFields.PROFILE_THUMBNAILURL.getParamName(), profile.getPhotoUrl());

        }
        else
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(),ProfPrivacyStatus.PRIVATE.getPrivacyStatus());
       
View Full Code Here

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

        }
        else
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(),ProfPrivacyStatus.PRIVATE.getPrivacyStatus());
       
        record.setContentName("myPendingInvitatos");
       
        record.setGadgetPermissions(false, false, false);
      }
View Full Code Here

      for(FriendsInvitation invitation: platformInvitations){
       
        ContentRecord record  = res.newItem();
       
        record.addItemKeyField(invitation.getInvitationId());
        record.addItemField(ProfileFields.PROFILE_INVITED_BY.getParamName(), invitation.getInvitedBy());
        UserProfile profile = UserProfilesUtils.getProfileById(invitation.getInvitedBy());
       
        if(profile!=null && !profile.isPrivate()){
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
          if( profile.getPhotoUrl()!=null &&  profile.getPhotoUrl().length()>0)
View Full Code Here

        record.addItemKeyField(invitation.getInvitationId());
        record.addItemField(ProfileFields.PROFILE_INVITED_BY.getParamName(), invitation.getInvitedBy());
        UserProfile profile = UserProfilesUtils.getProfileById(invitation.getInvitedBy());
       
        if(profile!=null && !profile.isPrivate()){
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
          if( profile.getPhotoUrl()!=null &&  profile.getPhotoUrl().length()>0)
            record.addItemField(ProfileFields.PROFILE_THUMBNAILURL.getParamName(), profile.getPhotoUrl());
        }
        else
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(),ProfPrivacyStatus.PRIVATE.getPrivacyStatus());
View Full Code Here

        UserProfile profile = UserProfilesUtils.getProfileById(invitation.getInvitedBy());
       
        if(profile!=null && !profile.isPrivate()){
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
          if( profile.getPhotoUrl()!=null &&  profile.getPhotoUrl().length()>0)
            record.addItemField(ProfileFields.PROFILE_THUMBNAILURL.getParamName(), profile.getPhotoUrl());
        }
        else
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(),ProfPrivacyStatus.PRIVATE.getPrivacyStatus());
               
        record.setContentName("myPendingInvitatos");
View Full Code Here

          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
          if( profile.getPhotoUrl()!=null &&  profile.getPhotoUrl().length()>0)
            record.addItemField(ProfileFields.PROFILE_THUMBNAILURL.getParamName(), profile.getPhotoUrl());
        }
        else
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(),ProfPrivacyStatus.PRIVATE.getPrivacyStatus());
               
        record.setContentName("myPendingInvitatos");
       
        record.setGadgetPermissions(false, false, false);
      }
View Full Code Here

        UserProfile profile = UserProfilesUtils.getProfileById(friends.getFriendId(request.getCurrentUserId()));
     
        record.addShareWith(profile.getProfileId());

        if(profile!=null && !profile.isPrivate())
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
        else
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), ProfileFields.PROFILE_NICKNAME.getParamName());

         
           
View Full Code Here

        record.addShareWith(profile.getProfileId());

        if(profile!=null && !profile.isPrivate())
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), profile.getNickName());
        else
          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), ProfileFields.PROFILE_NICKNAME.getParamName());

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

          record.addItemField(ProfileFields.PROFILE_NICKNAME.getParamName(), ProfileFields.PROFILE_NICKNAME.getParamName());

         
           
        if( profile.getPhotoUrl()!=null &&  profile.getPhotoUrl().length()>0)
          record.addItemField(ProfileFields.PROFILE_THUMBNAILURL.getParamName(), profile.getPhotoUrl());
       
        for (SharedItemReff share : shares) {
          if (share.getSharedWithId().equals(profile.getProfileId()))
              record.addShareType(share.getSharingType());
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.