public interface ConversationPermissionService
| Modifier and Type | Method and Description | 
|---|---|
| Optional<String> | checkArchiveConversation(String userId,
                        Collection<String> userGroupKeys,
                        String userTenantId,
                        String conversationId)Evaluates the permissions for the given user when archiving an existing conversation. | 
| Optional<String> | checkArchiveConversation(String userId,
                        String conversationId)Deprecated. 
 | 
| Optional<String> | checkCreateConversation(String userId,
                       Collection<String> userGroupKeys,
                       String userTenantId,
                       String parentConversationId,
                       ConversationBuilder conversationBuilder)Evaluates the permissions for the given user when creating a new conversation with an optional parent
 conversation (e.g. | 
| Optional<String> | checkCreateConversation(String userId,
                       String parentConversationId,
                       ConversationBuilder conversationBuilder)Deprecated. 
 | 
| Optional<String> | checkDropParticipantFromConversation(String userId,
                                    Collection<String> userGroupKeys,
                                    String userTenantId,
                                    String conversationId,
                                    String droppedParticipantUserId)Evaluates the permissions for the given user when dropping a participant from a conversation. | 
| Optional<String> | checkDropParticipantFromConversation(String userId,
                                    String conversationId,
                                    String droppedParticipantUserId)Deprecated. 
 | 
| Optional<String> | checkEditMessage(String userId,
                Collection<String> userGroupKeys,
                String userTenantId,
                String conversationId,
                String messageId)Evaluates the permissions for the given user when editing an existing message of a conversation. | 
| Optional<String> | checkEditMessage(String userId,
                String conversationId,
                String messageId)Deprecated. 
 | 
| Optional<String> | checkJoinParticipantToExistingConversation(String userId,
                                          Collection<String> userGroupKeys,
                                          String userTenantId,
                                          String conversationId,
                                          String newParticipantUserId)Evaluates the permissions for the given user when inviting a new participant to an existing conversation. | 
| Optional<String> | checkJoinParticipantToExistingConversation(String userId,
                                          String conversationId,
                                          String newParticipantUserId)Deprecated. 
 | 
| default Optional<String> | checkPostAction(String userId,
               Collection<String> userGroupKeys,
               String userTenantId,
               String conversationId,
               String actionInstanceId,
               String actionDefinitionId,
               String actionDefinitionKey)Evaluates the permissions for the given user when posting an action message to a conversation. | 
| default Optional<String> | checkPostAction(String userId,
               String conversationId,
               String actionInstanceId,
               String actionDefinitionId,
               String actionDefinitionKey)Deprecated. 
 | 
| Optional<String> | checkPostMedia(String userId,
              Collection<String> userGroupKeys,
              String userTenantId,
              String conversationId,
              String mimeType)Evaluates the permissions for the given user when posing a media to a conversation. | 
| Optional<String> | checkPostMedia(String userId,
              String conversationId,
              String mimeType)Deprecated. 
 | 
| Optional<String> | checkPostMessage(String userId,
                Collection<String> userGroupKeys,
                String userTenantId,
                String conversationId)Evaluates the permissions for the given user when posting a message to a conversation. | 
| Optional<String> | checkPostMessage(String userId,
                String conversationId)Deprecated. 
 | 
| Optional<String> | checkReopenConversation(String userId,
                       Collection<String> userGroupKeys,
                       String userTenantId,
                       String conversationId)Evaluates the permissions for the given user when re-opening an archived conversation. | 
| Optional<String> | checkReopenConversation(String userId,
                       String conversationId)Deprecated. 
 | 
| Optional<String> | checkUpdateConversationAvatar(String userId,
                             Collection<String> userGroupKeys,
                             String userTenantId,
                             String conversationId)Evaluates the permissions for the given user when posing a media to a conversation. | 
| Optional<String> | checkUpdateConversationAvatar(String userId,
                             String conversationId)Deprecated. 
 | 
| Optional<String> | checkUpdateConversationDescription(String userId,
                                  Collection<String> userGroupKeys,
                                  String userTenantId,
                                  String conversationId)Evaluates the permissions for the given user when updating the conversation description. | 
| Optional<String> | checkUpdateConversationDescription(String userId,
                                  String conversationId)Deprecated. 
 | 
| Optional<String> | checkUpdateConversationName(String userId,
                           Collection<String> userGroupKeys,
                           String userTenantId,
                           String conversationId)Evaluates the permissions for the given user when updating the conversation name. | 
| Optional<String> | checkUpdateConversationName(String userId,
                           String conversationId)Deprecated. 
 | 
| boolean | hasAccessToConversation(String userId,
                       Collection<String> userGroupKeys,
                       String userTenantId,
                       String conversationId) | 
| default boolean | hasAccessToConversation(String userId,
                       String conversationId)Deprecated. 
 | 
@Deprecated Optional<String> checkCreateConversation(String userId, String parentConversationId, ConversationBuilder conversationBuilder)
checkCreateConversation(String, Collection, String, String, ConversationBuilder) insteaduserId - the id of the user to check the permissionsparentConversationId - the optional parent conversation, if the new one is a child (sub-conversation),
                             might be nullconversationBuilder - the builder having all the details of the new conversation to be started, needs at
                            least type and subtype to be setOptional<String> checkCreateConversation(String userId, Collection<String> userGroupKeys, String userTenantId, String parentConversationId, ConversationBuilder conversationBuilder)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsparentConversationId - the optional parent conversation, if the new one is a child (sub-conversation),
                             might be nullconversationBuilder - the builder having all the details of the new conversation to be started, needs at
                            least type and subtype to be set@Deprecated Optional<String> checkUpdateConversationName(String userId, String conversationId)
checkUpdateConversationName(String, Collection, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation where the name is being changedOptional<String> checkUpdateConversationName(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation where the name is being changed@Deprecated Optional<String> checkUpdateConversationDescription(String userId, String conversationId)
checkUpdateConversationDescription(String, Collection, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation where the description is being changedOptional<String> checkUpdateConversationDescription(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation where the description is being changed@Deprecated Optional<String> checkArchiveConversation(String userId, String conversationId)
checkArchiveConversation(String, Collection, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation to be archivedOptional<String> checkArchiveConversation(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation to be archived@Deprecated Optional<String> checkReopenConversation(String userId, String conversationId)
checkReopenConversation(String, Collection, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation to be re-openedOptional<String> checkReopenConversation(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation to be re-opened@Deprecated Optional<String> checkJoinParticipantToExistingConversation(String userId, String conversationId, String newParticipantUserId)
checkReopenConversation(String, Collection, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation to join the new participant toOptional<String> checkJoinParticipantToExistingConversation(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId, String newParticipantUserId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation to join the new participant to@Deprecated Optional<String> checkDropParticipantFromConversation(String userId, String conversationId, String droppedParticipantUserId)
checkDropParticipantFromConversation(String, Collection, String, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation from which the participant should be droppeddroppedParticipantUserId - the id of the participant user to be droppedOptional<String> checkDropParticipantFromConversation(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId, String droppedParticipantUserId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation from which the participant should be droppeddroppedParticipantUserId - the id of the participant user to be dropped@Deprecated Optional<String> checkPostMessage(String userId, String conversationId)
checkPostMessage(String, Collection, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation to post the message toOptional<String> checkPostMessage(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation to post the message to@Deprecated Optional<String> checkEditMessage(String userId, String conversationId, String messageId)
checkEditMessage(String, Collection, String, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation to edit a message frommessageId - the id of the message to be editedOptional<String> checkEditMessage(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId, String messageId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation to edit a message frommessageId - the id of the message to be edited@Deprecated default Optional<String> checkPostAction(String userId, String conversationId, String actionInstanceId, String actionDefinitionId, String actionDefinitionKey)
checkPostAction(String, Collection, String, String, String, String, String) insteadactionInstanceId, actionDefinitionId or actionDefinitionKey not null.
 If this method is not implemented it just invokes checkPostMessage(String, String)userId - the id of the user to check the permissionsconversationId - the if of the conversation to post the message toactionInstanceId - the id of the action instance that would be linked to the messageactionDefinitionId - the id of the action definition that should be used for creating the action instance for the messageactionDefinitionKey - the key of the action definition that should be used for creating the action instance for the messageOptional.empty() if it is alloweddefault Optional<String> checkPostAction(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId, String actionInstanceId, String actionDefinitionId, String actionDefinitionKey)
actionInstanceId, actionDefinitionId or actionDefinitionKey not null.
 If this method is not implemented it just invokes checkPostMessage(String, String)userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the if of the conversation to post the message toactionInstanceId - the id of the action instance that would be linked to the messageactionDefinitionId - the id of the action definition that should be used for creating the action instance for the messageactionDefinitionKey - the key of the action definition that should be used for creating the action instance for the messageOptional.empty() if it is allowed@Deprecated Optional<String> checkPostMedia(String userId, String conversationId, String mimeType)
checkPostMedia(String, Collection, String, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation to post the media tomimeType - the mime type of the media that is being postedOptional.empty() if it is allowedOptional<String> checkPostMedia(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId, String mimeType)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation to post the media tomimeType - the mime type of the media that is being postedOptional.empty() if it is allowed@Deprecated Optional<String> checkUpdateConversationAvatar(String userId, String conversationId)
checkUpdateConversationAvatar(String, Collection, String, String) insteaduserId - the id of the user to check the permissionsconversationId - the id of the conversation to post the media toOptional.empty() if it is allowedOptional<String> checkUpdateConversationAvatar(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId)
userId - the id of the user to check the permissionsuserGroupKeys - the group keys of the user to check the permissionsuserTenantId - the tenant id of the user to check the permissionsconversationId - the id of the conversation to post the media toOptional.empty() if it is allowed@Deprecated default boolean hasAccessToConversation(String userId, String conversationId)
hasAccessToConversation(String, Collection, String, String) insteadboolean hasAccessToConversation(String userId, Collection<String> userGroupKeys, String userTenantId, String conversationId)
Copyright © 2019. All rights reserved.