public class JcrBrowserContentAppTask
extends info.magnolia.module.delta.AbstractTask
/modules/ui-admincentral/apps
. An entry for the app will be also created in the app launcher layout under the specified app group.
The app group is assumed to be existing at the time of executing this task. The task relies on the existence of the ui-admincentral
(part of Magnolia UI project) at its default location under /modules/ui-admincentral
as it
uses Magnolia's extension mechanism in order to inherit most of its configuration. Being the configuration inherited from ui-admincentral the tree will be editable and include properties.Constructor and Description |
---|
JcrBrowserContentAppTask(String appName,
String label,
String appGroup,
String icon,
String workspace,
String absRootPath) |
JcrBrowserContentAppTask(String appName,
String label,
String appGroup,
String icon,
String workspace,
String absRootPath,
NodeTypeDefinition mainNodeType) |
Modifier and Type | Method and Description |
---|---|
protected void |
createMainSubapp(javax.jcr.Node appNode) |
void |
execute(info.magnolia.module.InstallContext ctx) |
String |
getAppGroup() |
String |
getAppName() |
String |
getIcon() |
String |
getLabel() |
NodeTypeDefinition |
getMainNodeType() |
String |
getRootPath() |
String |
getWorkspace() |
public JcrBrowserContentAppTask(String appName, String label, String appGroup, String icon, String workspace, String absRootPath)
appName
- a string representing a unique name for this app. If not unique, the task will fail.label
- the app label to be displayed in the app launcher.appGroup
- a string representing one of the default app groups (i.e. edit, manage, dev, tools
) or a custom one (which is assumed to be already existing when running this task).icon
- a string representing an icon. If not set defaults to icon-app
.workspace
- name of the workspace. If null or empty the task will fail.absRootPath
- the absolute path to use as the root for the content app to be created. If not set, defaults to /
. If not absolute, the task will fail.public JcrBrowserContentAppTask(String appName, String label, String appGroup, String icon, String workspace, String absRootPath, NodeTypeDefinition mainNodeType)
mainNodeType
- the main node type for the specified workspace. If null, the name defaults to NodeTypes.ContentNode.NAME
.JcrBrowserContentAppTask
public final void execute(info.magnolia.module.InstallContext ctx) throws info.magnolia.module.delta.TaskExecutionException
info.magnolia.module.delta.TaskExecutionException
protected void createMainSubapp(javax.jcr.Node appNode) throws info.magnolia.module.delta.TaskExecutionException
info.magnolia.module.delta.TaskExecutionException
public String getAppName()
public String getLabel()
public String getAppGroup()
public String getIcon()
public String getRootPath()
public String getWorkspace()
public NodeTypeDefinition getMainNodeType()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.