public class LocalizationsResponse extends GenericResponse
Constructor and Description |
---|
LocalizationsResponse()
Default constructor for an empty response.
|
LocalizationsResponse(Message message,
int masterId,
int masterNodeId,
Map<Integer,Integer> nodeIds)
Create a response with most fields set.
|
LocalizationsResponse(Message message,
int masterId,
int masterNodeId,
Map<Integer,Integer> nodeIds,
Map<Integer,List<Integer>> status)
Create a response with all fields set.
|
LocalizationsResponse(Message message,
ResponseInfo responseInfo)
Create a response containing only a message and response information.
|
Modifier and Type | Method and Description |
---|---|
int |
getMasterId()
The ID of the master object.
|
int |
getMasterNodeId()
The ID of the node the master object resides in.
|
Map<Integer,Integer> |
getNodeIds()
A map from object IDs to the respective channels of the objects.
|
Map<Integer,List<Integer>> |
getStatus() |
void |
setMasterId(int masterId)
Set the master object ID.
|
void |
setMasterNodeId(int masterNodeId)
Set the ID of the node the master object resides in.
|
void |
setNodeIds(Map<Integer,Integer> nodeIds)
Set the map from object IDs to the respective channels of the objects.
|
void |
setStatus(Map<Integer,List<Integer>> status) |
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
public LocalizationsResponse()
public LocalizationsResponse(Message message, ResponseInfo responseInfo)
message
- The response message.responseInfo
- The response information.public LocalizationsResponse(Message message, int masterId, int masterNodeId, Map<Integer,Integer> nodeIds)
message
- The response message.masterId
- The ID of the master object.masterNodeId
- The node ID of the master object.nodeIds
- A map of IDs of localized copies to their channel IDs.public LocalizationsResponse(Message message, int masterId, int masterNodeId, Map<Integer,Integer> nodeIds, Map<Integer,List<Integer>> status)
message
- The response message.masterId
- The ID of the master object.masterNodeId
- The node ID of the master object.nodeIds
- A map of IDs of localized copies to their channel IDs.status
- A map of status codes to IDs of localized copies with that code.public int getMasterId()
public void setMasterId(int masterId)
masterId
- The new master object id.public int getMasterNodeId()
public void setMasterNodeId(int masterNodeId)
masterNodeId
- The ID of the node the master object resides in.public Map<Integer,Integer> getNodeIds()
public void setNodeIds(Map<Integer,Integer> nodeIds)
nodeIds
- A map from object IDs to the respective channels of the objects.Copyright © 2018 Gentics Software. All rights reserved.