Interface ModificationConditionService

All Known Implementing Classes:
DefaultModificationConditionService

public interface ModificationConditionService
The merchandising Modification Condition Service interface to call the api for get, edit and delete the conditions.
  • Method Details

    • getModificationCondition

      ModificationConditionData getModificationCondition(String conditionId) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException
      This method returns the modification condition by calling pros service.
      Parameters:
      conditionId - the conditionId
      Returns:
      the ModificationConditionData
      Throws:
      org.springframework.web.client.HttpServerErrorException - the exception when http response is not 200 e.g. status 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception
    • removeModificationCondition

      boolean removeModificationCondition(String conditionId)
      This method will remove the condition from both the system and pros.
      Parameters:
      conditionId - the conditionId to be removed
      Returns:
      true if the removal is successful
    • createModificationCondition

      ModificationConditionData createModificationCondition(ModificationConditionData conditionData) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException
      This method will create condition in pros
      Parameters:
      conditionData - the conditionData
      Returns:
      the modification condition data, if response is not 200 then return null
      Throws:
      org.springframework.web.client.HttpServerErrorException - the exception when http response is not 200 e.g. status 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception
    • updateModificationCondition

      boolean updateModificationCondition(ModificationConditionData conditionData, String conditionId) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException
      This method will update condition in pros
      Parameters:
      conditionData - the conditionData
      conditionId - the condition id
      Returns:
      the boolean, return true if condition is updated in pros else return false
      Throws:
      org.springframework.web.client.HttpServerErrorException - the exception when http response is not 200 e.g. status 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception