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

Examples of com.ibm.sbt.services.client.connections.forums.serializers.ForumSerializer.generateUpdate()


    }

    ForumSerializer serializer = new ForumSerializer(forum);
    String url = ForumUrls.FORUM.format(this, ForumUrls.forumPart(forum.getForumUuid()));

    Response response = updateData(url, null, serializer.generateUpdate(), null);
    checkResponseCode(response, HTTPCode.OK);
  }

  /**
   * To delete a recommendation of a post(topic or reply) in a forum,
View Full Code Here


      throw new ClientServicesException(null,"Topic object passed was null");
    }
    String url = ForumUrls.TOPIC.format(this, ForumUrls.topicPart(topic.getUid()));
   
    ForumSerializer serializer = new ForumSerializer(topic);
    Response response = getClientService().put(url, null, getAtomHeaders(), serializer.generateUpdate(),ClientService.FORMAT_NULL);
    checkResponseCode(response, HTTPCode.OK);
  }
 
  /**
   * To delete a topic from a forum, use the HTTP DELETE method.<bR>
View Full Code Here

      throw new ClientServicesException(null,"Reply object passed was null");
    }
   
    ForumSerializer serializer = new ForumSerializer(reply);
    String url = ForumUrls.REPLY.format(this, ForumUrls.replyPart(reply.getReplyUuid()));
    Response response = updateData(url, null, getAtomHeaders(), serializer.generateUpdate(), null);
    checkResponseCode(response, HTTPCode.OK);
  }

  /**
   * Because replies often have child replies associated with them, when you delete a reply from a forum,
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.