Package de.xima.fc.dao.utils
Class FormRecordMessageProtocolUtils
- java.lang.Object
-
- de.xima.fc.dao.utils.FormRecordMessageProtocolUtils
-
public class FormRecordMessageProtocolUtils extends Object
Utility class for creating protocol entries for form record messages.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addNewFormRecordMessageProtocolEntry(IEntityContext ec, FormRecordMessage message)
Adds a protocol entry for a new form record message.static void
addReadByUserProtocolEntry(IEntityContext ec, FormRecordMessage message, IUser user)
static void
addUploadRequestFulfilledProtocolEntry(IEntityContext ec, IUser user, FormRecordMessageUploadRequest uploadRequest)
Adds a protocol entry that an upload request of a form record message has been fulfilled.static String
getMemberName(IEntityContext ec, FormRecordChat chat)
Returns the name of the members of a form record chat as a comma-separated string.
-
-
-
Method Detail
-
addNewFormRecordMessageProtocolEntry
public static void addNewFormRecordMessageProtocolEntry(IEntityContext ec, FormRecordMessage message)
Adds a protocol entry for a new form record message.- Parameters:
ec
- The entity context.message
- The new form record message.
-
addReadByUserProtocolEntry
public static void addReadByUserProtocolEntry(IEntityContext ec, FormRecordMessage message, IUser user)
-
addUploadRequestFulfilledProtocolEntry
public static void addUploadRequestFulfilledProtocolEntry(IEntityContext ec, IUser user, FormRecordMessageUploadRequest uploadRequest)
Adds a protocol entry that an upload request of a form record message has been fulfilled.- Parameters:
ec
- The message context for database access.user
- The user who fulfilled the upload request.uploadRequest
- The upload request that has been fulfilled.
-
getMemberName
public static String getMemberName(IEntityContext ec, FormRecordChat chat)
Returns the name of the members of a form record chat as a comma-separated string.- Parameters:
ec
- The entity context for database access.chat
- The form record chat.- Returns:
- The name of the members of the chat as a comma-separated string.
-
-