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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FeatureResponse()
Empty constructorFeatureResponse(Message message, ResponseInfo responseInfo)
Create an instance with message and response infoFeatureResponse(ResponseInfo responseInfo, String name, boolean activated)
Create an instance with empty message, but given response info and features
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Name of the featureboolean
isActivated()
True when the feature is activated, false if notvoid
setActivated(boolean activated)
Set whether the feature is activatedvoid
setName(String name)
Set the feature name-
Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
-
-
-
Field Detail
-
name
protected String name
Feature name
-
activated
protected boolean activated
Flag for feature activation
-
-
Constructor Detail
-
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 infofeatures
- features
-
FeatureResponse
public FeatureResponse(Message message, ResponseInfo responseInfo)
Create an instance with message and response info- Parameters:
message
- messageresponseInfo
- response info
-
-
Method Detail
-
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
-
-