Class ShareItemListRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.ShareItemListRequest
-
- All Implemented Interfaces:
Serializable
public class ShareItemListRequest extends Object implements Serializable
A request body to share an item list. Describes which item list to share and who it should be shared with with which level of access.- Author:
- Jacob Mitash
- See Also:
ItemList, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShareItemListRequest.Target
-
Constructor Summary
Constructors Constructor Description ShareItemListRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetListId()The ID of the item list being shared.StringgetRole()The role that the targets this item list is being shared with will be granted.Set<ShareItemListRequest.Target>getTargets()Describes who this list is being shared with.StringgetValueType()The type of values that this list will be shared with (e.g email address, customer ID, etc.).inthashCode()voidsetListId(String listId)The ID of the item list being shared.voidsetRole(String role)The role that the targets this item list is being shared with will be granted.voidsetTargets(Set<ShareItemListRequest.Target> targets)Describes who this list is being shared with.voidsetValueType(String valueType)The type of values that this list will be shared with (e.g email address, customer ID, etc.).StringtoString()
-
-
-
Method Detail
-
getListId
public String getListId()
The ID of the item list being shared. This will be populated from the request path.- Returns:
- the ID of the item list being shared
-
getValueType
public String getValueType()
The type of values that this list will be shared with (e.g email address, customer ID, etc.). This corresponds toShareItemListRequest.Target.value. SeeItemListAccessRule.getType()for how this is used. SeeDefaultItemListAccessRuleTypefor the default supported values.- Returns:
- the type of value this item list is being shared with
-
getRole
public String getRole()
The role that the targets this item list is being shared with will be granted. SeeItemListAccessRule.getRole()for how this is used. SeeDefaultItemListAccessRuleRolefor the default supported values.- Returns:
- the role that the targets this item list is being shared with will be granted
-
getTargets
public Set<ShareItemListRequest.Target> getTargets()
Describes who this list is being shared with.
-
setListId
public void setListId(String listId)
The ID of the item list being shared. This will be populated from the request path.- Parameters:
listId- the ID of the item list being shared
-
setValueType
public void setValueType(String valueType)
The type of values that this list will be shared with (e.g email address, customer ID, etc.). This corresponds toShareItemListRequest.Target.value. SeeItemListAccessRule.getType()for how this is used. SeeDefaultItemListAccessRuleTypefor the default supported values.- Parameters:
valueType- the type of value this item list is being shared with
-
setRole
public void setRole(String role)
The role that the targets this item list is being shared with will be granted. SeeItemListAccessRule.getRole()for how this is used. SeeDefaultItemListAccessRuleRolefor the default supported values.- Parameters:
role- the role that the targets this item list is being shared with will be granted
-
setTargets
public void setTargets(Set<ShareItemListRequest.Target> targets)
Describes who this list is being shared with.
-
canEqual
protected boolean canEqual(Object other)
-
-