Interface SolutionInterface

  • All Superinterfaces:
    BaseConfiguration, ContainerConfig, java.io.Serializable
    All Known Implementing Classes:
    SolutionInterfaceImpl

    public interface SolutionInterface
    extends ContainerConfig
    This interface provides access to the Solution interface settings of a configuration. Most of these elements are used to define external aspects of a configuration such as which assemblylines and properties are visible/editable by a user at runtime.
    • Method Detail

      • getHealthAssemblyLine

        java.lang.String getHealthAssemblyLine()
        Returns the name of the health assemblyline. The return value is null if no assemblyline is configured.
        Returns:
        The name of the Health assemblyline
      • setHealthAssemblyLine

        void setHealthAssemblyLine​(java.lang.String name)
        Sets the name of the health assemblyline for this configuration (null or empty string to clear).
        Parameters:
        name - The name of the Health assemblyline (using empty string will translate to null value).
      • getExposedAssemblyLines

        ContainerConfig getExposedAssemblyLines()
        Returns a container of assemblyline names that are exposed by this solution. Each child of the list is a BaseConfiguration object where the name is set to that of the assemblyline. The BaseConfiguration object for each assemblyline can be used to hold additional custom information about each AL.
        Returns:
        ContainerConfig of assemblyline names (String values)
      • addExposedAssemblyLine

        BaseConfiguration addExposedAssemblyLine​(java.lang.String name)
                                          throws java.lang.Exception
        Convenience method to create a BaseConfiguration object in the exposed assemblylines container. Use getExposedAssemblyLines().getConfig()/removeConfig() etc to manipulate contents. If an assemblyline with that name is already defined the current configuration is returned.
        Parameters:
        name - Name of the AL to expose
        Returns:
        The new/current configuration
        Throws:
        java.lang.Exception
      • getExposedProperty

        ExposedProperty getExposedProperty​(java.lang.String propertyName,
                                           java.lang.String storeName)
        Returns the ExposedProperty object using name and storename
        Parameters:
        propertyName - The propery name.
        storeName - The store name.
        Returns:
        Returns the ExposedProperty object using name and store name.
      • getExposedProperties

        ContainerConfig getExposedProperties()
        Returns a container of ExposedProperty objects.
        Returns:
        ContainerConfig of ExposedProperty objects.
      • addExposedProperty

        ExposedProperty addExposedProperty​(java.lang.String propertyName,
                                           java.lang.String storeName)
                                    throws java.lang.Exception
        Convenience method to create an ExposedProperty object in the exposed properties container. Use getExposedProperties().getConfig()/removeConfig() etc to manipulate contents. If a property with that name/storename is already defined the current configuration is returned. When creating a new ExposedProperty object the concatenation of "propertyName.propertyStore" is used to generate a unique name for the object.
        Parameters:
        propertyName - Name of the AL to expose.
        storeName - Name of the store.
        Returns:
        The new/current configuration
        Throws:
        java.lang.Exception
      • getPropertyCategoryNames

        java.util.List<java.lang.String> getPropertyCategoryNames()
        Convenience method that returns a list of unique category names found in the exposed properties container.
        Returns:
        List of category names (String values)
      • getPropertyStoreNames

        java.util.List<java.lang.String> getPropertyStoreNames()
        Convenience method that returns a list of unique store names found in the exposed properties container.
        Returns:
        List of store names (String values)
      • getInstanceID

        java.lang.String getInstanceID()
        Returns the instance ID for this configuration or null if none is defined.
      • setInstanceID

        void setInstanceID​(java.lang.String id)
        Sets the instance ID for this configuration or null if none is defined.
        Parameters:
        id - The config instance id or null
      • getHealthPollInterval

        int getHealthPollInterval()
        Returns the poll interval for the health assemblyline.
        Returns:
        The poll interval seconds or -1 if not configured
      • setHealthPollInterval

        void setHealthPollInterval​(int seconds)
        Sets the poll interval for the health assemblyline.
        Parameters:
        seconds - The poll interval in seconds