public final class RoleExternalResourceHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assignOrRemoveExternalForGroup(Long topicId,
BlogRole role,
String externalGroupId,
String externalSystemId,
String externalId)
Assign or remove role for a group of external system
|
static void |
assignOrRemoveExternalForUser(Long blogId,
BlogRole role,
String externalUserId,
String externalSystemId,
String externalObjectId)
Assign or remove role for a user of external system
|
static void |
assignOrRemoveExternalRoleForEntity(Long blogId,
BlogRole role,
Long entityId,
String externalSystemId,
String externalId)
Remove or assign role for entity of external system
|
static void |
assignRoleExternalResources(RoleExternalResource[] roleExternalResources,
Long topicId)
Assign role external resources.
|
static BlogRole |
getBlogRole(ERole eRole)
Get topic role
|
public static void assignOrRemoveExternalForGroup(Long topicId, BlogRole role, String externalGroupId, String externalSystemId, String externalId) throws BlogNotFoundException, CommunoteEntityNotFoundException, BlogAccessException, ExternalObjectNotAssignedException
topicId - identifier of the topicrole - role of the topicexternalGroupId - identifier of group in external systemexternalSystemId - - external system identifierexternalId - - external object identifierBlogNotFoundException - in case the blog does not existCommunoteEntityNotFoundException - in case the user or group does not existBlogAccessException - in case the current user is not allowed to modify the access rightsExternalObjectNotAssignedExceptionpublic static void assignOrRemoveExternalForUser(Long blogId, BlogRole role, String externalUserId, String externalSystemId, String externalObjectId) throws BlogNotFoundException, CommunoteEntityNotFoundException, BlogAccessException, ExternalObjectNotAssignedException
blogId - identifier of the blogrole - role of the blogexternalUserId - - external user identifierexternalSystemId - - external system identifierexternalObjectId - - identifier of external object in external systemBlogNotFoundException - in case the blog does not existCommunoteEntityNotFoundException - in case the user or group does not existBlogAccessException - in case the current user is not allowed to modify the access rightsExternalObjectNotAssignedExceptionpublic static void assignOrRemoveExternalRoleForEntity(Long blogId, BlogRole role, Long entityId, String externalSystemId, String externalId) throws BlogNotFoundException, CommunoteEntityNotFoundException, BlogAccessException, ExternalObjectNotAssignedException
blogId - identifier of a blogrole - role of the blogentityId - identifier of an entity (user/group)externalSystemId - - external system identifierexternalId - - identifier of external object in external systemBlogNotFoundException - blog not foundCommunoteEntityNotFoundException - can not found entity (user/group)BlogAccessException - user is not manager of the topicExternalObjectNotAssignedExceptionpublic static void assignRoleExternalResources(RoleExternalResource[] roleExternalResources, Long topicId) throws BlogNotFoundException, CommunoteEntityNotFoundException, BlogAccessException, ExternalObjectNotAssignedException
roleExternalResources - the external object resources.topicId - the identifier of the topic.BlogNotFoundException - in case the blog does not existCommunoteEntityNotFoundException - in case the user or group does not existBlogAccessException - in case the current user is not allowed to modify the access rightsExternalObjectNotAssignedExceptionCopyright © 2019 Communote team. All rights reserved.