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 Details

    • OBJECT_TYPE

      public static final String 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

      public String getObjectType()
      Specified by:
      getObjectType in interface io.meeds.portal.plugin.AclPlugin
    • hasPermission

      public boolean hasPermission(String objectId, String permissionType, org.exoplatform.services.security.Identity identity)
      Specified by:
      hasPermission in interface io.meeds.portal.plugin.AclPlugin