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 anAccountMembervia 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 booleancanEqual(Object other)booleanequals(Object o)com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetContextState()A subset ofTrackinginformation to expose the context state for this object.StringgetId()The unique identifier for this permission.StringgetName()The name for this permission.inthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)A subset ofTrackinginformation to expose the context state for this object.voidsetId(String id)The unique identifier for this permission.voidsetName(String name)The name for this permission.StringtoString()
-
-
-
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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
canEqual
protected boolean canEqual(Object other)
-
-