| Package | Description |
|---|---|
| com.adobe.cq.dam.cfm |
Defines the basic API for creating and managing Content Fragments.
|
| com.adobe.cq.dam.cfm.converter |
Provides an extensible framework for converting text formats (like plain text,
Markdown) into an HTML representation that can be used within an AEM page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ContentFragment.addAssociatedContent(org.apache.sling.api.resource.Resource content)
Adds the provided
Resource as associated content. |
ContentFragment |
ContentFragmentManager.create(org.apache.sling.api.resource.Resource parent,
org.apache.sling.api.resource.Resource template,
String name,
String title)
Deprecated.
|
ContentElement |
ContentFragment.createElement(ElementTemplate template)
Creates a new element from the specified template.
|
ContentFragment |
FragmentTemplate.createFragment(org.apache.sling.api.resource.Resource parent,
String name,
String title)
Creates a fragment from this fragment template.
|
VariationTemplate |
ContentFragment.createVariation(String name,
String title,
String description)
Creates a new variation.
|
ContentVariation |
ContentElement.createVariation(VariationTemplate template)
Creates a new variation of the element from the specified template.
|
VersionDef |
Versionable.createVersion(String label,
String comment)
Creates a new version of the implementing element.
|
VersionedContent |
Versionable.getVersionedContent(VersionDef version)
Gets the content of the version of the implementing element that is specified
by the provided
VersionDef. |
Iterator<VersionDef> |
Versionable.listVersions()
Creates an iterator on the versions that are available for the implementing
element.
|
void |
ContentFragment.removeAssociatedContent(org.apache.sling.api.resource.Resource content)
Removes the provided
Resource as associated content. |
void |
ContentElement.removeVariation(ContentVariation variation)
Removes the specified variation.
|
void |
ContentVariation.setContent(String content,
String contentType)
Sets the content of the variation from the provided text value.
|
void |
ContentElement.setContent(String content,
String contentType)
Sets the content of the content element from the provided text value.
|
void |
ContentFragment.setDescription(String description)
Sets the description of the content fragment.
|
void |
ContentFragment.setMetaData(String name,
Object value)
Sets a single meta data property.
|
void |
ContentFragment.setTitle(String title)
Sets the (human-readable) title of the content fragment.
|
void |
ContentVariation.setValue(FragmentData object)
Sets the current value of the variation in the provided object representation.
|
void |
ContentElement.setValue(FragmentData object)
Sets the current value of the element in the provided object representation.
|
void |
FragmentData.setValue(Object value)
Sets the value.
|
void |
ContentVariation.synchronize()
Synchronizes the variation.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ContentTypeConverter.convertToHTML(String text,
String type)
Converts a given text of the specified format to its HTML equivalent.
|
String |
ContentTypeConverter.convertToType(String html,
String type)
Converts the given HTML fragment to an equivalent text of the specified
target format.
|
String |
ContentTypeAdapter.fromHTML(String html)
Converts the given HTML text into the represented text format.
|
String |
ContentTypeAdapter.toHTML(String formattedText)
Converts the given text that is assumed to be in the adapter's format into a
valid HTML fragment.
|
Copyright © 2006-2017 Adobe Systems Incorporated. All Rights Reserved.