Class UserRoleAncestryHydrationResponse
java.lang.Object
com.broadleafcommerce.auth.security.service.hydration.UserRoleAncestryHydrationResponse
Returned by
UserRoleAncestryHydrationService
in response to hydration requests.- Author:
- Samarth Dhruva (samarthd)
-
Constructor Summary
ConstructorDescriptionUserRoleAncestryHydrationResponse
(boolean successful, String errorMessage, List<UserRole> roleAndAncestors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
If the operation was notsuccessful
, this will contain an error message describing why.If the operation wassuccessful
, this will contain the role itself along with all of its ancestors.int
hashCode()
boolean
Reports whether the hydration of the ancestry was successful.toString()
-
Constructor Details
-
UserRoleAncestryHydrationResponse
-
-
Method Details
-
success
-
error
-
isSuccessful
public boolean isSuccessful()Reports whether the hydration of the ancestry was successful. -
getErrorMessage
If the operation was notsuccessful
, this will contain an error message describing why. -
getRoleAndAncestors
If the operation wassuccessful
, 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. -
equals
-
hashCode
public int hashCode() -
toString
-