Class CustomizationPackageController


@RestController public class CustomizationPackageController extends PersonalizationAbstractController
Controller exposes functionality for customization with related objects
  • Field Details

  • Constructor Details

    • CustomizationPackageController

      @Autowired public CustomizationPackageController(CustomizationFacade cxCustomizationFacade, org.springframework.validation.Validator customizationPackageValidator)
  • Method Details

    • createCustomization

      @RequestMapping(value="/v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizationpackages", method=POST, consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) public org.springframework.http.ResponseEntity<CustomizationData> createCustomization(@PathVariable String catalog, @PathVariable String catalogVersion, @RequestBody CustomizationData customization, org.springframework.web.util.UriComponentsBuilder builder)
      Creates customization with related objects like variations and triggers.
      Returns:
      created customization
      Throws:
      AlreadyExistsException - if customization with given code already exists
      WebserviceValidationException - if provided customization data is invalid
      NotFoundException - if catalog version doesn't exists
    • updateCustomization

      @RequestMapping(value="/v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizationpackages/{customizationCode}", method=PUT, consumes={"application/json","application/xml"}) public CustomizationData updateCustomization(@PathVariable String catalog, @PathVariable String catalogVersion, @PathVariable String customizationCode, @RequestBody CustomizationData customization)
      Updates customization and related objects
      Returns:
      updated customization
      Throws:
      WebserviceValidationException - if provided data is invalid
      NotFoundException - if customization with given code does not exists