Class AdminRoleAncestryHydrationResponse
java.lang.Object
com.broadleafcommerce.adminuser.user.service.hydration.AdminRoleAncestryHydrationResponse
Returned by
AdminRoleHydrationService
in response to hydration requests.- Author:
- Samarth Dhruva (samarthd)
-
Constructor Summary
ConstructorsConstructorDescriptionAdminRoleAncestryHydrationResponse
(boolean successful, String errorMessage, List<AdminRoleRef> 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.success
(@NonNull List<AdminRoleRef> ancestors) toString()
-
Constructor Details
-
AdminRoleAncestryHydrationResponse
public AdminRoleAncestryHydrationResponse(boolean successful, @Nullable String errorMessage, @Nullable List<AdminRoleRef> roleAndAncestors)
-
-
Method Details
-
success
public static AdminRoleAncestryHydrationResponse success(@NonNull @NonNull List<AdminRoleRef> ancestors) -
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
-