Class LocalizationsResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.LocalizationsResponse
- All Implemented Interfaces:
Serializable
public class LocalizationsResponse
extends com.gentics.contentnode.rest.model.response.GenericResponse
Response containing localization info
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor for an empty response.LocalizationsResponse
(com.gentics.contentnode.rest.model.response.Message message, int masterId, int masterNodeId, Map<Integer, Integer> nodeIds) Create a response with all fields set.LocalizationsResponse
(com.gentics.contentnode.rest.model.response.Message message, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Create a response containing only a message and response information. -
Method Summary
Modifier and TypeMethodDescriptionint
Number of localizations the user has no permission to seeint
The ID of the master object.int
The ID of the node the master object resides in.A map from object IDs to the respective channels of the objects.IDs of pages, that are offlineIDs of pages, that are onlineint
getTotal()
Total number of localizations (including localizations in channels without permission and for folders localizations of subitems)setHidden
(int hidden) Set number of hidden localizationssetMasterId
(int masterId) Set the master object ID.setMasterNodeId
(int masterNodeId) Set the ID of the node the master object resides in.setNodeIds
(Map<Integer, Integer> nodeIds) Set the map from object IDs to the respective channels of the objects.setOffline
(List<Integer> offline) Set offline pagesSet online pagessetTotal
(int total) Set total number of localizationsMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
LocalizationsResponse
public LocalizationsResponse()Default constructor for an empty response. -
LocalizationsResponse
public LocalizationsResponse(com.gentics.contentnode.rest.model.response.Message message, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Create a response containing only a message and response information.- Parameters:
message
- The response message.responseInfo
- The response information.
-
LocalizationsResponse
public LocalizationsResponse(com.gentics.contentnode.rest.model.response.Message message, int masterId, int masterNodeId, Map<Integer, Integer> nodeIds) Create a response with all fields set.- Parameters:
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.
-
-
Method Details
-
getMasterId
public int getMasterId()The ID of the master object.- Returns:
- The ID of the master object.
-
setMasterId
Set the master object ID.- Parameters:
masterId
- The new master object id.- Returns:
- fluent API
-
getMasterNodeId
public int getMasterNodeId()The ID of the node the master object resides in.- Returns:
- The node the master object resides in.
-
setMasterNodeId
Set the ID of the node the master object resides in.- Parameters:
masterNodeId
- The ID of the node the master object resides in.- Returns:
- fluent API
-
getNodeIds
A map from object IDs to the respective channels of the objects.- Returns:
- A map from object IDs to the respective channels of the objects.
-
setNodeIds
Set the map from object IDs to the respective channels of the objects.- Parameters:
nodeIds
- A map from object IDs to the respective channels of the objects.- Returns:
- fluent API
-
getTotal
public int getTotal()Total number of localizations (including localizations in channels without permission and for folders localizations of subitems)- Returns:
- total number
-
setTotal
Set total number of localizations- Parameters:
total
- total number- Returns:
- fluent API
-
getHidden
public int getHidden()Number of localizations the user has no permission to see- Returns:
- hidden number
-
setHidden
Set number of hidden localizations- Parameters:
hidden
- hidden number- Returns:
- fluent API
-
getOnline
IDs of pages, that are online- Returns:
- list of page IDs
-
setOnline
Set online pages- Parameters:
online
- list of page IDs- Returns:
- fluent API
-
getOffline
IDs of pages, that are offline- Returns:
- list of page IDs
-
setOffline
Set offline pages- Parameters:
offline
- list of page IDs- Returns:
- fluent API
-