Package net.pricefx.domain
Class CustomerGroup
- Object
-
- DomainObject
-
- CustomerGroup
-
@Embeddable public class CustomerGroup extends DomainObject
CustomerGroup
-
-
Constructor Summary
Constructors Constructor Description CustomerGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Filter
asFilter()
Filter
asFilter(DMDataSource customerDS)
Filter
asFilter(DMDataSource customerDS, Collection<DMDataSource> cxExtDS)
Filter
asFilterWithCXSubQuery()
Converts CustomerGroup into filter including converting any CX searchable items into custom filter.boolean
equals(Object obj)
static CustomerGroup
fromMap(ObjectMapper mapper, Map<String,Object> map)
static CustomerGroup
fromMap(Map<String,Object> map)
static CustomerGroup
fromSimpleFilter(String customerFieldName, String customerFieldValue)
String
getCustomerFieldLabel()
String
getCustomerFieldName()
String
getCustomerFieldValue()
Map<String,Object>
getCustomerFilterCriteria()
protected String
getCustomerFilterCriteriaJson()
String
getLabel()
int
hashCode()
void
setCustomerFieldLabel(String customerFieldLabel)
void
setCustomerFieldName(String customerFieldName)
void
setCustomerFieldValue(String customerFieldValue)
void
setCustomerFilterCriteria(Map<String,Object> customerFilterCriteriaMap)
protected void
setCustomerFilterCriteriaJson(String customerFilterCriteria)
void
setLabel(String label)
String
toString()
boolean
validate(ValidationVisitor validationVisitor, PersistedObjectService objService)
-
Methods inherited from class DomainObject
deepCopy, deepCopyUsingJavaSerialization, getNewMidnightDate, getNewMidnightDateTime, isMidnight, isMidnight, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerializedSizeOK, jsonSerializeToBytes, jsonSerializeToBytes, setToDayEnd, setToDayEnd, setToMidnight, setToMidnight, setToMidnightAsLocalDateTime, toPropertyMap
-
-
-
-
Method Detail
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getCustomerFieldName
public String getCustomerFieldName()
-
setCustomerFieldName
public void setCustomerFieldName(String customerFieldName)
-
getCustomerFieldLabel
public String getCustomerFieldLabel()
-
setCustomerFieldLabel
public void setCustomerFieldLabel(String customerFieldLabel)
-
getCustomerFieldValue
public String getCustomerFieldValue()
-
setCustomerFieldValue
public void setCustomerFieldValue(String customerFieldValue)
-
getCustomerFilterCriteriaJson
protected String getCustomerFilterCriteriaJson()
-
setCustomerFilterCriteriaJson
protected void setCustomerFilterCriteriaJson(String customerFilterCriteria)
-
setCustomerFilterCriteria
public void setCustomerFilterCriteria(Map<String,Object> customerFilterCriteriaMap)
-
asFilter
public Filter asFilter()
-
asFilterWithCXSubQuery
public Filter asFilterWithCXSubQuery()
Converts CustomerGroup into filter including converting any CX searchable items into custom filter. Not intended for PA.- Returns:
- filter
-
asFilter
public Filter asFilter(DMDataSource customerDS) throws DMFieldNotFoundException
- Throws:
DMFieldNotFoundException
-
asFilter
public Filter asFilter(DMDataSource customerDS, Collection<DMDataSource> cxExtDS) throws DMFieldNotFoundException
- Throws:
DMFieldNotFoundException
-
fromMap
public static CustomerGroup fromMap(Map<String,Object> map)
-
fromMap
public static CustomerGroup fromMap(ObjectMapper mapper, Map<String,Object> map)
-
fromSimpleFilter
public static CustomerGroup fromSimpleFilter(String customerFieldName, String customerFieldValue)
-
validate
public boolean validate(ValidationVisitor validationVisitor, PersistedObjectService objService)
-
-