Package com.ibm.sbt.services.client.connections.common.serializers

Examples of com.ibm.sbt.services.client.connections.common.serializers.MemberSerializer


    member.setComponent(Member.COMPONENT_ACTIVITIES);
    member.setContributor("memberId");
    member.setRole("role");
    member.setType("type");
   
    MemberSerializer serializer = new MemberSerializer(member);
   
    System.out.println(serializer.generateCreate());
   
   
  }
View Full Code Here


    }
  }

  protected void createMembers(String requestUrl, List<Member> members, Map<String, String> parameters) throws ClientServicesException {
    try {
      MemberSerializer serializer = new MemberSerializer(members.get(0));

      Response response = createData(requestUrl, parameters, getAtomHeaders(), serializer.generateMemberFeed(members));
      //checkResponseCode(response, HTTPCode.CREATED);
    } catch (ClientServicesException e) {
      throw e;
    } catch (Exception e) {
      throw new ClientServicesException(e);
View Full Code Here

  }

  protected void deleteMembers(String requestUrl, List<Member> members, Map<String, String> parameters) throws ClientServicesException {
    try {
      MemberSerializer serializer = new MemberSerializer(members.get(0));
      Response response = delete(requestUrl, parameters, getAtomHeaders(), null, serializer.generateMemberFeed(members));
      checkResponseCode(response, HTTPCode.OK);
    } catch (ClientServicesException e) {
      throw e;
    } catch (Exception e) {
      throw new ClientServicesException(e);
View Full Code Here

    }
  }

  protected Member createMemberEntity(String requestUrl, Member member, Map<String, String> parameters) throws ClientServicesException {
    try {
      MemberSerializer serializer = new MemberSerializer(member);
      Response response = createData(requestUrl, parameters, getAtomHeaders(), serializer.generateCreate());
      checkResponseCode(response, HTTPCode.CREATED);
      return updateMemberEntityData(member, response);
    } catch (ClientServicesException e) {
      throw e;
    } catch (Exception e) {
View Full Code Here

    }
  }

  protected Member updateMemberEntity(String requestUrl, Member member, Map<String, String> parameters) throws ClientServicesException {
    try {
      MemberSerializer serializer = new MemberSerializer(member);
      Response response = putData(requestUrl, parameters, getAtomHeaders(), serializer.generateUpdate(), null);
      checkResponseCode(response, HTTPCode.OK);
      return updateMemberEntityData(member, response);
    } catch (ClientServicesException e) {
      throw e;
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.connections.common.serializers.MemberSerializer

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.