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 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.
|
List<Integer> |
getOffline()
IDs of pages, that are offline
|
List<Integer> |
getOnline()
IDs of pages, that are online
|
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 |
setOffline(List<Integer> offline)
Set offline pages
|
LocalizationsResponse |
setOnline(List<Integer> online)
Set online pages
|
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 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 int getTotal()
public LocalizationsResponse setTotal(int total)
total
- total numberpublic int getHidden()
public LocalizationsResponse setHidden(int hidden)
hidden
- hidden numberpublic LocalizationsResponse setOnline(List<Integer> online)
online
- list of page IDspublic List<Integer> getOffline()
public LocalizationsResponse setOffline(List<Integer> offline)
offline
- list of page IDsCopyright © 2024 Gentics Software. All rights reserved.