Class MultiDisinheritResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.MultiDisinheritResponse
- All Implemented Interfaces:
Serializable
public class MultiDisinheritResponse
extends com.gentics.contentnode.rest.model.response.GenericResponse
Response containing disinherit information for multiple objects
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate an empty instanceMultiDisinheritResponse
(com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo, Boolean exclude, List<Integer> disinherit, List<Integer> partialDisinherit, List<Integer> inheritable) Create an instanceMultiDisinheritResponse
(List<com.gentics.contentnode.rest.model.response.Message> messages, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Create an instance with message and response info -
Method Summary
Modifier and TypeMethodDescriptionIDs of nodes/channels, in which the object will not be inherited.IDs of nodes/channels, where this object (actually its master) can be inheritedIDs of nodes/channels, in which some objects will not be inherited.Flag for exclusion status of all objects.void
setDisinherit
(List<Integer> disinherit) Set node IDs to disinherit objectvoid
setExclude
(Boolean exclude) Set true to exclude object from multichannellingvoid
setInheritable
(List<Integer> inheritable) Set the node IDs where this object can be inheritedvoid
setPartialDisinherit
(List<Integer> partialDisinherit) Set node IDs for partially disinherited objectMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
MultiDisinheritResponse
public MultiDisinheritResponse()Create an empty instance -
MultiDisinheritResponse
public MultiDisinheritResponse(List<com.gentics.contentnode.rest.model.response.Message> messages, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Create an instance with message and response info- Parameters:
message
- messageresponseInfo
- response info
-
MultiDisinheritResponse
public MultiDisinheritResponse(com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo, Boolean exclude, List<Integer> disinherit, List<Integer> partialDisinherit, List<Integer> inheritable) Create an instance- Parameters:
responseInfo
- response infoexclude
- exclusion flag (may be null)disinherit
- list if disinherited node IDs (for all objects)partialDisinherit
- list of partially disinherited node IDs (some objects are disinherited there)inheritable
- list of inheritable node IDs
-
-
Method Details
-
isExclude
Flag for exclusion status of all objects. True if the object is be excluded from multichannelling, false if not, null if the exclusion status of the objects is not equal.- Returns:
- true for exclusion
-
setExclude
Set true to exclude object from multichannelling- Parameters:
exclude
- true to exclude
-
getDisinherit
IDs of nodes/channels, in which the object will not be inherited. This will be ignored, if the object is excluded from multichannelling- Returns:
- set of node IDs
-
setDisinherit
Set node IDs to disinherit object- Parameters:
disinherit
- set of node IDs
-
getPartialDisinherit
IDs of nodes/channels, in which some objects will not be inherited. This will be ignored, if the object is excluded from multichannelling- Returns:
- set of node IDs
-
setPartialDisinherit
Set node IDs for partially disinherited object- Parameters:
partialDisinherit
- set of node IDs
-
getInheritable
IDs of nodes/channels, where this object (actually its master) can be inherited- Returns:
- list of node IDs
-
setInheritable
Set the node IDs where this object can be inherited- Parameters:
inheritable
- list of node IDs
-