Class SiteAclPlugin

java.lang.Object
io.meeds.portal.mop.plugin.SiteAclPlugin
All Implemented Interfaces:
AclPlugin

@Component public class SiteAclPlugin extends Object implements AclPlugin
  • Field Details

  • Constructor Details

    • SiteAclPlugin

      public SiteAclPlugin()
  • Method Details

    • init

      @PostConstruct public void init()
    • getObjectType

      public String getObjectType()
      Specified by:
      getObjectType in interface AclPlugin
    • hasPermission

      public boolean hasPermission(String siteId, String permissionType, org.exoplatform.services.security.Identity identity)
      Specified by:
      hasPermission in interface AclPlugin
      Parameters:
      siteId - Object identifier
      permissionType - Permission Type, can be : VIEW, EDIT or DELETE. This parameter can be a custom permission type too, which may be compatible with some plugins only
      identity - User ACL Identity. This will be null when anonymous user
      Returns:
      true if the user can view the identified object