Package com.contentful.java.cma.model
Class CMAEditorInterface
- java.lang.Object
-
- com.contentful.java.cma.model.CMAResource
-
- com.contentful.java.cma.model.CMAEditorInterface
-
public class CMAEditorInterface extends CMAResource
This model can be used to control the appearance and usability of ui elements on Contentful.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCMAEditorInterface.ControlThis class represents one control of the editor interface.
-
Constructor Summary
Constructors Constructor Description CMAEditorInterface()This method only exists for compatibility reasons.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMAEditorInterfaceaddControl(CMAEditorInterface.Control control)Adds a new control to the list of controls.java.util.List<CMAEditorInterface.Control>getControls()java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cma.model.CMAResource
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setEnvironmentId, setId, setSpaceId, setSystem, setVersion, setVisibility
-
-
-
-
Constructor Detail
-
CMAEditorInterface
public CMAEditorInterface()
This method only exists for compatibility reasons.You cannot create and upload new editor interfaces to Contentful. Please consider updating an existing one by fetching it first and then using
ModuleEditorInterfaces.update(CMAEditorInterface)on it.
-
-
Method Detail
-
addControl
public CMAEditorInterface addControl(CMAEditorInterface.Control control)
Adds a new control to the list of controls.It might create a new list of controls, if no list is created.
- Parameters:
control- to be added to the list.- Returns:
- this instance for chaining.
-
getControls
public java.util.List<CMAEditorInterface.Control> getControls()
- Returns:
- the list of all controls.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCMAResource- Returns:
- a human readable string, representing the object.
-
-