Class DisinheritResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.DisinheritResponse
- All Implemented Interfaces:
Serializable
public class DisinheritResponse
extends com.gentics.contentnode.rest.model.response.GenericResponse
Response containing disinherit information
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate an empty instanceDisinheritResponse
(com.gentics.contentnode.rest.model.response.Message message, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Create an instance with message and response infoDisinheritResponse
(com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo, Boolean exclude, Boolean disinheritDefault, List<Integer> disinherit, List<Integer> inheritable) Create an instance with response info and data -
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 inheritedIndicates whether the object should be disinherited by default in new channels.True if the object is be excluded from multichannelling, false if notvoid
setDisinherit
(List<Integer> disinherit) Set node IDs to disinherit objectvoid
setDisinheritDefault
(Boolean disinheritDefault) Set whether the object should be disinherited by default in new channels.void
setExclude
(Boolean exclude) Set true to exclude object from multichannellingvoid
setInheritable
(List<Integer> inheritable) Set the node IDs where this object can be inheritedMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
DisinheritResponse
public DisinheritResponse()Create an empty instance -
DisinheritResponse
public DisinheritResponse(com.gentics.contentnode.rest.model.response.Message message, com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo) Create an instance with message and response info- Parameters:
message
- messageresponseInfo
- response info
-
DisinheritResponse
public DisinheritResponse(com.gentics.contentnode.rest.model.response.ResponseInfo responseInfo, Boolean exclude, Boolean disinheritDefault, List<Integer> disinherit, List<Integer> inheritable) Create an instance with response info and data- Parameters:
responseInfo
- response infoexclude
- exclusion status flagdisinherit
- disinherited node IDsinheritable
- inheritable node IDs
-
-
Method Details
-
isExclude
True if the object is be excluded from multichannelling, false if not- Returns:
- true for exclusion
-
setExclude
Set true to exclude object from multichannelling- Parameters:
exclude
- true to exclude
-
isDisinheritDefault
Indicates whether the object should be disinherited by default in new channels.- Returns:
true
if the object should be disinherited in new channels,false
otherwise.
-
setDisinheritDefault
Set whether the object should be disinherited by default in new channels.- Parameters:
disinheritDefault
- Set totrue
if the object should be disinherited in new channels.
-
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
-
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
-