Package io.meeds.chat.plugin
Class ChatRoomAclPlugin
java.lang.Object
io.meeds.chat.plugin.ChatRoomAclPlugin
- All Implemented Interfaces:
io.meeds.portal.plugin.AclPlugin
@Component
public class ChatRoomAclPlugin
extends Object
implements io.meeds.portal.plugin.AclPlugin
ACL plugin making chat rooms eligible for the platform Favorites framework
(the same mechanism used by Notes, Activities and AI prompts). It registers
itself into
UserACL so the generic FavoriteService/
FavoriteRest can authorize favoriting a chat room: the favorite's
objectId is the Matrix room id and a user may favorite a room only
when they can access it.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFavorite object type for chat rooms; the favorite objectId is the Matrix room id.Fields inherited from interface io.meeds.portal.plugin.AclPlugin
DELETE_PERMISSION_TYPE, EDIT_PERMISSION_TYPE, VIEW_PERMISSION_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(String objectId, String permissionType, org.exoplatform.services.security.Identity identity) voidinit()
-
Field Details
-
OBJECT_TYPE
Favorite object type for chat rooms; the favorite objectId is the Matrix room id.- See Also:
-
-
Constructor Details
-
ChatRoomAclPlugin
public ChatRoomAclPlugin()
-
-
Method Details
-
init
@PostConstruct public void init() -
getObjectType
- Specified by:
getObjectTypein interfaceio.meeds.portal.plugin.AclPlugin
-
hasPermission
public boolean hasPermission(String objectId, String permissionType, org.exoplatform.services.security.Identity identity) - Specified by:
hasPermissionin interfaceio.meeds.portal.plugin.AclPlugin
-