Package com.ibm.sbt.services.client

Examples of com.ibm.sbt.services.client.ClientServicesException


   * @param Profile
   * @throws ProfileServiceException
   */
  public void createProfile(Profile profile) throws ClientServicesException {
    if (profile == null) {
      throw new ClientServicesException(null, Messages.InvalidArgument_3);
    }   
    Map<String, String> parameters = new HashMap<String,String>();
    String id = profile.getUserid();
    parameters.put(ProfileParams.userId.getParamName(id), id);
    Object createPayload = constructCreateRequestBody(profile);
View Full Code Here


   * @throws ProfileServiceException
   */
  @Override
  public void updateProfile(Profile profile) throws ClientServicesException {
    if (profile == null) {
      throw new ClientServicesException(null, Messages.InvalidArgument_3);
    }
    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put(OUTPUT, VCARD);
    parameters.put(FORMAT, FULL);
    String id = profile.getUserid();
View Full Code Here

   */
  @Override
  public Profile getProfile(String id, Map<String, String> parameters) throws ClientServicesException {
    // TODO: Do a cache lookup first. If cache miss, make a network call to get profile
    if (StringUtil.isEmpty(id)){
      throw new ClientServicesException(null, Messages.InvalidArgument_1);
    }
    String url = ProfileUrls.ADMIN_GET_PROFILES.format(this, ProfileParams.userId.get(id));
    return getProfileEntity(url, parameters);
  }
View Full Code Here

   * @throws ClientServicesException
   */
  public EntityList<Member> getMembers() throws ClientServicesException {
    ActivityService activityService = getActivityService();
    if (activityService == null) {
      throw new ClientServicesException(null, "No activity service associated with this activity.");
    }
    return activityService.getMembers(getActivityUuid());
  }
View Full Code Here

   * @return
   */
  public Member addMember(Member member) throws ClientServicesException {
    ActivityService activityService = getActivityService();
    if (activityService == null) {
      throw new ClientServicesException(null, "No activity service associated with this activity.");
    }
    return activityService.addMember(this, member);
  }
View Full Code Here

   * @return
   */
  public void addMembers(List<Member> members) throws ClientServicesException {
    ActivityService activityService = getActivityService();
    if (activityService == null) {
      throw new ClientServicesException(null, "No activity service associated with this activity.");
    }
    activityService.addMembers(this, members);
  }
View Full Code Here

   * @return
   */
  public Member getMember(String memberId) throws ClientServicesException {
    ActivityService activityService = getActivityService();
    if (activityService == null) {
      throw new ClientServicesException(null, "No activity service associated with this activity.");
    }
    return activityService.getMember(this, memberId);
  }
View Full Code Here

   * @return
   */
  public Member updateMember(Member member) throws ClientServicesException {
    ActivityService activityService = getActivityService();
    if (activityService == null) {
      throw new ClientServicesException(null, "No activity service associated with this activity.");
    }
    return activityService.updateMember(this, member);
  }
View Full Code Here

   * @return
   */
  public String deleteMember(Member member) throws ClientServicesException {
    ActivityService activityService = getActivityService();
    if (activityService == null) {
      throw new ClientServicesException(null, "No activity service associated with this activity.");
    }
    return activityService.deleteMember(this, member);
  }
View Full Code Here

   * @return
   */
  public String deleteMember(String memberId) throws ClientServicesException {
    ActivityService activityService = getActivityService();
    if (activityService == null) {
      throw new ClientServicesException(null, "No activity service associated with this activity.");
    }
    return activityService.deleteMember(getActivityUuid(), memberId, null);
  }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.ClientServicesException

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.