public abstract class ReviewCommentsServiceImplBase<PRA extends ProtocolReviewAttachmentBase> extends Object implements ReviewCommentsService<PRA>
| Modifier and Type | Field and Description |
|---|---|
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
| Constructor and Description |
|---|
ReviewCommentsServiceImplBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addReviewAttachment(PRA newReviewAttachment,
List<PRA> reviewAttachments,
ProtocolBase protocol)
This method is to add review attachment in OLR or manage review attachment
|
void |
addReviewComment(CommitteeScheduleMinuteBase newReviewComment,
List<CommitteeScheduleMinuteBase> reviewComments,
ProtocolBase protocol)
Adds the newReviewComment to the list of reviewComments in the given protocol.
|
void |
addReviewComment(CommitteeScheduleMinuteBase newReviewComment,
List<CommitteeScheduleMinuteBase> reviewComments,
ProtocolOnlineReviewBase protocolOnlineReview)
Adds the newReviewerComment to the list of reviewerComments in the given protocol online review.
|
boolean |
canViewOnlineReviewerComments(String principalId,
ProtocolSubmissionBase protocolSubmission)
Determines whether the given principal can view the list of online reviewer comments for the given protocol submission.
|
boolean |
canViewOnlineReviewers(String principalId,
ProtocolSubmissionBase protocolSubmission)
Determines whether the given principal can view the list of online reviewers for the given protocol submission.
|
void |
deleteAllReviewAttachments(List<PRA> reviewAttachments,
List<PRA> deletedReviewAttachments)
This method is to delete all saved attachments
|
void |
deleteAllReviewComments(List<CommitteeScheduleMinuteBase> reviewComments,
List<CommitteeScheduleMinuteBase> deletedReviewComments)
Delete all review comments from the list of reviewComments and add them all to the list of deletedReviewComments.
|
void |
deleteReviewAttachment(List<PRA> reviewAttachments,
int index,
List<PRA> deletedReviewAttachments)
This method is to delete a review attachment.
|
void |
deleteReviewComment(List<CommitteeScheduleMinuteBase> reviewComments,
int index,
List<CommitteeScheduleMinuteBase> deletedReviewComments)
Delete the review comment at index from the list of reviewComments and add it to the list of deletedReviewComments.
|
Set<String> |
getAdminIds() |
protected abstract String |
getAdministratorRoleHook() |
List<String> |
getAdminUserNames() |
protected abstract String |
getAggregatorRoleNameHook() |
protected abstract Class<? extends CommitteeScheduleMinuteBase> |
getCommitteeScheduleMinuteBOClassHook() |
protected abstract String |
getDisplayRevNameToActiveCmtMembersHook() |
protected abstract String |
getDisplayRevNameToProtocolPersonnelHook() |
protected abstract String |
getDisplayRevNameToReviewersHook() |
protected abstract String |
getNamespaceHook() |
protected abstract Class<? extends ProtocolDocumentBase> |
getProtocolDocumentBOClassHook() |
ProtocolFinderDao |
getProtocolFinderDao() |
protected abstract Class<? extends ProtocolOnlineReviewBase> |
getProtocolOnlineReviewClassHook() |
List<ProtocolOnlineReviewBase> |
getProtocolOnlineReviews(String protocolNumber,
int submissionNumber)
This method is to get a list of active protocol online reviews for (possibly more than one) submission specified by the parameters.
|
protected abstract Class<PRA> |
getProtocolReviewAttachmentClassHook() |
protected abstract Class<? extends ProtocolReviewer> |
getProtocolReviewClassHook() |
List<ProtocolReviewer> |
getProtocolReviewers(String protocolNumber,
int submissionNumber)
This method is to get a list or protocol reviewers for this submission.
|
protected abstract String[] |
getProtocolSubmissionCompleteStatusCodeArrayHook() |
protected abstract String |
getProtocolViewerRoleNameHook() |
boolean |
getReviewerAcceptedCommentsView(CommitteeScheduleMinuteBase minute)
Returns whether the Reviewer can view this accepted minute Comments in print.
|
List<PRA> |
getReviewerAttachments(String protocolNumber,
int submissionNumber)
This method is to get review attachments for submission detail
|
List<CommitteeScheduleMinuteBase> |
getReviewerComments(String protocolNumber,
int submissionNumber)
Finds and returns the reviewer comments for a protocol number and a certain submission.
|
boolean |
getReviewerCommentsView(ProtocolReviewableBase minute)
Returns whether the current user can view this comment.
|
List<String> |
getReviewerIds() |
boolean |
getReviewerMinuteCommentsView(CommitteeScheduleMinuteBase minute)
Returns whether the current user can view this non Final Comments and Private Comment.
|
protected abstract ProtocolSubmissionBase |
getSubmission(ProtocolBase protocol) |
protected boolean |
isActiveCommitteeMember(ProtocolReviewableBase minute,
String principalId)
This method determines if the current user is an active committee member
|
protected boolean |
isActiveCommitteeMember(String committeeId,
String scheduleId,
String principalId) |
protected boolean |
isCurrentMinuteEntry(CommitteeScheduleMinuteBase minute) |
boolean |
isDisplayReviewerNameToActiveMembers() |
boolean |
isDisplayReviewerNameToPersonnel() |
boolean |
isDisplayReviewerNameToReviewers() |
void |
moveDownReviewComment(List<CommitteeScheduleMinuteBase> reviewComments,
ProtocolBase protocol,
int fromIndex)
Moves one review comment down the list by one value.
|
void |
moveUpReviewComment(List<CommitteeScheduleMinuteBase> reviewComments,
ProtocolBase protocol,
int fromIndex)
Moves one review comment up the list by one value.
|
abstract void |
saveReviewAttachments(List<PRA> reviewAttachments,
List<PRA> deletedReviewAttachments)
This method is to save review attachments in OLR or manage review attachment
|
void |
saveReviewComments(List<CommitteeScheduleMinuteBase> reviewComments,
List<CommitteeScheduleMinuteBase> deletedReviewComments)
Saves the given reviewComments to the database and deletes the given deletedReviewComments.
|
void |
setAdminIds(Set<String> adminIds) |
void |
setAdminUserNames(List<String> adminUserNames) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setCommitteeScheduleService(CommitteeScheduleServiceBase committeeScheduleService) |
void |
setCommitteeService(CommitteeServiceBase committeeService) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService) |
void |
setDisplayReviewerNameToActiveMembers(boolean displayReviewerNameToActiveMembers) |
void |
setDisplayReviewerNameToPersonnel(boolean displayReviewerNameToPersonnel) |
void |
setDisplayReviewerNameToReviewers(boolean displayReviewerNameToReviewers) |
boolean |
setHideReviewerName(List<? extends ProtocolReviewableBase> reviewComments)
This method is to check whether there is any review comments can display reviewer name
based on IRB_DISPLAY_REVIEWER_NAME parameter, and role based business rule.
|
boolean |
setHideReviewerName(ProtocolBase protocol,
int submissionNumber)
This method is to check whether there is any review comments can display reviewer name
based on IRB_DISPLAY_REVIEWER_NAME parameter, and role based business rule.
|
boolean |
setHideViewButton(List<PRA> reviewAttachments)
This method is to check to show 'view' button for protocol personnel
|
void |
setKcPersonService(KcPersonService kcPersonService) |
void |
setKimRoleManagementService(org.kuali.rice.kim.api.role.RoleService kimRoleManagementService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setProtocolFinderDao(ProtocolFinderDao protocolFinderDao) |
void |
setReviewerIds(List<String> reviewerIds) |
void |
setRoleService(org.kuali.rice.kim.api.role.RoleService roleService) |
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
public boolean canViewOnlineReviewerComments(String principalId, ProtocolSubmissionBase protocolSubmission)
canViewOnlineReviewerComments in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>principalId - the id of the userprotocolSubmission - the protocol submissionReviewCommentsService.canViewOnlineReviewerComments(java.lang.String,
org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase)public boolean canViewOnlineReviewers(String principalId, ProtocolSubmissionBase protocolSubmission)
canViewOnlineReviewers in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>principalId - the id of the userprotocolSubmission - the protocol submissionReviewCommentsService.canViewOnlineReviewers(java.lang.String,
org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase)protected abstract String[] getProtocolSubmissionCompleteStatusCodeArrayHook()
public List<CommitteeScheduleMinuteBase> getReviewerComments(String protocolNumber, int submissionNumber)
ReviewCommentsServicegetReviewerComments in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>protocolNumber - The protocol numbersubmissionNumber - The number of the submissionprotected abstract Class<? extends CommitteeScheduleMinuteBase> getCommitteeScheduleMinuteBOClassHook()
public List<PRA> getReviewerAttachments(String protocolNumber, int submissionNumber)
ReviewCommentsServicegetReviewerAttachments in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>public List<ProtocolReviewer> getProtocolReviewers(String protocolNumber, int submissionNumber)
ReviewCommentsServicegetProtocolReviewers in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>public List<ProtocolOnlineReviewBase> getProtocolOnlineReviews(String protocolNumber, int submissionNumber)
ReviewCommentsServicegetProtocolOnlineReviews in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>protected boolean isCurrentMinuteEntry(CommitteeScheduleMinuteBase minute)
public void addReviewComment(CommitteeScheduleMinuteBase newReviewComment, List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol)
ReviewCommentsServiceaddReviewComment in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>newReviewComment - the new review comment to addreviewComments - the list of reviewer commentsprotocol - the current protocolpublic void addReviewComment(CommitteeScheduleMinuteBase newReviewComment, List<CommitteeScheduleMinuteBase> reviewComments, ProtocolOnlineReviewBase protocolOnlineReview)
ReviewCommentsServiceaddReviewComment in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>newReviewComment - the new review comment to addreviewComments - the list of reviewer commentsprotocolOnlineReview - the current protocol online reviewpublic void moveUpReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol, int fromIndex)
ReviewCommentsServicemoveUpReviewComment in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>reviewComments - the list of review commentsprotocol - the current protocolfromIndex - the current position of the review commentpublic void moveDownReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, ProtocolBase protocol, int fromIndex)
ReviewCommentsServicemoveDownReviewComment in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>reviewComments - the list of reviewer commentsprotocol - the current protocolfromIndex - the current position of the review commentpublic boolean getReviewerCommentsView(ProtocolReviewableBase minute)
getReviewerCommentsView in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>CommitteeScheduleMinuteBase - minuteprotected abstract String getAdministratorRoleHook()
public void deleteReviewComment(List<CommitteeScheduleMinuteBase> reviewComments, int index, List<CommitteeScheduleMinuteBase> deletedReviewComments)
ReviewCommentsServicedeleteReviewComment in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>reviewComments - the list of reviewer commentsindex - the index of the reviewer comment to be deleteddeletedReviewComments - the list of deleted reviewer commentspublic void deleteAllReviewComments(List<CommitteeScheduleMinuteBase> reviewComments, List<CommitteeScheduleMinuteBase> deletedReviewComments)
ReviewCommentsServicedeleteAllReviewComments in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>reviewComments - the list of reviewer commentsdeletedReviewComments - the list of deleted reviewer commentspublic void saveReviewComments(List<CommitteeScheduleMinuteBase> reviewComments, List<CommitteeScheduleMinuteBase> deletedReviewComments)
ReviewCommentsServicesaveReviewComments in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>reviewComments - the review comments that will be saveddeletedReviewComments - the review comments that will be deletedprotected abstract ProtocolSubmissionBase getSubmission(ProtocolBase protocol)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setCommitteeScheduleService(CommitteeScheduleServiceBase committeeScheduleService)
public void setCommitteeService(CommitteeServiceBase committeeService)
public void setProtocolFinderDao(ProtocolFinderDao protocolFinderDao)
public void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
protected abstract String getDisplayRevNameToActiveCmtMembersHook()
protected abstract String getDisplayRevNameToProtocolPersonnelHook()
protected abstract String getDisplayRevNameToReviewersHook()
protected abstract Class<? extends ProtocolDocumentBase> getProtocolDocumentBOClassHook()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public boolean setHideReviewerName(ProtocolBase protocol, int submissionNumber)
ReviewCommentsServicesetHideReviewerName in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>org.kuali.kra.irb.actions.reviewcomments.ReviewCommentsService#setHideReviewerName(org.kuali.kra.irb.ProtocolBase, int)public boolean setHideReviewerName(List<? extends ProtocolReviewableBase> reviewComments)
ReviewCommentsServicesetHideReviewerName in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>public boolean setHideViewButton(List<PRA> reviewAttachments)
ReviewCommentsServicesetHideViewButton in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>public boolean getReviewerMinuteCommentsView(CommitteeScheduleMinuteBase minute)
getReviewerMinuteCommentsView in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>CommitteeScheduleMinuteBase - minuteprotected abstract Class<? extends ProtocolReviewer> getProtocolReviewClassHook()
protected abstract String getNamespaceHook()
protected abstract String getAggregatorRoleNameHook()
protected abstract String getProtocolViewerRoleNameHook()
public void setKimRoleManagementService(org.kuali.rice.kim.api.role.RoleService kimRoleManagementService)
public void setKcPersonService(KcPersonService kcPersonService)
public boolean isDisplayReviewerNameToPersonnel()
public void setDisplayReviewerNameToPersonnel(boolean displayReviewerNameToPersonnel)
public boolean isDisplayReviewerNameToReviewers()
public void setDisplayReviewerNameToReviewers(boolean displayReviewerNameToReviewers)
public boolean isDisplayReviewerNameToActiveMembers()
public void setDisplayReviewerNameToActiveMembers(boolean displayReviewerNameToActiveMembers)
protected boolean isActiveCommitteeMember(ProtocolReviewableBase minute, String principalId)
minute - principalId - protected boolean isActiveCommitteeMember(String committeeId, String scheduleId, String principalId)
public boolean getReviewerAcceptedCommentsView(CommitteeScheduleMinuteBase minute)
getReviewerAcceptedCommentsView in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>CommitteeScheduleMinuteBase - minuteprotected abstract Class<? extends ProtocolOnlineReviewBase> getProtocolOnlineReviewClassHook()
public void deleteReviewAttachment(List<PRA> reviewAttachments, int index, List<PRA> deletedReviewAttachments)
ReviewCommentsServicedeleteReviewAttachment in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>public abstract void saveReviewAttachments(List<PRA> reviewAttachments, List<PRA> deletedReviewAttachments)
ReviewCommentsServicesaveReviewAttachments in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>public void addReviewAttachment(PRA newReviewAttachment, List<PRA> reviewAttachments, ProtocolBase protocol)
ReviewCommentsServiceaddReviewAttachment in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>protected abstract Class<PRA> getProtocolReviewAttachmentClassHook()
public void deleteAllReviewAttachments(List<PRA> reviewAttachments, List<PRA> deletedReviewAttachments)
ReviewCommentsServicedeleteAllReviewAttachments in interface ReviewCommentsService<PRA extends ProtocolReviewAttachmentBase>public ProtocolFinderDao getProtocolFinderDao()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.