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 booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation 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 thetypeof this access rule.inthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidThe ID of this item list access rule.voidsetItemListId(String itemListId) The ID of the item list this rule provides access to.voidThe role this rule is allowing.voidThe type of this access rule.voidSome value of thetypeof 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 thevalueproperty and is used in performing the actual access validation. SeeDefaultItemListAccessRuleTypefor 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. SeeDefaultItemListAccessRuleRolefor out of box values.- Returns:
 - the role this access rule is allowing
 
 - 
getValue
Some value of thetypeof 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 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
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 thevalueproperty and is used in performing the actual access validation. SeeDefaultItemListAccessRuleTypefor 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. SeeDefaultItemListAccessRuleRolefor out of box values.- Parameters:
 role- the role this access rule is allowing
 - 
setValue
Some value of thetypeof 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 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
 - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() - 
toString
 
 -