Class Group.GroupPortalPermissions

  • Enclosing class:
    Group

    public static class Group.GroupPortalPermissions
    extends java.lang.Object
    Group's portal permissions model.
    Since:
    17.0.0
    Version:
    $Revision: 26587 $ $Date: 2024-08-26 21:09:17 -0300 (Mon, 26 Aug 2024) $
    See Also:
    Group.portalPermissions
    • Constructor Detail

      • GroupPortalPermissions

        public GroupPortalPermissions()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isEmpty

        public boolean isEmpty()
        Returns true if no permissions (either allow or deny) are flagged.
        Returns:
        true if no permissions (either allow or deny) are flagged, false otherwise.
        Since:
        17.0.0
      • getAllow

        public java.util.Collection<PortalPermissions> getAllow()
        Returns the permissions flagged as allow.
        Returns:
        a collection containing the permissions flagged as allow. If no allow permissions are flagged, an empty collection is returned.
        Since:
        17.0.0
      • getDeny

        public java.util.Collection<PortalPermissions> getDeny()
        Returns the permissions flagged as deny.
        Returns:
        a collection containing the permissions flagged as deny. If no deny permissions are flagged, an empty collection is returned.
        Since:
        17.0.0
      • toAccessControlEntry

        public AccessControlEntry toAccessControlEntry​(java.lang.String principalId)
        Converts this permissions to an AccessControlEntry for the given principal id.
        Parameters:
        principalId - the principal identifier.
        Returns:
        the access control entry.
        Since:
        17.0.0