|
18 | 18 | import com.emc.documentum.rest.client.sample.client.impl.AbstractRestTemplateClient;
|
19 | 19 | import com.emc.documentum.rest.client.sample.client.util.Headers;
|
20 | 20 | import com.emc.documentum.rest.client.sample.client.util.UriHelper;
|
| 21 | +import com.emc.documentum.rest.client.sample.model.Comment; |
21 | 22 | import com.emc.documentum.rest.client.sample.model.Entry;
|
22 | 23 | import com.emc.documentum.rest.client.sample.model.Feed;
|
23 | 24 | import com.emc.documentum.rest.client.sample.model.FolderLink;
|
|
42 | 43 | import com.emc.documentum.rest.client.sample.model.xml.jaxb.JaxbBatch;
|
43 | 44 | import com.emc.documentum.rest.client.sample.model.xml.jaxb.JaxbBatchCapabilities;
|
44 | 45 | import com.emc.documentum.rest.client.sample.model.xml.jaxb.JaxbCabinet;
|
| 46 | +import com.emc.documentum.rest.client.sample.model.xml.jaxb.JaxbComment; |
45 | 47 | import com.emc.documentum.rest.client.sample.model.xml.jaxb.JaxbContent;
|
46 | 48 | import com.emc.documentum.rest.client.sample.model.xml.jaxb.JaxbDocument;
|
47 | 49 | import com.emc.documentum.rest.client.sample.model.xml.jaxb.JaxbFeed;
|
|
78 | 80 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.CHECKIN_NEXT_MAJOR;
|
79 | 81 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.CHECKIN_NEXT_MINOR;
|
80 | 82 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.CHECKOUT;
|
| 83 | +import static com.emc.documentum.rest.client.sample.model.LinkRelation.COMMENTS; |
81 | 84 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.CONTENTS;
|
82 | 85 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.CURRENT_USER_PREFERENCES;
|
83 | 86 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.DELETE;
|
|
98 | 101 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.PRIMARY_CONTENT;
|
99 | 102 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.RELATIONS;
|
100 | 103 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.RELATION_TYPES;
|
| 104 | +import static com.emc.documentum.rest.client.sample.model.LinkRelation.REPLIES; |
101 | 105 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.REPOSITORIES;
|
102 | 106 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.SEARCH;
|
103 | 107 | import static com.emc.documentum.rest.client.sample.model.LinkRelation.SELF;
|
@@ -580,6 +584,33 @@ public Permission getPermission(Linkable linkable, String... params) {
|
580 | 584 | public PermissionSet getPermissionSet(Linkable linkable, String... params) {
|
581 | 585 | return get(linkable.getHref(LinkRelation.PERMISSION_SET), false, JaxbPermissionSet.class, params);
|
582 | 586 | }
|
| 587 | + |
| 588 | + @Override |
| 589 | + public Feed<Comment> getComments(Linkable parent, String... params) { |
| 590 | + Feed<? extends Comment> feed = get(parent.getHref(COMMENTS), true, JaxbFeed.class, params); |
| 591 | + return (Feed<Comment>)feed; |
| 592 | + } |
| 593 | + |
| 594 | + @Override |
| 595 | + public Comment createComment(Linkable parent, Comment comment) { |
| 596 | + return post(parent.getHref(COMMENTS), new JaxbComment(comment), JaxbComment.class); |
| 597 | + } |
| 598 | + |
| 599 | + @Override |
| 600 | + public Comment getComment(String commentUri, String... params) { |
| 601 | + return get(commentUri, false, JaxbComment.class, params); |
| 602 | + } |
| 603 | + |
| 604 | + @Override |
| 605 | + public Feed<Comment> getReplies(Linkable parent, String... params) { |
| 606 | + Feed<? extends Comment> feed = get(parent.getHref(REPLIES), true, JaxbFeed.class, params); |
| 607 | + return (Feed<Comment>)feed; |
| 608 | + } |
| 609 | + |
| 610 | + @Override |
| 611 | + public Comment createReply(Linkable parent, Comment comment) { |
| 612 | + return post(parent.getHref(REPLIES), new JaxbComment(comment), JaxbComment.class); |
| 613 | + } |
583 | 614 |
|
584 | 615 | @Override
|
585 | 616 | public <T extends Linkable> Feed<T> nextPage(Feed<T> feed) {
|
|
0 commit comments