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 StringACTION_DEFINITION_TYPEstatic StringALL_OPTION_LABELstatic StringCAMPAIGN_DEFINITION_TYPEstatic StringCONDITION_DEFINITION_TYPEprotected static List<String>definitionTypesstatic StringGOAL_DEFINITION_TYPEstatic StringJSON_SCHEMA_DEFINITION_TYPEstatic StringMAPPING_DEFINITION_TYPEstatic StringMERGER_DEFINITION_TYPEstatic StringPATCH_DEFINITION_TYPEstatic StringPERSONA_DEFINITION_TYPEstatic StringPROPERTY_DEFINITION_TYPEstatic StringRULE_DEFINITION_TYPEstatic StringSCORING_DEFINITION_TYPEstatic StringSEGMENT_DEFINITION_TYPEstatic StringVALUE_DEFINITION_TYPE
-
Constructor Summary
Constructors Constructor Description DeploymentCommandSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringaskUserWithAuthorizedAnswer(org.apache.karaf.shell.api.console.Session session, String msg, List<String> authorizedAnswer)Objectexecute()protected StringgetDefinitionTypePath(String definitionType)protected StringgetValuesWithNumber(List<String> values)abstract voidprocessDefinition(String definitionType, URL definitionURL)protected StringpromptMessageToUser(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:
executein 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
-
-