public interface SCommentService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMENT |
static java.lang.String |
COMMMENT_IS_DELETED |
| Modifier and Type | Method and Description |
|---|---|
SComment |
addComment(long processInstanceId,
java.lang.String comment,
long userId)
Add a comment on process instance
|
SComment |
addSystemComment(long processInstanceId,
java.lang.String comment)
Add a system comment on process instance
|
void |
archive(long archiveDate,
SComment sComment) |
void |
delete(SComment comment)
Delete the comment
|
void |
deleteArchivedComments(java.util.List<java.lang.Long> processInstanceIds)
Delete archived comments for specified process instances
|
void |
deleteComments(long processInstanceId)
Delete comments for a specified process instance
|
SAComment |
getArchivedComment(long archivedCommentId) |
java.util.List<SComment> |
getComments(long processInstanceId)
Deprecated.
use
getComments(long, QueryOptions) instead |
java.util.List<SComment> |
getComments(long processInstanceId,
QueryOptions queryOptions)
Get comments for the given processInstance
|
long |
getNumberOfArchivedComments(QueryOptions searchOptions)
Search number of archived Comments
|
long |
getNumberOfComments(QueryOptions queryOptions)
Number of all comments related to the specified query options.
|
long |
getNumberOfCommentsInvolvingUser(long userId,
QueryOptions searchOptions)
Search number of all the comments on process instants that the user can access
|
long |
getNumberOfCommentsManagedBy(long managerUserId,
QueryOptions searchOptions)
Search number of the comments visible by delegates of managerUserId
|
long |
getNumberOfCommentsSupervisedBy(long supervisorId,
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.
|
java.util.List<SAComment> |
searchArchivedComments(QueryOptions searchOptions)
Search archived Comments
|
java.util.List<SComment> |
searchComments(QueryOptions options)
List all comments related to the specified query options.
|
java.util.List<SComment> |
searchCommentsInvolvingUser(long userId,
QueryOptions queryOptions)
List all the comments on process instants that the user can access
|
java.util.List<SComment> |
searchCommentsManagedBy(long managerUserId,
QueryOptions searchOptions)
Search comments visible by delegates of managerUserId
|
java.util.List<SComment> |
searchCommentsSupervisedBy(long supervisorId,
QueryOptions queryOptions)
Search an Comment for a specific supervisor
|
static final java.lang.String COMMENT
static final java.lang.String COMMMENT_IS_DELETED
java.util.List<SComment> searchComments(QueryOptions options) throws SBonitaReadException
options - a QueryOptions object, containing some query conditionsSBonitaReadExceptionlong getNumberOfComments(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - a QueryOptions object, containing some query conditionsSBonitaReadExceptionSComment addComment(long processInstanceId, java.lang.String comment, long userId) throws SCommentAddException
processInstanceId - identifier of processInstancecomment - the comment you want to adduserId - The user that will be said to have made the commentSCommentAddExceptionSComment addSystemComment(long processInstanceId, java.lang.String comment) throws SCommentAddException
processInstanceId - identifier of processInstancecomment - the comment you want to addSCommentAddException@Deprecated java.util.List<SComment> getComments(long processInstanceId) throws SBonitaReadException
getComments(long, QueryOptions) insteadprocessInstanceId - identifier of processInstanceSBonitaReadException - in case of read errorQueryOptions#DEFAULT_NUMBER_OF_RESULTS}java.util.List<SComment> getComments(long processInstanceId, QueryOptions queryOptions) throws SBonitaReadException
processInstanceId - identifier of processInstancequeryOptions - the query options to filter the resultsSBonitaReadException - in case of read errorlong getNumberOfCommentsSupervisedBy(long supervisorId,
QueryOptions queryOptions)
throws SBonitaReadException
supervisorId - the identifier of supervisorqueryOptions - a map of specific parameters of a querySBonitaReadException - if a Read exception occursjava.util.List<SComment> searchCommentsSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadException
supervisorId - the identifier of supervisorqueryOptions - a map of specific parameters of a querySBonitaReadException - if a Read exception occurslong getNumberOfCommentsInvolvingUser(long userId,
QueryOptions searchOptions)
throws SBonitaReadException
userId - identifier of usersearchOptions - a QueryOptions object, containing some query conditionsSBonitaReadExceptionjava.util.List<SComment> searchCommentsInvolvingUser(long userId, QueryOptions queryOptions) throws SBonitaReadException
userId - identifier of userqueryOptions - a QueryOptions object, containing some query conditionsSBonitaReadExceptionlong getNumberOfCommentsManagedBy(long managerUserId,
QueryOptions searchOptions)
throws SBonitaReadException
managerUserId - identifier of a manager usersearchOptions - a QueryOptions object, containing some query conditionsSBonitaReadExceptionjava.util.List<SComment> searchCommentsManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
managerUserId - identifier of a manager usersearchOptions - a QueryOptions object, containing some query conditionsSBonitaReadExceptionlong getNumberOfArchivedComments(QueryOptions searchOptions) throws SBonitaReadException
searchOptions - SBonitaReadExceptionjava.util.List<SAComment> searchArchivedComments(QueryOptions searchOptions) throws SBonitaReadException
searchOptions - a QueryOptions object, containing some query conditionsSBonitaReadExceptionboolean isCommentEnabled(SystemCommentType sct)
sct - A Enum for system commentsvoid delete(SComment comment) throws SCommentDeletionException
comment - SCommentDeletionExceptionSAComment getArchivedComment(long archivedCommentId) throws SCommentNotFoundException, SBonitaReadException
archivedCommentId - SCommentNotFoundExceptionSBonitaReadExceptionvoid deleteArchivedComments(java.util.List<java.lang.Long> processInstanceIds)
throws SBonitaException
processInstanceIds - SBonitaExceptionvoid deleteComments(long processInstanceId)
throws SBonitaException
processInstanceId - SBonitaExceptionvoid archive(long archiveDate,
SComment sComment)
throws SObjectModificationException
archiveDate - sComment - SObjectModificationException