public final class OakpalPlan extends Object implements JsonObjectConvertible
Modifier and Type | Class and Description |
---|---|
static class |
OakpalPlan.Builder |
static interface |
OakpalPlan.JsonKeys |
Modifier and Type | Field and Description |
---|---|
static URL |
BASIC_PLAN_URL
Preferred default plan when no custom classpath is specified, and no plan name is specified.
|
static String |
DEFAULT_PLAN_NAME
When otherwise unspecified, the default name for a plan should be plan.json.
|
static URL |
EMPTY_PLAN_URL
Preferred default plan when a custom classpath is specified without specifying a plan name.
|
public static final URL EMPTY_PLAN_URL
This should not be used as a default when a plan name is specified by a user, but is not found.
public static final URL BASIC_PLAN_URL
This should not be used as a default when a plan name is specified by a user, but is not found.
public static final String DEFAULT_PLAN_NAME
@NotNull public static @NotNull OakpalPlan.JsonKeys keys()
public URL getBase()
public String getName()
public javax.json.JsonObject getOriginalJson()
public List<org.apache.jackrabbit.spi.QNodeTypeDefinition> getJcrNodetypes()
public List<org.apache.jackrabbit.spi.PrivilegeDefinition> getJcrPrivileges()
public List<ForcedRoot> getForcedRoots()
public boolean isEnablePreInstallHooks()
public InstallHookPolicy getInstallHookPolicy()
public javax.json.JsonObject toJson()
toJson
in interface JsonObjectConvertible
public OakMachine.Builder toOakMachineBuilder(@Nullable @Nullable ErrorListener errorListener, @NotNull @NotNull ClassLoader classLoader) throws Exception
Exception
public static OakpalPlan fromJson(@NotNull @NotNull javax.json.JsonObject json)
json
- the json object to read.public static Result<OakpalPlan> fromJson(@NotNull @NotNull URL jsonUrl)
Copyright © 2017–2020. All rights reserved.