Class SystemParameterManager


  • public class SystemParameterManager
    extends AbstractAPIManager
    Class to manage system parameter settings using the Obsidian public embedded API. See AbstractAPIManager for details on how transactions are managed within all requests.

    Example:

        SystemParameterListing listing = new SystemParameterManager().listParameters();
        System.out.println("Parameters: " + listing);
     
    Since:
    3.0
    See Also:
    Embedded API Wiki, REST API Wiki
    • Constructor Detail

      • SystemParameterManager

        public SystemParameterManager()
    • Method Detail

      • listParameters

        public SystemParameterListing listParameters()
                                              throws java.lang.Exception
        List all system parameters and their values.
        Returns:
        the SystemParameterListing containing all existing system parameters
        Throws:
        java.lang.Exception - any type of unexpected exception.
      • getParameter

        public SystemParameter getParameter​(java.lang.String name)
                                     throws MissingEntityException,
                                            java.lang.Exception
        Describe the system parameter for the given name.
        Parameters:
        name - parameter's name
        Returns:
        the SystemParameter corresponding to the supplied name.
        Throws:
        MissingEntityException - If the parameter with the requested name does not exist.
        java.lang.Exception - Any other type of unexpected exception.
      • updateParameter

        public SystemParameter updateParameter​(java.lang.String name,
                                               java.lang.String value,
                                               java.lang.String auditUser)
                                        throws MissingEntityException,
                                               ValidationException,
                                               java.lang.Exception
        Updates a given system parameter to the requested value.
        Parameters:
        name - system parameter name
        value - value for the system parameter (value must have proper representation for type - e.g. true/false for Boolean, numeric values, etc.)
        auditUser - Optional user that is marked in audit columns. Defaults to "embeddedAPI".
        Returns:
        the updated SystemParameter
        Throws:
        MissingEntityException - If the parameter with the requested name does not exist.
        ValidationException - A validation error which prevents the action from succeeding.
        java.lang.Exception - Any other type of unexpected exception.