org.outerj.daisy.repository.serverimpl.comment
Class LocalCommentStrategy

java.lang.Object
  extended by org.outerj.daisy.repository.serverimpl.AbstractLocalStrategy
      extended by org.outerj.daisy.repository.serverimpl.comment.LocalCommentStrategy
All Implemented Interfaces:
org.outerj.daisy.repository.commonimpl.comment.CommentStrategy

public class LocalCommentStrategy
extends AbstractLocalStrategy
implements org.outerj.daisy.repository.commonimpl.comment.CommentStrategy


Field Summary
 
Fields inherited from class org.outerj.daisy.repository.serverimpl.AbstractLocalStrategy
context, eventHelper, jdbcHelper, logger, systemUser
 
Constructor Summary
LocalCommentStrategy(LocalRepositoryManager.Context context, org.outerj.daisy.repository.commonimpl.AuthenticatedUser systemUser, org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
           
 
Method Summary
 org.outerx.daisy.x10.CommentCreatedDocument createCommentCreatedEvent(org.outerj.daisy.repository.comment.Comment comment)
           
 org.outerx.daisy.x10.CommentDeletedDocument createCommentDeletedEvent(org.outerj.daisy.repository.comment.Comment comment, long deleterId)
           
 void deleteComment(long documentId, long branchId, long languageId, long id, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.comment.Comment[] loadComments(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.comment.Comment[] loadComments(org.outerj.daisy.repository.comment.CommentVisibility visibility, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.comment.Comment[] loadComments(long documentId, long branchId, long languageId, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.comment.CommentImpl storeComment(long documentId, long branchId, long languageId, org.outerj.daisy.repository.comment.CommentVisibility visibility, java.lang.String text, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 
Methods inherited from class org.outerj.daisy.repository.serverimpl.AbstractLocalStrategy
getBranchLabel, getCalendar, getLanguageLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalCommentStrategy

public LocalCommentStrategy(LocalRepositoryManager.Context context,
                            org.outerj.daisy.repository.commonimpl.AuthenticatedUser systemUser,
                            org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
Method Detail

storeComment

public org.outerj.daisy.repository.commonimpl.comment.CommentImpl storeComment(long documentId,
                                                                               long branchId,
                                                                               long languageId,
                                                                               org.outerj.daisy.repository.comment.CommentVisibility visibility,
                                                                               java.lang.String text,
                                                                               org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                                        throws org.outerj.daisy.repository.RepositoryException
Specified by:
storeComment in interface org.outerj.daisy.repository.commonimpl.comment.CommentStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

createCommentCreatedEvent

public org.outerx.daisy.x10.CommentCreatedDocument createCommentCreatedEvent(org.outerj.daisy.repository.comment.Comment comment)

deleteComment

public void deleteComment(long documentId,
                          long branchId,
                          long languageId,
                          long id,
                          org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                   throws org.outerj.daisy.repository.RepositoryException
Specified by:
deleteComment in interface org.outerj.daisy.repository.commonimpl.comment.CommentStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

createCommentDeletedEvent

public org.outerx.daisy.x10.CommentDeletedDocument createCommentDeletedEvent(org.outerj.daisy.repository.comment.Comment comment,
                                                                             long deleterId)

loadComments

public org.outerj.daisy.repository.comment.Comment[] loadComments(long documentId,
                                                                  long branchId,
                                                                  long languageId,
                                                                  org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                           throws org.outerj.daisy.repository.RepositoryException
Specified by:
loadComments in interface org.outerj.daisy.repository.commonimpl.comment.CommentStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

loadComments

public org.outerj.daisy.repository.comment.Comment[] loadComments(org.outerj.daisy.repository.comment.CommentVisibility visibility,
                                                                  org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                           throws org.outerj.daisy.repository.RepositoryException
Specified by:
loadComments in interface org.outerj.daisy.repository.commonimpl.comment.CommentStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

loadComments

public org.outerj.daisy.repository.comment.Comment[] loadComments(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                           throws org.outerj.daisy.repository.RepositoryException
Specified by:
loadComments in interface org.outerj.daisy.repository.commonimpl.comment.CommentStrategy
Throws:
org.outerj.daisy.repository.RepositoryException


Copyright © -2012 . All Rights Reserved.