Class TestAccountEntryValidator

java.lang.Object
com.liferay.commerce.test.util.validator.TestAccountEntryValidator
All Implemented Interfaces:
com.liferay.account.validator.AccountEntryValidator

public class TestAccountEntryValidator extends Object implements com.liferay.account.validator.AccountEntryValidator
  • Constructor Details

    • TestAccountEntryValidator

      public TestAccountEntryValidator()
    • TestAccountEntryValidator

      public TestAccountEntryValidator(String classPK, String resultMessage, String resultStatus)
  • Method Details

    • getAccountEntryValidatorConfiguration

      public com.liferay.account.configuration.AccountEntryValidatorConfiguration getAccountEntryValidatorConfiguration(long companyId)
      Specified by:
      getAccountEntryValidatorConfiguration in interface com.liferay.account.validator.AccountEntryValidator
    • getClassPK

      public String getClassPK(com.liferay.account.model.AccountEntry accountEntry, com.liferay.portal.kernel.json.JSONObject jsonObject)
      Specified by:
      getClassPK in interface com.liferay.account.validator.AccountEntryValidator
    • getJSONObject

      public com.liferay.portal.kernel.json.JSONObject getJSONObject()
    • isSkipped

      public boolean isSkipped(com.liferay.account.model.AccountEntry accountEntry, com.liferay.portal.kernel.json.JSONObject jsonObject)
      Specified by:
      isSkipped in interface com.liferay.account.validator.AccountEntryValidator
    • setResultStatus

      public void setResultStatus(String resultStatus)
    • setSkipped

      public void setSkipped(boolean skipped)
    • validate

      public com.liferay.account.validator.AccountEntryValidatorResult validate(com.liferay.account.model.AccountEntry accountEntry, com.liferay.portal.kernel.json.JSONObject jsonObject)
      Specified by:
      validate in interface com.liferay.account.validator.AccountEntryValidator