MicroStrategy ONE
AbstractConfigurableParameterBuilder Class
The AbstractConfigurableParameterBuilder class extends the AbstractParameterBuilder class and can be used in conjunction with an external properties file that allows users to define a set of URL or form parameter names that are to be persisted with every request. This class is used by Web Universal when it is deployed in a portal environment to ensure that a given list of parameters are persisted from the request to every form and URL input built by the Web application.
The AbstractConfigurableParameterBuilder class overrides the init method, which reads the external properties file, called ParameterBuilder.properties, and looks for a list of parameters that is be persisted from the request’s URL/form input parameters. It then checks the request for those parameters, and if it finds them, it adds them to the internal list of parameters in the ParameterBuilder.
The external properties file, ParameterBuilder.properties, contains a single name-value pair with the following format:
persist=value1,value2,value3In this case, the properties file is telling the configurable parameter builder to persist keys with names “value1”, “value2”, and “value3” into the ParameterBuilder collection, if it finds parameters with those names in the form and query string collection on ContainerServices.
The AbstractConfigurableParameterBuilder class is part of the com.microstrategy.web.platform package. The implementation classes DefaultURIBuilderImpl and DefaultHiddenInputBuilderImpl derive from AbstractConfigurableParameterBuilder. The default implementation is for DefaultURIBuilderImpl and DefaultHiddenInputBuilderImpl to implement AbstractConfigurableParameterBuilder.