/
COREntryType.java
38 lines (27 loc) · 978 Bytes
/
COREntryType.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.order.rule.entry.type;
import com.liferay.commerce.model.CommerceOrder;
import com.liferay.commerce.order.rule.model.COREntry;
import com.liferay.portal.kernel.exception.PortalException;
import java.util.List;
import java.util.Locale;
/**
* @author Luca Pellizzon
* @author Alessio Antonio Rendina
*/
public interface COREntryType {
public boolean evaluate(COREntry corEntry, CommerceOrder commerceOrder)
throws PortalException;
public boolean evaluate(
COREntry corEntry, List<COREntryTypeItem> corEntryTypeItems)
throws PortalException;
public String getErrorMessage(
COREntry corEntry, CommerceOrder commerceOrder, Locale locale)
throws PortalException;
public String getKey();
public String getLabel(Locale locale);
public boolean isActive();
}