Class ItemListAccessRule
java.lang.Object
com.broadleafcommerce.cart.client.domain.ItemListAccessRule
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class ItemListAccessRule
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
A rule allowing access to an item list.
- Author:
- Jacob Mitash
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getId()
The ID of this item list access rule.The ID of the item list this rule provides access to.getRole()
The role this rule is allowing.getType()
The type of this access rule.getValue()
Some value of thetype
of this access rule.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
The ID of this item list access rule.void
setItemListId
(String itemListId) The ID of the item list this rule provides access to.void
The role this rule is allowing.void
The type of this access rule.void
Some value of thetype
of this access rule.toString()
-
Constructor Details
-
ItemListAccessRule
public ItemListAccessRule()
-
-
Method Details
-
getId
The ID of this item list access rule.- Returns:
- the ID of this item list access rule
-
getItemListId
The ID of the item list this rule provides access to.- Returns:
- the name of the corresponding item list
-
getType
The type of this access rule. Describes what is contained in thevalue
property and is used in performing the actual access validation. SeeDefaultItemListAccessRuleType
for out of box values.- Returns:
- the type of this access rule
-
getRole
The role this rule is allowing. Describes how (in terms of what level of access) the item list may be accessed. SeeDefaultItemListAccessRuleRole
for out of box values.- Returns:
- the role this access rule is allowing
-
getValue
Some value of thetype
of this access rule. For example, if the type is an email address, the value should contain an email address of the user being allowed access to the list.- Returns:
- the value of this access rule
-
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
The ID of this item list access rule.- Parameters:
id
- the ID of this item list access rule
-
setItemListId
The ID of the item list this rule provides access to.- Parameters:
itemListId
- the ID of the corresponding item list
-
setType
The type of this access rule. Describes what is contained in thevalue
property and is used in performing the actual access validation. SeeDefaultItemListAccessRuleType
for out of box values.- Parameters:
type
- the type of this access rule
-
setRole
The role this rule is allowing. Describes how (in terms of what level of access) the item list may be accessed. SeeDefaultItemListAccessRuleRole
for out of box values.- Parameters:
role
- the role this access rule is allowing
-
setValue
Some value of thetype
of this access rule. For example, if the type is an email address, the value should contain an email address of the user being allowed access to the list.- Parameters:
value
- the value of this access rule
-
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
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-