Class UserRoleAncestryHydrationResponse

    • Constructor Detail

      • UserRoleAncestryHydrationResponse

        public UserRoleAncestryHydrationResponse​(boolean successful,
                                                 @Nullable
                                                 String errorMessage,
                                                 @Nullable
                                                 List<UserRole> roleAndAncestors)
    • Method Detail

      • isSuccessful

        public boolean isSuccessful()
        Reports whether the hydration of the ancestry was successful.
      • getErrorMessage

        @Nullable
        public String getErrorMessage()
        If the operation was not successful, this will contain an error message describing why.
      • getRoleAndAncestors

        @Nullable
        public List<UserRole> getRoleAndAncestors()
        If the operation was successful, this will contain the role itself along with all of its ancestors. This will be sorted starting with the role itself, followed by its direct parent and so on with the last element being the root-level ancestor.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object