Class ReadingRequestTool
java.lang.Object
com.logicaldoc.enterprise.reading.ReadingRequestTool
Utility methods to handle reading requests from within Automation
- Since:
- 8.8.6
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
askReadingConfirmation
(long docId, long recipientId, long requestorId, boolean alertConfirmation, String comment) Asks a user to confirm the reading of a documentvoid
askReadingConfirmation
(Collection<Long> docIds, Collection<Long> userIds, Collection<Long> groupIds, long requestorId, boolean alertConfirmation, String comment, com.logicaldoc.core.document.DocumentHistory transaction) Asks some users to confirm the reading of a set of documents
-
Constructor Details
-
ReadingRequestTool
public ReadingRequestTool()
-
-
Method Details
-
askReadingConfirmation
public void askReadingConfirmation(long docId, long recipientId, long requestorId, boolean alertConfirmation, String comment) throws com.logicaldoc.core.PersistenceException Asks a user to confirm the reading of a document- Parameters:
docId
- Identifier of the documentrecipientId
- Identifier of the user that must confirm the readingrequestorId
- Identifier of the user that sends the reading confirmation requestalertConfirmation
- If the requestor must be notified when the recipient has read the documentcomment
- an optional message to include in the notification- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database layer
-
askReadingConfirmation
public void askReadingConfirmation(Collection<Long> docIds, Collection<Long> userIds, Collection<Long> groupIds, long requestorId, boolean alertConfirmation, String comment, com.logicaldoc.core.document.DocumentHistory transaction) throws com.logicaldoc.core.PersistenceException Asks some users to confirm the reading of a set of documents- Parameters:
docIds
- identifiers of the documentsuserIds
- identifiers of the recipientsgroupIds
- identifiers of the groups whose members are recipientsrequestorId
- Identifier of the user that sends the reading confirmation requestalertConfirmation
- if the requestor must be notified on reading confirmationcomment
- an optional message to include in the notificationtransaction
- an optional history to assign to this event- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database layer
-