These are the essential interfaces and classes in the Magnolia API. See also full API Javadoc.
: Main interface for apps. Apps are started and managed by the
: Describes an app.
: Represents a view open in a tab within an app.
. Describes a subapp.
. Provides functionality used by an app to interact with the Magnolia shell.
sendLocalMessage(Message message). Sends a message to the current user.
sendUserMessage(String user, Message message). Sends a message to a named user.
broadcastMessage(Message message). Sends a message to all users.
. Provides functionality used by a sub app to interact with the Magnolia shell.
. Extends the BaseApp by the ability to open a choose dialog.
. Base implementation of a content subApp.
. Describes a browser subapp.
. Base implementation of an item subApp.
. Descriptor for Item subApps. Holds the form definition to build a form and needed fields to create a new node.
The UI Framework is a collection of components for building the user interface in apps.
. Represents a UI context and allows components, views and presenters to interact with the context that contains them.
. Defines a workbench. Contains all elements which define a workbench configuration.
. Displays a workbench.
. Responsible for creating, configuring and updating a tree of items according to the workbench definition.
. Responsible for creating, configuring and updating a list of items according to the workbench definition.
. Responsible for creating, configuring and updating a thumbnail grid of items according to the workbench definition.
. Defines a column in a workbench.
. Defines how a column's value is displayed in the UI.
. An action is executed in response to user interaction with the UI. For instance clicking on an item in a menu.
. Action definitions are used to configure actions in many parts of the UI. The definition holds a name which is used to identify the action within a certain scope, for instance within a sub app.
. The definition for an action bar, made of sections and groups of actions.
Location and navigation
. Represents a location within the application, such as the open view and the selected item.
. Manages the user's location in the application and controls location changes.
. Decouples the presenters and the Vaadin application. Provides methods to show messages and configuration dialogs.
. Models a message.
. Manages user messages.
. Fires events to a set of registered handlers.
. Event fired when content is changed in a workspace. Holds an itemId of an item that is related to the changes made. If the change was a deletion the itemId is the parent of the deleted item. If something was added the itemId is for the new item.
Context is an abstraction layer representing the environment of the current process which can be a request process, a scheduled task or a command execution in the workflow. The context provides access to the most important components such as hierarchy managers jcr session, current user, context attributes and parameters, response object and so on. The context is initialized at the beginning of each process. Context attributes will have a different meaning based on the environment. In case of a request, the attributes are request attributes and request parameters. Magnolia implements context using a thread-local class.
. This static helper class is the programmer's entry point to work with the current context.
getInstance() Returns the current context.
getUser() Returns the current user.
getJCRSession(String workspacename). Returns a JCR session to the provided workspace.
getAttribute(name) Returns a named context attribute. In case of a request, this can be a request parameter, request attribute or session attribute.
getWebContext() Returns the Web context if the current thread is processing a request.
. Context interface specialized for servlet requests; knows about HttpServletRequest and HttpServletResponse. Should be used as little as possible as it makes the calling code dependent on the servlet API. Use MgnlContext instead if possible.
getRequest() Returns the current servlet request object.
getResponse() Returns the current servlet response object.
. Contains information about the current request and rendering process. It is initialized by the ContentTypeFilter.
getOriginalURI() Original URI is the URI as requested by the client.
getCurrentURI() URI as mapped by Magnolia at a given point in processing. This value is for instance changed by the i18n filter, virtual URI mapping etc.
getMainContentNode() The content with which we start the rendering process. In general this is the page node.
getCurrentContentNode() The content that is processed at the moment. First this is typically the page, then a component and so on.
Rendering and templating
. Entry point for the rendering.
render(javax.jcr.Node content, OutputProvider out) Renders the content with its assigned template.
render(javax.jcr.Node content, RenderableDefinition definition, Map<String,Object> contextObjects, OutputProvider out) Uses a specific RenderableDefinition to render the content and exposes the given context objects to the template script.
. Abstract rendering definition used for templates and components.
getName() Name of the template definition.
getRenderType() Defines the renderer to use. For instance JSP or Freemarker.
RenderableDefinition which supports editing in the page editor and can define their areas.
. The model used in the rendering process. It is instantiated for each rendering and ties the current content and rendering definition together. Concrete classes provide helper methods used in the template script. The
execute method is executed before the rendering starts, a useful place to execute any business logic. The model is available in the template script under the named model.
getParent() Parent model. Most often the model of the page rendering.
getNode() The content node tied to this model.
getContent() Map representation of the content node tied to this model.
getDefinition() The renderable (template, area or component) tied to this model.
execute() Called after all properties were set.
. Responsible for generating the actual response from request data and a template. A typical JSP implementation will simply forward the request to the JSP through request dispatcher. You can bind a specific implementation to a template type.
. Provides all information needed in the rendering process.
. Map based representation of JCR content. This class is used in template scripts to allow notations like
content.<property name>. It first tries to read a property with name (key) and, if not present, checks for the presence of a child node. Special property names map to JCR methods:
- Templating functions
. An object that exposes methods useful for templates. The object is exposed to template scripts as
. Utility methods for link transformations and handling.
makePathRelative(String url, String absolutePath)
. Each template has a category like home, section or content.
. Site configuration Java bean. Default site configuration merged with the user-defined site.
. Interface for filters managed by Magnolia, exposing support for the bypass mechanism.
. A Magnolia filter configured in the
config repository. This filter is bypassable.
. Holds instances and definitions of modules.
. Provides deltas to be applied to install/update/uninstall modules. A module that needs to handle its own install/updates should provide an implementation of this interface.
. Manages the lifecyle of an installed instance of a Magnolia Module. Implementing this interface is optional.
getNode(java.lang.String absPath). Returns the node at the specified absolute path in the workspace.
getNodeByIdentifier(java.lang.String id) Returns the node specified by the given identifier.
save(). Validates all pending changes currently recorded in this Session.
. Represents a node in the repository.
getNode(java.lang.String relPath). Returns the node at
relPath relative to this node.
getNodes() Returns all child nodes of this node accessible through the current
getNodes(java.lang.String namePattern) Gets all child nodes of this node accessible through the current
Session that match
getProperty(java.lang.String relPath) Returns the property at relPath relative to this node.
setProperty(java.lang.String name, Value value) Sets the single-value property of this node called name to the specified value.
Propertyobject represents the smallest granularity of content storage.
. Utility methods to collect data from JCR repository.
. Property-related utility methods.
. Session-related utility methods.
. Entry point for using the node builder API. Also see the
classes for usage of the node builder API in
. Applies custom behavior in a graph of JCR objects by wrapping objects. Allows for expressing the logic in a single place.
. Magnolia-defined node types and their properties and convenience methods.
isActivated(javax.jcr.Node node) Returns true if the node has been activated.
getCreated(javax.jcr.Node node) Returns the creation date of a node or null if creation date isn't set.
. Transforms nodes to beans or maps. The transformer is use to resolve classes or to instantiate beans.
. Contract for transformation from node to java beans.
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))