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 |
getHidden()
Number of localizations the user has no permission to see
|
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()
Map of page status to list of page IDs
|
int |
getTotal()
Total number of localizations (including localizations in channels without permission and for folders localizations of subitems)
|
LocalizationsResponse |
setHidden(int hidden)
Set number of hidden localizations
|
LocalizationsResponse |
setMasterId(int masterId)
Set the master object ID.
|
LocalizationsResponse |
setMasterNodeId(int masterNodeId)
Set the ID of the node the master object resides in.
|
LocalizationsResponse |
setNodeIds(Map<Integer,Integer> nodeIds)
Set the map from object IDs to the respective channels of the objects.
|
LocalizationsResponse |
setStatus(Map<Integer,List<Integer>> status)
Set the status map
|
LocalizationsResponse |
setTotal(int total)
Set total number of localizations
|
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 LocalizationsResponse setMasterId(int masterId)
masterId
- The new master object id.public int getMasterNodeId()
public LocalizationsResponse setMasterNodeId(int masterNodeId)
masterNodeId
- The ID of the node the master object resides in.public Map<Integer,Integer> getNodeIds()
public LocalizationsResponse setNodeIds(Map<Integer,Integer> nodeIds)
nodeIds
- A map from object IDs to the respective channels of the objects.public Map<Integer,List<Integer>> getStatus()
public LocalizationsResponse setStatus(Map<Integer,List<Integer>> status)
status
- mappublic int getTotal()
public LocalizationsResponse setTotal(int total)
total
- total numberpublic int getHidden()
public LocalizationsResponse setHidden(int hidden)
hidden
- hidden numberCopyright © 2019 Gentics Software. All rights reserved.