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

    Constructors
    Constructor
    Description
    Create an empty instance
    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
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    IDs of nodes/channels, in which the object will not be inherited.
    IDs of nodes/channels, where this object (actually its master) can be inherited
    Indicates whether the object should be disinherited by default in new channels.
    True if the object is be excluded from multichannelling, false if not
    void
    setDisinherit(List<Integer> disinherit)
    Set node IDs to disinherit object
    void
    setDisinheritDefault(Boolean disinheritDefault)
    Set whether the object should be disinherited by default in new channels.
    void
    Set true to exclude object from multichannelling
    void
    setInheritable(List<Integer> inheritable)
    Set the node IDs where this object can be inherited

    Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse

    addMessage, getMessages, getResponseInfo, isInBackground, setInBackground, setMessages, setResponseInfo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - message
      responseInfo - 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 info
      exclude - exclusion status flag
      disinherit - disinherited node IDs
      inheritable - inheritable node IDs
  • Method Details

    • isExclude

      public Boolean isExclude()
      True if the object is be excluded from multichannelling, false if not
      Returns:
      true for exclusion
    • setExclude

      public void setExclude(Boolean exclude)
      Set true to exclude object from multichannelling
      Parameters:
      exclude - true to exclude
    • isDisinheritDefault

      public Boolean 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

      public void setDisinheritDefault(Boolean disinheritDefault)
      Set whether the object should be disinherited by default in new channels.
      Parameters:
      disinheritDefault - Set to true if the object should be disinherited in new channels.
    • getDisinherit

      public List<Integer> 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

      public void setDisinherit(List<Integer> disinherit)
      Set node IDs to disinherit object
      Parameters:
      disinherit - set of node IDs
    • getInheritable

      public List<Integer> getInheritable()
      IDs of nodes/channels, where this object (actually its master) can be inherited
      Returns:
      list of node IDs
    • setInheritable

      public void setInheritable(List<Integer> inheritable)
      Set the node IDs where this object can be inherited
      Parameters:
      inheritable - list of node IDs