Class FeatureResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.FeatureResponse
- All Implemented Interfaces:
Serializable
Response containing information about a feature
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEmpty 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
Modifier and TypeMethodDescriptiongetName()
Name of the featureboolean
True when the feature is activated, false if notvoid
setActivated
(boolean activated) Set whether the feature is activatedvoid
Set the feature nameMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
name
Feature name -
activated
protected boolean activatedFlag for feature activation
-
-
Constructor Details
-
FeatureResponse
public FeatureResponse()Empty constructor -
FeatureResponse
Create an instance with empty message, but given response info and features- Parameters:
responseInfo
- response infofeatures
- features
-
FeatureResponse
Create an instance with message and response info- Parameters:
message
- messageresponseInfo
- response info
-
-
Method Details
-
getName
Name of the feature- Returns:
- feature name
-
setName
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
-