Package com.day.cq.wcm.api.components
Class InplaceEditingConfig
java.lang.Object
com.day.cq.wcm.api.components.InplaceEditingConfig
Implements the basic inplace editing configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault path to the editor-specific config nodestatic final StringName of property containing the flag if inplace editing is activestatic final StringName of property containing the path to the editor's configuration nodestatic final StringName of property containing the inplace editor's type -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new basic inplace editing configuration from the specified configuration.InplaceEditingConfig(Node configNode) Creates a new basic inplace editing configuration from the given configurationNode. -
Method Summary
Modifier and TypeMethodDescriptionReturns a unmodifiable map of configurations of inplace child editors.Gets the path to the editor-specific configuration.Gets the type of inplace editor to be used.booleanisActive()Determines if inplace editing is active for this component.
-
Field Details
-
PN_ACTIVE
Name of property containing the flag if inplace editing is active- See Also:
-
PN_EDITOR_TYPE
Name of property containing the inplace editor's type- See Also:
-
PN_CONFIG_PATH
Name of property containing the path to the editor's configuration node- See Also:
-
NN_CONFIG_DEFAULT
Default path to the editor-specific config node- See Also:
-
-
Constructor Details
-
InplaceEditingConfig
Creates a new basic inplace editing configuration from the given configurationNode.- Parameters:
configNode- The node to generate the basic configuration from.- Throws:
RepositoryException- This exception is thrown for repository access related issues.
-
InplaceEditingConfig
Creates a new basic inplace editing configuration from the specified configuration.- Parameters:
config- Existing configuration to clone
-
-
Method Details
-
isActive
public boolean isActive()Determines if inplace editing is active for this component.- Returns:
trueif inplace editing is active for this component
-
getEditorType
Gets the type of inplace editor to be used. The returnedStringmust match a inplace editor module that is registered clientside under that type. Note thatisActivewill returnfalseif no inplace editing module is specified (and getInplaceEditor will returnnull)- Returns:
- Type of the inplace module;
nullif no inplace editing module is defined
-
getConfigPath
Gets the path to the editor-specific configuration. The editor will use this path to load its configuration through an JSON request accordingly. Note that there must not necessarily be a node at the specified path; hence the clientside implementation must internally use suitable default values- Returns:
- Path to the configuration node
-
getChildEditors
Returns a unmodifiable map of configurations of inplace child editors. the keys are the ids of the configs.- Returns:
- map of inplace child editors configurations.
-