Class AccountPermission
- java.lang.Object
-
- com.broadleafcommerce.customer.domain.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 anAccountMember
via their singularAccountRole
.- Author:
- Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccountPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getContextState()
A subset ofTracking
information to expose the context state for this object.String
getId()
The unique identifier for this permission.String
getName()
The name for this permission.int
hashCode()
void
setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
A subset ofTracking
information to expose the context state for this object.void
setId(String id)
The unique identifier for this permission.void
setName(String name)
The name for this permission.String
toString()
-
-
-
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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
canEqual
protected boolean canEqual(Object other)
-
-