Class FeatureResponse

java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.FeatureResponse
All Implemented Interfaces:
Serializable

public class FeatureResponse extends GenericResponse
Response containing information about a feature
See Also:
  • Field Details

    • name

      protected String name
      Feature name
    • activated

      protected boolean activated
      Flag for feature activation
  • Constructor Details

    • FeatureResponse

      public FeatureResponse()
      Empty constructor
    • FeatureResponse

      public FeatureResponse(ResponseInfo responseInfo, String name, boolean activated)
      Create an instance with empty message, but given response info and features
      Parameters:
      responseInfo - response info
      features - features
    • FeatureResponse

      public FeatureResponse(Message message, ResponseInfo responseInfo)
      Create an instance with message and response info
      Parameters:
      message - message
      responseInfo - response info
  • Method Details

    • getName

      public String getName()
      Name of the feature
      Returns:
      feature name
    • setName

      public void setName(String name)
      Set the feature name
      Parameters:
      name - name
    • isActivated

      public boolean isActivated()
      True when the feature is activated, false if not
      Returns:
      true for activated feature
    • setActivated

      public void setActivated(boolean activated)
      Set whether the feature is activated
      Parameters:
      activated - true for activated feature