|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentsDAO
Data Access Object for Comments
Method Summary | |
---|---|
int |
addComment(ResourceImpl resource,
java.lang.String userID,
Comment comment)
Method to persist a comment. |
void |
addComments(ResourceImpl resource,
CommentDO[] commentDOs)
Method to persist comments. |
void |
copyComments(ResourceImpl sourceResource,
ResourceImpl targetResource)
Method to copy comments. |
void |
deleteComment(long commentId)
Method to delete a comment. |
Comment |
getComment(long commentID,
java.lang.String resourcePath)
Method to get a comment added to a given resource. |
Comment[] |
getComments(ResourceImpl resource)
Method to get comments added to a given resource. |
ResourceImpl |
getResourceWithMinimumData(java.lang.String path)
Gets the resource with sufficient data to differentiate it from another resource. |
void |
moveCommentPaths(ResourceIDImpl source,
ResourceIDImpl target)
Method to move comment paths. |
void |
moveComments(ResourceIDImpl source,
ResourceIDImpl target)
Method to move comments. |
void |
removeComments(ResourceImpl resource)
Method to remove all comments added to a resource. |
void |
updateComment(long commentId,
java.lang.String text)
Method to update a comment. |
Method Detail |
---|
int addComment(ResourceImpl resource, java.lang.String userID, Comment comment) throws RegistryException
resource
- the resourceuserID
- the id of the user who added the comment.comment
- the comment to be persisted.
RegistryException
- if some error occurs while adding a commentvoid addComments(ResourceImpl resource, CommentDO[] commentDOs) throws RegistryException
resource
- the resourcecommentDOs
- the comments to be persisted.
RegistryException
- if some error occurs while adding commentsvoid copyComments(ResourceImpl sourceResource, ResourceImpl targetResource) throws RegistryException
sourceResource
- the source resource.targetResource
- the target resource.
RegistryException
- if some error occurs while copying commentsvoid updateComment(long commentId, java.lang.String text) throws RegistryException
commentId
- the comment id.text
- the comment text.
RegistryException
- if some error occurs while updating the comment.void deleteComment(long commentId) throws RegistryException
commentId
- the comment id.
RegistryException
- if some error occurs while deleting the comment.void removeComments(ResourceImpl resource) throws RegistryException
resource
- the resource.
RegistryException
- if some error occurs while removing comments.Comment getComment(long commentID, java.lang.String resourcePath) throws RegistryException
resourcePath
- the resource's path.commentID
- the identifier of the comment.
RegistryException
- if an error occurs while getting the comment.Comment[] getComments(ResourceImpl resource) throws RegistryException
resource
- the resource.
RegistryException
- if an error occurs while getting comments.ResourceImpl getResourceWithMinimumData(java.lang.String path) throws RegistryException
ResourceImpl
with the path, name and path identifier
of a resource.
path
- the path of the resource.
RegistryException
- if an error occurs while retrieving resource data.void moveComments(ResourceIDImpl source, ResourceIDImpl target) throws RegistryException
source
- the source resource.target
- the target resource.
RegistryException
- if some error occurs while moving commentsvoid moveCommentPaths(ResourceIDImpl source, ResourceIDImpl target) throws RegistryException
source
- the source resource.target
- the target resource.
RegistryException
- if some error occurs while moving comment paths
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |