public class SCommentServiceImpl extends Object implements org.bonitasoft.engine.core.process.comment.api.SCommentService
| Constructor and Description |
|---|
SCommentServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.archive.ArchiveService archiveService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
Map<org.bonitasoft.engine.core.process.comment.api.SystemCommentType,Boolean> systemCommentType,
org.bonitasoft.engine.events.EventService eventService) |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.core.process.comment.model.SComment |
addComment(long processInstanceId,
String comment) |
org.bonitasoft.engine.core.process.comment.model.SComment |
addSystemComment(long processInstanceId,
String comment) |
void |
archive(long archiveDate,
org.bonitasoft.engine.core.process.comment.model.SComment sComment) |
void |
delete(org.bonitasoft.engine.core.process.comment.model.SComment comment) |
void |
deleteArchivedComments(long processInstanceId) |
void |
deleteComments(long processInstanceId) |
org.bonitasoft.engine.core.process.comment.model.archive.SAComment |
getArchivedComment(long archivedCommentId) |
List<org.bonitasoft.engine.core.process.comment.model.SComment> |
getComments(long processInstanceId)
Deprecated.
|
List<org.bonitasoft.engine.core.process.comment.model.SComment> |
getComments(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
long |
getNumberOfComments(org.bonitasoft.engine.persistence.QueryOptions options) |
long |
getNumberOfCommentsInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
long |
getNumberOfCommentsManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
long |
getNumberOfCommentsSupervisedBy(long supervisorId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
boolean |
isCommentEnabled(org.bonitasoft.engine.core.process.comment.api.SystemCommentType sct) |
List<org.bonitasoft.engine.core.process.comment.model.archive.SAComment> |
searchArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
List<org.bonitasoft.engine.core.process.comment.model.SComment> |
searchComments(org.bonitasoft.engine.persistence.QueryOptions options) |
List<org.bonitasoft.engine.core.process.comment.model.SComment> |
searchCommentsInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.comment.model.SComment> |
searchCommentsManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
List<org.bonitasoft.engine.core.process.comment.model.SComment> |
searchCommentsSupervisedBy(long supervisorId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
public SCommentServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.archive.ArchiveService archiveService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
Map<org.bonitasoft.engine.core.process.comment.api.SystemCommentType,Boolean> systemCommentType,
org.bonitasoft.engine.events.EventService eventService)
public List<org.bonitasoft.engine.core.process.comment.model.SComment> searchComments(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfComments(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadException@Deprecated public List<org.bonitasoft.engine.core.process.comment.model.SComment> getComments(long processInstanceId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.comment.model.SComment> getComments(long processInstanceId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
getComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.core.process.comment.model.SComment addComment(long processInstanceId,
String comment)
throws org.bonitasoft.engine.core.process.comment.api.SCommentAddException
addComment in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.core.process.comment.api.SCommentAddExceptionpublic org.bonitasoft.engine.core.process.comment.model.SComment addSystemComment(long processInstanceId,
String comment)
throws org.bonitasoft.engine.core.process.comment.api.SCommentAddException
addSystemComment in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.core.process.comment.api.SCommentAddExceptionpublic void delete(org.bonitasoft.engine.core.process.comment.model.SComment comment)
throws org.bonitasoft.engine.core.process.comment.api.SCommentDeletionException
delete in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.core.process.comment.api.SCommentDeletionExceptionpublic void deleteComments(long processInstanceId)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
deleteComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic long getNumberOfCommentsSupervisedBy(long supervisorId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfCommentsSupervisedBy in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.comment.model.SComment> searchCommentsSupervisedBy(long supervisorId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchCommentsSupervisedBy in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfCommentsInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfCommentsInvolvingUser in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.comment.model.SComment> searchCommentsInvolvingUser(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchCommentsInvolvingUser in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfCommentsManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfCommentsManagedBy in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.comment.model.SComment> searchCommentsManagedBy(long managerUserId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchCommentsManagedBy in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfArchivedComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.comment.model.archive.SAComment> searchArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchArchivedComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic boolean isCommentEnabled(org.bonitasoft.engine.core.process.comment.api.SystemCommentType sct)
isCommentEnabled in interface org.bonitasoft.engine.core.process.comment.api.SCommentServicepublic org.bonitasoft.engine.core.process.comment.model.archive.SAComment getArchivedComment(long archivedCommentId)
throws org.bonitasoft.engine.core.process.comment.api.SCommentNotFoundException,
org.bonitasoft.engine.persistence.SBonitaReadException
getArchivedComment in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.core.process.comment.api.SCommentNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void deleteArchivedComments(long processInstanceId)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
deleteArchivedComments in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void archive(long archiveDate,
org.bonitasoft.engine.core.process.comment.model.SComment sComment)
throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
archive in interface org.bonitasoft.engine.core.process.comment.api.SCommentServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionCopyright © 2017 Bonitasoft S.A.. All rights reserved.