public class SCommentServiceImpl extends Object implements SCommentService
COMMENT, COMMMENT_IS_DELETED| Constructor and Description |
|---|
SCommentServiceImpl(Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
ArchiveService archiveService,
SessionService sessionService,
ReadSessionAccessor sessionAccessor,
Map<SystemCommentType,Boolean> systemCommentType,
EventService eventService) |
| Modifier and Type | Method and Description |
|---|---|
SComment |
addComment(long processInstanceId,
String comment)
Add a comment on process instance
|
SComment |
addSystemComment(long processInstanceId,
String comment)
Add a system comment on process instance
|
void |
archive(long archiveDate,
SComment sComment) |
void |
delete(SComment comment)
Delete the comment
|
void |
deleteArchivedComments(long processInstanceId)
Delete archived comments for a specified process instance
|
void |
deleteComments(long processInstanceId)
Delete comments for a specified process instance
|
SAComment |
getArchivedComment(long archivedCommentId) |
List<SComment> |
getComments(long processInstanceId)
Deprecated.
|
List<SComment> |
getComments(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Get comments for the given processInstance
|
long |
getNumberOfArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search number of archived Comments
|
long |
getNumberOfComments(org.bonitasoft.engine.persistence.QueryOptions options)
Number of all comments related to the specified query options.
|
long |
getNumberOfCommentsInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search number of all the comments on process instants that the user can access
|
long |
getNumberOfCommentsManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search number of the comments visible by delegates of managerUserId
|
long |
getNumberOfCommentsSupervisedBy(long supervisorId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search number of Comment for a specific supervisor
|
boolean |
isCommentEnabled(SystemCommentType sct)
Returning true if the system comments are enabled for the specific SystemCommentType.
|
List<SAComment> |
searchArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search archived Comments
|
List<SComment> |
searchComments(org.bonitasoft.engine.persistence.QueryOptions options)
List all comments related to the specified query options.
|
List<SComment> |
searchCommentsInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
List all the comments on process instants that the user can access
|
List<SComment> |
searchCommentsManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search comments visible by delegates of managerUserId
|
List<SComment> |
searchCommentsSupervisedBy(long supervisorId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search an Comment for a specific supervisor
|
public SCommentServiceImpl(Recorder recorder, org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService, ArchiveService archiveService, SessionService sessionService, ReadSessionAccessor sessionAccessor, Map<SystemCommentType,Boolean> systemCommentType, EventService eventService)
public List<SComment> searchComments(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicesearchComments in interface SCommentServiceoptions - a QueryOptions object, containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfComments(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicegetNumberOfComments in interface SCommentServiceoptions - a QueryOptions object, containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadException@Deprecated public List<SComment> getComments(long processInstanceId) throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicegetComments in interface SCommentServiceprocessInstanceId - identifier of processInstanceorg.bonitasoft.engine.persistence.SBonitaReadException - in case of read errorQueryOptions#DEFAULT_NUMBER_OF_RESULTS}public List<SComment> getComments(long processInstanceId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicegetComments in interface SCommentServiceprocessInstanceId - identifier of processInstancequeryOptions - the query options to filter the resultsorg.bonitasoft.engine.persistence.SBonitaReadException - in case of read errorpublic SComment addComment(long processInstanceId, String comment) throws SCommentAddException
SCommentServiceaddComment in interface SCommentServiceprocessInstanceId - identifier of processInstancecomment - the comment you want to addSCommentAddExceptionpublic SComment addSystemComment(long processInstanceId, String comment) throws SCommentAddException
SCommentServiceaddSystemComment in interface SCommentServiceprocessInstanceId - identifier of processInstancecomment - the comment you want to addSCommentAddExceptionpublic void delete(SComment comment) throws SCommentDeletionException
SCommentServicedelete in interface SCommentServiceSCommentDeletionExceptionpublic void deleteComments(long processInstanceId)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
SCommentServicedeleteComments in interface SCommentServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic long getNumberOfCommentsSupervisedBy(long supervisorId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicegetNumberOfCommentsSupervisedBy in interface SCommentServicesupervisorId - the identifier of supervisorqueryOptions - a map of specific parameters of a queryorg.bonitasoft.engine.persistence.SBonitaReadException - if a Read exception occurspublic List<SComment> searchCommentsSupervisedBy(long supervisorId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicesearchCommentsSupervisedBy in interface SCommentServicesupervisorId - the identifier of supervisorqueryOptions - a map of specific parameters of a queryorg.bonitasoft.engine.persistence.SBonitaReadException - if a Read exception occurspublic long getNumberOfCommentsInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicegetNumberOfCommentsInvolvingUser in interface SCommentServiceuserId - identifier of usersearchOptions - a QueryOptions object, containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SComment> searchCommentsInvolvingUser(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicesearchCommentsInvolvingUser in interface SCommentServiceuserId - identifier of userqueryOptions - a QueryOptions object, containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfCommentsManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicegetNumberOfCommentsManagedBy in interface SCommentServicemanagerUserId - identifier of a manager usersearchOptions - a QueryOptions object, containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SComment> searchCommentsManagedBy(long managerUserId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicesearchCommentsManagedBy in interface SCommentServicemanagerUserId - identifier of a manager usersearchOptions - a QueryOptions object, containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicegetNumberOfArchivedComments in interface SCommentServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SAComment> searchArchivedComments(org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
SCommentServicesearchArchivedComments in interface SCommentServicesearchOptions - a QueryOptions object, containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic boolean isCommentEnabled(SystemCommentType sct)
SCommentServiceisCommentEnabled in interface SCommentServicesct - A Enum for system commentspublic SAComment getArchivedComment(long archivedCommentId) throws SCommentNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
getArchivedComment in interface SCommentServiceSCommentNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void deleteArchivedComments(long processInstanceId)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
SCommentServicedeleteArchivedComments in interface SCommentServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void archive(long archiveDate,
SComment sComment)
throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
archive in interface SCommentServiceorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.