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 Summary
ConstructorsConstructorDescriptionTestAccountEntryValidator(String classPK, String resultMessage, String resultStatus) -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.account.configuration.AccountEntryValidatorConfigurationgetAccountEntryValidatorConfiguration(long companyId) getClassPK(com.liferay.account.model.AccountEntry accountEntry, com.liferay.portal.kernel.json.JSONObject jsonObject) com.liferay.portal.kernel.json.JSONObjectbooleanisSkipped(com.liferay.account.model.AccountEntry accountEntry, com.liferay.portal.kernel.json.JSONObject jsonObject) voidsetResultStatus(String resultStatus) voidsetSkipped(boolean skipped) com.liferay.account.validator.AccountEntryValidatorResultvalidate(com.liferay.account.model.AccountEntry accountEntry, com.liferay.portal.kernel.json.JSONObject jsonObject) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.account.validator.AccountEntryValidator
getResultMessages
-
Constructor Details
-
TestAccountEntryValidator
public TestAccountEntryValidator() -
TestAccountEntryValidator
-
-
Method Details
-
getAccountEntryValidatorConfiguration
public com.liferay.account.configuration.AccountEntryValidatorConfiguration getAccountEntryValidatorConfiguration(long companyId) - Specified by:
getAccountEntryValidatorConfigurationin interfacecom.liferay.account.validator.AccountEntryValidator
-
getClassPK
public String getClassPK(com.liferay.account.model.AccountEntry accountEntry, com.liferay.portal.kernel.json.JSONObject jsonObject) - Specified by:
getClassPKin interfacecom.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:
isSkippedin interfacecom.liferay.account.validator.AccountEntryValidator
-
setResultStatus
-
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:
validatein interfacecom.liferay.account.validator.AccountEntryValidator
-