Package com.microstrategy.web.objects
Class WebPromptCustomStylesImpl
- java.lang.Object
-
- com.microstrategy.web.objects.WebPromptCustomStylesImpl
-
- All Implemented Interfaces:
WebPromptCustomStyles
public class WebPromptCustomStylesImpl extends java.lang.Object implements WebPromptCustomStyles
- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringcustomStylepropNamestatic java.lang.StringcustomStylePropSetName-
Fields inherited from interface com.microstrategy.web.objects.WebPromptCustomStyles
AQ_PROMPT, CONSTANT_PROMPT, ELEMENT_PROMPT, HIERARCHICAL_PROMPT, MQ_PROMPT, OBJECT_PROMPT
-
-
Constructor Summary
Constructors Constructor Description WebPromptCustomStylesImpl(WebIServerSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomStyle(java.lang.String promptType, java.lang.String baseStyle, java.lang.String name, java.lang.String description)Add a new custom style.WebPromptCustomStyle[]getAllCustomStyles()java.lang.String[]getBaseStyles(java.lang.String promptType)Returns the base styles referred by custom styles for a certain prompt typeWebPromptCustomStyle[]getCustomStyles(java.lang.String promptType)Returns the list of custom styles corresponding to referred prompt typeWebPromptCustomStyle[]getCustomStyles(java.lang.String promptType, java.lang.String baseStyle)Returns the list of custom styls corresponding to the referred prompt type and base style.java.lang.String[]getPromptTypes()Returns the list of prompt types, for which there is at least one custom styles for.voidremoveCustomStyle(java.lang.String promptType, java.lang.String baseStyle, java.lang.String name)Remove a certain custom style from the repository.
-
-
-
Field Detail
-
customStylePropSetName
public static final java.lang.String customStylePropSetName
- See Also:
- Constant Field Values
-
customStylepropName
public static final java.lang.String customStylepropName
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebPromptCustomStylesImpl
public WebPromptCustomStylesImpl(WebIServerSession session)
-
-
Method Detail
-
addCustomStyle
public void addCustomStyle(java.lang.String promptType, java.lang.String baseStyle, java.lang.String name, java.lang.String description) throws WebObjectsExceptionDescription copied from interface:WebPromptCustomStylesAdd a new custom style. The change will be saved into metadata immediately- Specified by:
addCustomStylein interfaceWebPromptCustomStyles- Parameters:
promptType- The type of prompt this style is for. This is a value ofWebPromptCustomStyles.CONSTANT_PROMPT,WebPromptCustomStyles.OBJECT_PROMPT,WebPromptCustomStyles.ELEMENT_PROMPT,WebPromptCustomStyles.MQ_PROMPT,WebPromptCustomStyles.AQ_PROMPTandWebPromptCustomStyles.HIERARCHICAL_PROMPT.baseStyle- The base style name, which the custom style inherited from.name- The name of the new custom styledescription- The description of the new custom style- Throws:
WebObjectsException- Exception thrown when error happens during the operation.
-
getAllCustomStyles
public WebPromptCustomStyle[] getAllCustomStyles()
- Specified by:
getAllCustomStylesin interfaceWebPromptCustomStyles
-
getCustomStyles
public WebPromptCustomStyle[] getCustomStyles(java.lang.String promptType)
Description copied from interface:WebPromptCustomStylesReturns the list of custom styles corresponding to referred prompt type- Specified by:
getCustomStylesin interfaceWebPromptCustomStyles- Parameters:
promptType- The prompt type which the returned custom styles defined for. This is a value ofWebPromptCustomStyles.CONSTANT_PROMPT,WebPromptCustomStyles.OBJECT_PROMPT,WebPromptCustomStyles.ELEMENT_PROMPT,WebPromptCustomStyles.MQ_PROMPT,WebPromptCustomStyles.AQ_PROMPTandWebPromptCustomStyles.HIERARCHICAL_PROMPT.- Returns:
- The list of custom styles for this prompt type.
-
getCustomStyles
public WebPromptCustomStyle[] getCustomStyles(java.lang.String promptType, java.lang.String baseStyle)
Description copied from interface:WebPromptCustomStylesReturns the list of custom styls corresponding to the referred prompt type and base style.- Specified by:
getCustomStylesin interfaceWebPromptCustomStyles- Parameters:
promptType- The prompt type which the returned custom styles defined for. This is a value ofWebPromptCustomStyles.CONSTANT_PROMPT,WebPromptCustomStyles.OBJECT_PROMPT,WebPromptCustomStyles.ELEMENT_PROMPT,WebPromptCustomStyles.MQ_PROMPT,WebPromptCustomStyles.AQ_PROMPTandWebPromptCustomStyles.HIERARCHICAL_PROMPT.baseStyle- The base style this custom style inherited from.- Returns:
- The list of custom styles for this prompt type and this base style.
-
getBaseStyles
public java.lang.String[] getBaseStyles(java.lang.String promptType)
Description copied from interface:WebPromptCustomStylesReturns the base styles referred by custom styles for a certain prompt type- Specified by:
getBaseStylesin interfaceWebPromptCustomStyles- Parameters:
promptType- the type of prompt this style is for. This is a value ofWebPromptCustomStyles.CONSTANT_PROMPT,WebPromptCustomStyles.OBJECT_PROMPT,WebPromptCustomStyles.ELEMENT_PROMPT,WebPromptCustomStyles.MQ_PROMPT,WebPromptCustomStyles.AQ_PROMPTandWebPromptCustomStyles.HIERARCHICAL_PROMPT.- Returns:
- The array of base style names
-
getPromptTypes
public java.lang.String[] getPromptTypes()
Description copied from interface:WebPromptCustomStylesReturns the list of prompt types, for which there is at least one custom styles for.- Specified by:
getPromptTypesin interfaceWebPromptCustomStyles- Returns:
- The list of prompt types. The value in this array is from
WebPromptCustomStyles.CONSTANT_PROMPT,WebPromptCustomStyles.OBJECT_PROMPT,WebPromptCustomStyles.ELEMENT_PROMPT,WebPromptCustomStyles.MQ_PROMPT,WebPromptCustomStyles.AQ_PROMPTandWebPromptCustomStyles.HIERARCHICAL_PROMPT.
-
removeCustomStyle
public void removeCustomStyle(java.lang.String promptType, java.lang.String baseStyle, java.lang.String name) throws WebObjectsExceptionDescription copied from interface:WebPromptCustomStylesRemove a certain custom style from the repository. The change will be saved to metadata immediately.- Specified by:
removeCustomStylein interfaceWebPromptCustomStyles- Parameters:
promptType- The type of prompt this style is for. This is a value ofWebPromptCustomStyles.CONSTANT_PROMPT,WebPromptCustomStyles.OBJECT_PROMPT,WebPromptCustomStyles.ELEMENT_PROMPT,WebPromptCustomStyles.MQ_PROMPT,WebPromptCustomStyles.AQ_PROMPTandWebPromptCustomStyles.HIERARCHICAL_PROMPT.baseStyle- TODOname- The name of the custom style to be removed.- Throws:
WebObjectsException- Exception thrown when error happens during the operation.
-
-