Class AccountRole

    • Constructor Detail

      • AccountRole

        public AccountRole()
    • Method Detail

      • getId

        public String getId()
        The unique identifier for this role.
      • getName

        public String getName()
        The name for this role. This has no purpose other than labeling.

        This value should not be relied on as a unique identifier, but we do validate against duplicate names within the role's context.

        See Also:
        DefaultAccountRoleContextValidator
      • getParentRoleId

        @Nullable
        public String getParentRoleId()
        The id of the parent of this role (if any).

        This role will effectively inherit all of the permissions of its parent and any ancestors further up in the hierarchy.

        Furthermore, there is validation in place to prevent cycles from being created in a role's ancestry (role cannot become a parent of itself).

        See Also:
        DefaultAccountRoleContextValidator, AccountRoleValidator
      • getContextState

        public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
        A subset of Tracking information to expose the context state for this object.
        Specified by:
        getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
        Returns:
        a subset of Tracking information to expose the context state for this object
      • setId

        public void setId​(String id)
        The unique identifier for this role.
      • setName

        public void setName​(String name)
        The name for this role. This has no purpose other than labeling.

        This value should not be relied on as a unique identifier, but we do validate against duplicate names within the role's context.

        See Also:
        DefaultAccountRoleContextValidator
      • setParentRoleId

        public void setParentRoleId​(@Nullable
                                    String parentRoleId)
        The id of the parent of this role (if any).

        This role will effectively inherit all of the permissions of its parent and any ancestors further up in the hierarchy.

        Furthermore, there is validation in place to prevent cycles from being created in a role's ancestry (role cannot become a parent of itself).

        See Also:
        DefaultAccountRoleContextValidator, AccountRoleValidator
      • setContextState

        public void setContextState​(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
        A subset of Tracking information to expose the context state for this object.
        Specified by:
        setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
        Parameters:
        contextState - a subset of Tracking information to expose the context state for this object
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object