Class ShareItemListRequest
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.ShareItemListRequest
- All Implemented Interfaces:
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The ID of the item list being shared.getRole()
The role that the targets this item list is being shared with will be granted.Describes who this list is being shared with.The type of values that this list will be shared with (e.g email address, customer ID, etc.).int
hashCode()
void
The ID of the item list being shared.void
The role that the targets this item list is being shared with will be granted.void
setTargets
(Set<ShareItemListRequest.Target> targets) Describes who this list is being shared with.void
setValueType
(String valueType) The type of values that this list will be shared with (e.g email address, customer ID, etc.).toString()
-
Constructor Details
-
ShareItemListRequest
public ShareItemListRequest()
-
-
Method Details
-
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
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. SeeDefaultItemListAccessRuleType
for the default supported values.- Returns:
- the type of value this item list is being shared with
-
getRole
The role that the targets this item list is being shared with will be granted. SeeItemListAccessRule.getRole()
for how this is used. SeeDefaultItemListAccessRuleRole
for the default supported values.- Returns:
- the role that the targets this item list is being shared with will be granted
-
getTargets
Describes who this list is being shared with. -
setListId
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
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. SeeDefaultItemListAccessRuleType
for the default supported values.- Parameters:
valueType
- the type of value this item list is being shared with
-
setRole
The role that the targets this item list is being shared with will be granted. SeeItemListAccessRule.getRole()
for how this is used. SeeDefaultItemListAccessRuleRole
for the default supported values.- Parameters:
role
- the role that the targets this item list is being shared with will be granted
-
setTargets
Describes who this list is being shared with. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-