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
Fields Modifier and Type Field Description static String
ACTION_DEFINITION_TYPE
static String
ALL_OPTION_LABEL
static String
CAMPAIGN_DEFINITION_TYPE
static String
CONDITION_DEFINITION_TYPE
protected static List<String>
definitionTypes
static String
GOAL_DEFINITION_TYPE
static String
JSON_SCHEMA_DEFINITION_TYPE
static String
MAPPING_DEFINITION_TYPE
static String
MERGER_DEFINITION_TYPE
static String
PATCH_DEFINITION_TYPE
static String
PERSONA_DEFINITION_TYPE
static String
PROPERTY_DEFINITION_TYPE
static String
RULE_DEFINITION_TYPE
static String
SCORING_DEFINITION_TYPE
static String
SEGMENT_DEFINITION_TYPE
static String
VALUE_DEFINITION_TYPE
-
Constructor Summary
Constructors Constructor Description DeploymentCommandSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
askUserWithAuthorizedAnswer(org.apache.karaf.shell.api.console.Session session, String msg, List<String> authorizedAnswer)
Object
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 Detail
-
ALL_OPTION_LABEL
public static final String ALL_OPTION_LABEL
- See Also:
- Constant Field Values
-
CONDITION_DEFINITION_TYPE
public static final String CONDITION_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
ACTION_DEFINITION_TYPE
public static final String ACTION_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
GOAL_DEFINITION_TYPE
public static final String GOAL_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
CAMPAIGN_DEFINITION_TYPE
public static final String CAMPAIGN_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
PERSONA_DEFINITION_TYPE
public static final String PERSONA_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_DEFINITION_TYPE
public static final String PROPERTY_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
RULE_DEFINITION_TYPE
public static final String RULE_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
SEGMENT_DEFINITION_TYPE
public static final String SEGMENT_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
SCORING_DEFINITION_TYPE
public static final String SCORING_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
PATCH_DEFINITION_TYPE
public static final String PATCH_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
VALUE_DEFINITION_TYPE
public static final String VALUE_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
MERGER_DEFINITION_TYPE
public static final String MERGER_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
MAPPING_DEFINITION_TYPE
public static final String MAPPING_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
JSON_SCHEMA_DEFINITION_TYPE
public static final String JSON_SCHEMA_DEFINITION_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public Object execute() throws Exception
- 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
-
-