| Package | Description |
|---|---|
| org.springframework.extensions.surf.extensibility | |
| org.springframework.extensions.surf.extensibility.impl |
| Modifier and Type | Method and Description |
|---|---|
void |
ExtensibilityModel.after(ExtensibilityDirectiveData directive)
Places content in the modell after some base content.
|
void |
ExtensibilityModel.before(ExtensibilityDirectiveData directive)
Places content in the model before some base content.
|
void |
ExtensibilityModel.merge(ExtensibilityDirectiveData directive)
Places new content in the base model.
|
void |
ExtensibilityModel.remove(ExtensibilityDirectiveData directive)
Removes content from the model.
|
void |
ExtensibilityModel.replace(ExtensibilityDirectiveData directive)
Replaces content in the model.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultExtensibilityDirectiveData
This is the default class for capturing the data contained within extensibility directives.
|
| Modifier and Type | Method and Description |
|---|---|
ExtensibilityDirectiveData |
AbstractExtensibilityDirective.createExtensibilityDirectiveData(String id,
String action,
String target,
Map params,
freemarker.template.TemplateDirectiveBody body,
freemarker.core.Environment env)
Creates and returns a
DefaultExtensibilityDirectiveData object containing the
primary data needed for processing the current directive invocation. |
| Modifier and Type | Method and Description |
|---|---|
void |
ExtensibilityModelImpl.after(ExtensibilityDirectiveData directiveData)
Generates the output from the supplied directive data and inserts it into the model at the index
after the end of the target defined in the directive.
|
void |
AbstractExtensibilityDirective.after(ExtensibilityDirectiveData directiveData)
The default implementation of this action is simply to delegate the request to the
ExtensibilityModel.after()
method but this has been abstracted into its own method so that extending directives can easily modify the default
behaviour of this action. |
void |
ExtensibilityModelImpl.before(ExtensibilityDirectiveData directiveData)
Generates the output from the supplied directive data and inserts it into the model at the index
before the start of the target defined in the directive.
|
void |
AbstractExtensibilityDirective.before(ExtensibilityDirectiveData directiveData)
The default implementation of this action is simply to delegate the request to the
ExtensibilityModel.before()
method but this has been abstracted into its own method so that extending directives can easily modify the default
behaviour of this action. |
void |
ExtensibilityModelImpl.merge(ExtensibilityDirectiveData directiveData)
Merges the supplied
ExtensibilityDirectiveData instance into the model. |
void |
AbstractExtensibilityDirective.merge(ExtensibilityDirectiveData directiveData,
Map<String,Object> params)
Merges the output of directive data into the content model.
|
void |
ExtensibilityModelImpl.remove(ExtensibilityDirectiveData directiveData)
Finds the elements in the model that match the range (including all nested
and unbound content) with the specified id parameter and removes them.
|
void |
AbstractExtensibilityDirective.remove(ExtensibilityDirectiveData directiveData)
The default implementation of this action is simply to delegate the request to the
ExtensibilityModel.remove()
method but this has been abstracted into its own method so that extending directives can easily modify the default
behaviour of this action. |
void |
ExtensibilityModelImpl.replace(ExtensibilityDirectiveData directiveData)
Replaces the elements of the content model within the range defined by the
id of the supplied directive with the output generated by rendering the supplied
TemplateDirectiveBody. |
void |
AbstractExtensibilityDirective.replace(ExtensibilityDirectiveData directiveData)
The default implementation of this action is simply to delegate the request to the
ExtensibilityModel.replace()
method but this has been abstracted into its own method so that extending directives can easily modify the default
behaviour of this action. |
Copyright © 2005–2016 Alfresco Software. All rights reserved.