Package com.ibm.sbt.services.client.connections.files.serializer

Examples of com.ibm.sbt.services.client.connections.files.serializer.CommentSerializer


        } else {
            requestUri = FileUrls.USERLIBRARY_DOCUMENT_FEED.format(this,
                    FileUrlParts.accessType.get(accessType), FileUrlParts.userId.get(userId),
                    FileUrlParts.fileId.get(fileId));
        }
        String payload = new CommentSerializer(comment).generateCommentUpdatePayload();
        Response response = createData(requestUri, null, new ClientService.ContentString(payload,
                CommonConstants.APPLICATION_ATOM_XML));
        checkResponseCode(response, HTTPCode.CREATED);
        Comment ret = getCommentFeedHandler().createEntity(response);
        comment.clearFieldsMap();
View Full Code Here


        String requestUri = FileUrls.COMMUNITY_FILE_COMMENT.format(this,
                FileUrlParts.accessType.get(accessType), FileUrlParts.communityId.get(communityId),
                FileUrlParts.fileId.get(fileId));
        Comment c = new Comment(this, null);
        c.setContent(comment);
        String payload = new CommentSerializer(c).generateCommentUpdatePayload();
        Response result = createData(requestUri, null, new ClientService.ContentString(payload,
                CommonConstants.APPLICATION_ATOM_XML));
        return getCommentFeedHandler().createEntity(result);
    }
View Full Code Here

                    FileUrlParts.fileId.get(fileId));
        }

        Comment c = new Comment(this, null);
        c.setContent(comment);
        String payload = new CommentSerializer(c).generateCommentUpdatePayload();
        Map<String, String> headers = new HashMap<String, String>();
        Response result = createData(requestUri, params, headers, new ClientService.ContentString(
                payload, CommonConstants.APPLICATION_ATOM_XML));
        return getCommentFeedHandler().createEntity(result);
    }
View Full Code Here

        Map<String, String> headers = new HashMap<String, String>();
        headers.put(Headers.ContentType, Headers.ATOM);
        Comment c = new Comment(this, null);
        c.setContent(comment);
        c.setId(commentId);
        String payload = new CommentSerializer(c).generateCommentUpdatePayload();
        Response result = updateData(requestUri, params, headers, payload, null);
        return getCommentFeedHandler().createEntity(result);
    }
View Full Code Here

        // }
       
        Comment c = new Comment(this, null);
        c.setId(commentId);
        c.setContent(updatedComment);
        String payload = new CommentSerializer(c).generateCommentUpdatePayload();
        updateData(requestUri, null, headers, payload, null);
    }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.connections.files.serializer.CommentSerializer

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.