Package org.apache.unomi.shell.commands
Class DeploymentCommandSupport
java.lang.Object
org.apache.unomi.shell.commands.DeploymentCommandSupport
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Direct Known Subclasses:
DeployDefinition
,UndeployDefinition
public abstract class DeploymentCommandSupport
extends Object
implements org.apache.karaf.shell.api.action.Action
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
askUserWithAuthorizedAnswer
(org.apache.karaf.shell.api.console.Session session, String msg, List<String> authorizedAnswer) execute()
protected String
getDefinitionTypePath
(String definitionType) protected String
getValuesWithNumber
(List<String> values) abstract void
processDefinition
(String definitionType, URL definitionURL) protected String
promptMessageToUser
(org.apache.karaf.shell.api.console.Session session, String msg)
-
Field Details
-
ALL_OPTION_LABEL
- See Also:
-
CONDITION_DEFINITION_TYPE
- See Also:
-
ACTION_DEFINITION_TYPE
- See Also:
-
GOAL_DEFINITION_TYPE
- See Also:
-
CAMPAIGN_DEFINITION_TYPE
- See Also:
-
PERSONA_DEFINITION_TYPE
- See Also:
-
PROPERTY_DEFINITION_TYPE
- See Also:
-
RULE_DEFINITION_TYPE
- See Also:
-
SEGMENT_DEFINITION_TYPE
- See Also:
-
SCORING_DEFINITION_TYPE
- See Also:
-
PATCH_DEFINITION_TYPE
- See Also:
-
VALUE_DEFINITION_TYPE
- See Also:
-
MERGER_DEFINITION_TYPE
- See Also:
-
MAPPING_DEFINITION_TYPE
- See Also:
-
JSON_SCHEMA_DEFINITION_TYPE
- See Also:
-
definitionTypes
-
-
Constructor Details
-
DeploymentCommandSupport
public DeploymentCommandSupport()
-
-
Method Details
-
processDefinition
-
execute
- Specified by:
execute
in interfaceorg.apache.karaf.shell.api.action.Action
- Throws:
Exception
-
askUserWithAuthorizedAnswer
protected String askUserWithAuthorizedAnswer(org.apache.karaf.shell.api.console.Session session, String msg, List<String> authorizedAnswer) throws IOException - Throws:
IOException
-
promptMessageToUser
protected String promptMessageToUser(org.apache.karaf.shell.api.console.Session session, String msg) throws IOException - Throws:
IOException
-
getValuesWithNumber
-
getDefinitionTypePath
-