public class InsertToGroup extends Request
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
cascadeCreate
Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked).
|
protected java.lang.String |
groupId
ID of the group to be inserted into.
|
protected java.lang.String |
itemId
ID of the item iff `itemType` is `item`.
|
protected java.lang.String |
itemType
`item` iff the regular item from the catalog is to be inserted, `group` iff group is inserted as the item.
|
Constructor and Description |
---|
InsertToGroup(java.lang.String groupId,
java.lang.String itemType,
java.lang.String itemId)
Construct the request
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getBodyParameters()
Get body parameters
|
boolean |
getCascadeCreate() |
java.lang.String |
getGroupId() |
HTTPMethod |
getHTTPMethod() |
java.lang.String |
getItemId() |
java.lang.String |
getItemType() |
java.lang.String |
getPath() |
java.util.Map<java.lang.String,java.lang.Object> |
getQueryParameters()
Get query parameters
|
InsertToGroup |
setCascadeCreate(boolean cascadeCreate) |
getEnsureHttps, getTimeout, setTimeout
protected java.lang.String groupId
protected java.lang.String itemType
protected java.lang.String itemId
protected java.lang.Boolean cascadeCreate
public InsertToGroup(java.lang.String groupId, java.lang.String itemType, java.lang.String itemId)
groupId
- ID of the group to be inserted into.itemType
- `item` iff the regular item from the catalog is to be inserted, `group` iff group is inserted as the item.itemId
- ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.public InsertToGroup setCascadeCreate(boolean cascadeCreate)
cascadeCreate
- Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked). This concerns both the `groupId` and the `groupId`. If `cascadeCreate` is set true, the behavior also depends on the `itemType`. Either items or group may be created if not present in the database.public java.lang.String getGroupId()
public java.lang.String getItemType()
public java.lang.String getItemId()
public boolean getCascadeCreate()
public HTTPMethod getHTTPMethod()
getHTTPMethod
in class Request
public java.lang.String getPath()
public java.util.Map<java.lang.String,java.lang.Object> getQueryParameters()
getQueryParameters
in class Request
public java.util.Map<java.lang.String,java.lang.Object> getBodyParameters()
getBodyParameters
in class Request