Class PrivilegeSummary

    • Method Detail

      • getAllAuthorities

        public Set<String> getAllAuthorities()
        All the authorities for the current authentication. This includes authorities from user's flat permissions, flat roles and their ancestors, restricted roles and their ancestors, and restricted permissions. This also includes authorities from server's flat permissions, and flat roles and their ancestors.

        Ultimately, if the authentication was granted an authority anywhere, within restriction(s) or otherwise, it should appear in this set.

      • getRestrictions

        public Map<String,​Set<String>> getRestrictions()
        All of the User.getRestrictions() for the current authentication.

        This is a map from restriction types to restriction targets.

        An empty map indicates the user is unrestricted.

      • setAllAuthorities

        public void setAllAuthorities​(Set<String> allAuthorities)
        All the authorities for the current authentication. This includes authorities from user's flat permissions, flat roles and their ancestors, restricted roles and their ancestors, and restricted permissions. This also includes authorities from server's flat permissions, and flat roles and their ancestors.

        Ultimately, if the authentication was granted an authority anywhere, within restriction(s) or otherwise, it should appear in this set.

      • setRestrictions

        public void setRestrictions​(Map<String,​Set<String>> restrictions)
        All of the User.getRestrictions() for the current authentication.

        This is a map from restriction types to restriction targets.

        An empty map indicates the user is unrestricted.

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object