com.ibm.commerce.rest.infrastructure.handler

Class ConfigurationHandler

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • DEFAULT_ACCESS_PROFILE

        public static final java.lang.String DEFAULT_ACCESS_PROFILE
        The default access profile, used when an access profile is not specified using the accessProfile query parameter.
        See Also:
        Constant Field Values
      • RESOURCE_NAME

        public static final java.lang.String RESOURCE_NAME
        The Constant RESOURCE_NAME.
        See Also:
        Constant Field Values
      • RESOURCE_MAPPING_KEY

        public static final java.lang.String RESOURCE_MAPPING_KEY
        The Constant RESOURCE_MAPPING_KEY.
        See Also:
        Constant Field Values
      • FIND_BY_ALL_XPATH

        public static final java.lang.String FIND_BY_ALL_XPATH
        The XPATH expression, used to retrieve the Configuration by All
        See Also:
        Constant Field Values
      • FIND_BY_IDENTIFIER_XPATH

        public static final java.lang.String FIND_BY_IDENTIFIER_XPATH
        The XPATH expression, used to retrieve the Configuration by Identifier.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConfigurationHandler

        public ConfigurationHandler()
    • Method Detail

      • getResourceName

        public java.lang.String getResourceName()
        Description copied from interface: IResourceHandler
        This method returns the name of the resource used primarily to determine the representation of the resource. This class can be overridden to change the name of the resource and therefore the representation, while keeping all the methods in this class.
        Returns:
        the resource name
        See Also:
        IResourceHandler.getResourceName()
      • findByConfigurationId

        @GET
         @Path(value="{configurationId}")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findByConfigurationId(@PathParam(value="storeId")
                                                                                                                                                                                                              java.lang.String storeId,
                                                                                                                                                                                                              @PathParam(value="configurationId")
                                                                                                                                                                                                              java.lang.String configId)
        This method returns the configuration details by specified configuration identifier.
        Parameters:
        storeId - The store identifier.
        configId - The configuration identifier.
        Returns:
        The array of configuration details in the specified format.
      • all

        public javax.ws.rs.core.Response all(@PathParam(value="storeId")
                                             java.lang.String storeId)
        This method returns the available configuration identifiers by not specifying any identifier.
        Parameters:
        storeId - The store identifier.
        Returns:
        The array of configuration details in the specified format.
      • byConfigurationIds

        public javax.ws.rs.core.Response byConfigurationIds(@PathParam(value="storeId")
                                                            java.lang.String storeId)
                                                     throws com.ibm.commerce.foundation.rest.resourcehandler.RestException
        This method returns the configuration details by specified configuration identifiers.
        Parameters:
        storeId - The store identifier.
        Returns:
        The array of configuration details in the specified format.
        Throws:
        com.ibm.commerce.foundation.rest.resourcehandler.RestException - is raised when the or is missing.
      • findByQuery

        @GET
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findByQuery(@PathParam(value="storeId")
                                                                                                                                                                  java.lang.String storeId,
                                                                                                                                                                  @QueryParam(value="q")
                                                                                                                                                                  java.lang.String queryName)
        Finds page designs by a query. See each query for details on input and output.
        Parameters:
        storeId - The store ID.
        queryName - The query name.
        Returns:
        The response.