Class AccountPermission

  • All Implemented Interfaces:
    com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

    public class AccountPermission
    extends Object
    implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable
    A specific permission that can be granted to an AccountMember via their singular AccountRole.
    Author:
    Chris Kittrell (ckittrell)
    See Also:
    Serialized Form
    • Constructor Detail

      • AccountPermission

        public AccountPermission()
    • Method Detail

      • getId

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

        public String getName()
        The name for this permission. 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:
        DefaultAccountPermissionContextValidator
      • 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 permission.
      • setName

        public void setName​(String name)
        The name for this permission. 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:
        DefaultAccountPermissionContextValidator
      • 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