Class MediaSearchByCodeNamedQueryDataPopulator

    • Constructor Detail

      • MediaSearchByCodeNamedQueryDataPopulator

        public MediaSearchByCodeNamedQueryDataPopulator()
    • Method Detail

      • convertParameters

        public java.util.Map<java.lang.String,​? extends java.lang.Object> convertParameters​(java.lang.String params)
        Description copied from class: AbstractNamedQueryDataPopulator
        Converts the parameters from the request String into a Map. The input, if not empty, should be already validated with the following format: {param}:{value} Multiple parameters are also allowed separated by comma
        Specified by:
        convertParameters in class AbstractNamedQueryDataPopulator
        Parameters:
        params - - the parameters received from the request
        Returns:
        a Map of parameters
      • validateInputParameters

        protected void validateInputParameters​(java.lang.String catalogId,
                                               java.lang.String catalogVersionId,
                                               java.lang.String code)
        Validate if the input parameters are empty, and if they are, throws a ConversionException
        Parameters:
        catalogId - - the catalog id extracted from the request
        catalogVersionId - - the catalog version id extracted from the request
        Throws:
        ConversionException
      • buildParameterStringMap

        public java.util.Map<java.lang.String,​java.lang.String> buildParameterStringMap​(java.lang.String params)
        Using the parameter String, convert it to a Map for future processing. Suppress sonar warning (squid:S2095 | Java's garbage collection cannot be relied on to clean up everything. Specifically, connections, streams, files and other classes that implement the Closeable interface or it's super-interface) : in this case Stream is not opening any connection or IO stream.
        Overrides:
        buildParameterStringMap in class AbstractNamedQueryDataPopulator
        Parameters:
        params - - the String parameter received from the request
        Returns:
        a Map representing the requested parameter String
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)