Examples of CommunityMemberSerializer


Examples of com.ibm.sbt.services.client.connections.communities.serializers.CommunityMemberSerializer

    }
    String url = CommunityUrls.COMMUNITY_MEMBERS.format(this, CommunityUrls.getCommunityUuid(communityUuid));

    Object communityPayload;
    Member member = new Member(this, contributorId);
    CommunityMemberSerializer serializer = new CommunityMemberSerializer(member);
    communityPayload = serializer.createPayload();
    Response response = createData(url, parameters, communityPayload);
    checkResponseCode(response, HTTPCode.CREATED);
  }
View Full Code Here

Examples of com.ibm.sbt.services.client.connections.communities.serializers.CommunityMemberSerializer

      member.setRole("member"); //default role is member
    }
    member.setRole("member");
   
    Object communityPayload;
    CommunityMemberSerializer serializer = new CommunityMemberSerializer(member);
    communityPayload = serializer.createPayload();
    String url = CommunityUrls.COMMUNITY_MEMBERS.format(this,CommunityUrls.getCommunityUuid(communityUuid));
    Response response = createData(url, parameters, communityPayload);
    checkResponseCode(response, HTTPCode.CREATED);
  }
View Full Code Here

Examples of com.ibm.sbt.services.client.connections.communities.serializers.CommunityMemberSerializer

    parameters.put("userid", member.getUserid());
    parameters.put("email", member.getEmail());

    Object memberPayload;
    CommunityMemberSerializer serializer = new CommunityMemberSerializer(member);
    memberPayload = serializer.updatePayload();
    String url = CommunityUrls.COMMUNITY_MEMBERS.format(this, CommunityUrls.getCommunityUuid(communityUuid));
    Response response = updateData(url, parameters, memberPayload, null);
    checkResponseCode(response, HTTPCode.OK);
  }
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.