|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RenderManager
A manager to manage filters to be used for render operations. This manager contains both adminstrative and user oriented methods; most uses of this manager will use the render methods to render wiki to html, html to wiki, etc as determined by a render context.
Renderer,
RenderFilter,
RenderMacro| Method Summary | |
|---|---|
void |
addRenderPlugin(com.jivesoftware.community.renderer.RenderPlugin filter)
Adds a new filter to the filter stack. |
void |
addRenderPlugin(String clazz)
Installs a new class into the list of render pugins for the system. |
void |
disablePluginForField(com.jivesoftware.community.renderer.RenderPlugin plugin,
JiveContentObject.Field field)
Disables a plugin for a field |
void |
enablePluginForField(com.jivesoftware.community.renderer.RenderPlugin plugin,
JiveContentObject.Field field)
Enables a plugin for a field |
List<JiveContentObject.Field> |
getEnabledFields(com.jivesoftware.community.renderer.RenderPlugin plugin)
Returns a list of fields that are enabled for a plugin |
int |
getLocalRenderPluginCount()
Returns the count of currently installed render plugins. |
RenderManager |
getRenderManager(JiveContainer container)
Returns the RenderManager associated with the container. |
com.jivesoftware.community.renderer.RenderPlugin |
getRenderPlugin(String name)
Return the render filter with the specified name |
List<com.jivesoftware.community.renderer.RenderPlugin> |
getRenderPlugins()
Returns an array of RenderFilter objects that list all the currently configured render filters. |
void |
removeAllPlugins()
Removes all filters from the current context. |
void |
removeRenderPlugin(String name)
Removes the specified filter from the list of currently configured filters. |
String |
render(JiveObject source,
RenderStrategy strategy,
Document doc)
Applies filters to the specified string. |
String |
render(JiveObject source,
RenderStrategy strategy,
String string)
Applies filters to the specified string. |
String |
renderField(JiveContentObject source,
RenderStrategy strategy,
JiveContentObject.Field field)
Applies filters to the specified string. |
void |
save()
Saves all plugins and associated properties to the persistent store. |
void |
setRenderPlugins(List<com.jivesoftware.community.renderer.RenderPlugin> plugins)
Sets render plugins. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
String renderField(JiveContentObject source,
RenderStrategy strategy,
JiveContentObject.Field field)
renderType
will be used to generate the list of filter to apply to the passed in string.
The RenderStrategy.RENDER_ALL render stategy will be used.
source - the source object for which we're rendering a string for.field - the Field to render.
RenderType
String render(JiveObject source,
RenderStrategy strategy,
String string)
renderType
will be used to the proper list of filters to apply to the passed in string.
source - the source object for which we're rendering a string for.strategy - the render strategy to use to render the string.string - the string to render.
RenderType
String render(JiveObject source,
RenderStrategy strategy,
Document doc)
renderType
will be used to the proper list of filters to apply to the passed in string.
source - the source object for which we're rendering a string for.strategy - the render strategy to use to render the string.doc - the document to render.
RenderType
int getLocalRenderPluginCount()
throws UnauthorizedException
UnauthorizedException - if not an administator.
com.jivesoftware.community.renderer.RenderPlugin getRenderPlugin(String name)
throws UnauthorizedException
name - the name of the filter to return
UnauthorizedException - if not an administator.
IndexOutOfBoundsException - if the filterIndex is not valid.
List<com.jivesoftware.community.renderer.RenderPlugin> getRenderPlugins()
throws UnauthorizedException
UnauthorizedException - if not a system administator.
void addRenderPlugin(String clazz)
throws UnauthorizedException,
ClassNotFoundException
clazz - the fully qualified name of the class to add to the list of available
render plugins in the system.
UnauthorizedException - if not a system administator.
ClassNotFoundException - if the class could not be loaded.
void setRenderPlugins(List<com.jivesoftware.community.renderer.RenderPlugin> plugins)
throws UnauthorizedException
plugins - list of render plugins to add to the system.
UnauthorizedException - if not a system administator.void addRenderPlugin(com.jivesoftware.community.renderer.RenderPlugin filter)
filter - The render filter instance to add.
void removeRenderPlugin(String name)
throws UnauthorizedException
name - the name of the plugin to remove.
UnauthorizedException - if not an administator.
void save()
throws UnauthorizedException
Warning: Calling this method will expire all pertinent caches so that cache consistency is maintained.
UnauthorizedException - if not a system administator.
void removeAllPlugins()
throws UnauthorizedException
UnauthorizedException - if not an adminRenderManager getRenderManager(JiveContainer container)
void enablePluginForField(com.jivesoftware.community.renderer.RenderPlugin plugin,
JiveContentObject.Field field)
plugin - plugin to enablefield - field to enable on
void disablePluginForField(com.jivesoftware.community.renderer.RenderPlugin plugin,
JiveContentObject.Field field)
plugin - plugin to enablefield - field to enable onList<JiveContentObject.Field> getEnabledFields(com.jivesoftware.community.renderer.RenderPlugin plugin)
plugin - plugin to enable
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||