public class ResolveClientLocationCmdImpl extends com.ibm.commerce.foundation.celadon.common.oagis.CeladonPipelineCmdImpl implements ResolveClientLocationCmd
POINT_OF_INTEREST_MATCH_ALL_WITHIN_GEOMETRIC_AREA, POINT_OF_INTEREST_MATCH_BY_HIGHEST_PRECEDENCE_WITHIN_GEOMETRIC_AREA, POINT_OF_INTEREST_MATCH_NEAREST_WITHIN_GEOMETRIC_AREA
Constructor and Description |
---|
ResolveClientLocationCmdImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
clientLocationsMatch(ClientLocationType incoming_client_location,
ClientLocationType candidate_client_location)
Determines if two individual ClientLocation nouns match each other for potential inclusion in
the working set for the point of interest matching process.
|
void |
execute()
Searches the data service for ClientLocation objects that match the given ClientLocation
object on these fields: ClientID, StoreID, RegionID, ZoneID
|
boolean |
getPointOfInterestMatchingForAllSourceTypes()
Retrieves the business logic directive which determines if point of interest matching logic is
used for all incoming client location nouns, regardless of their source type setting --
if the value is false, then point of interest matching logic is used only for
selective source types whose values appear in the array of strings returned by the
getPointOfInterestMatchingSelectiveSourceTypes method.
|
int |
getPointOfInterestMatchingRule()
Retrieves the point of interest matching rule which determines which points of interest
relate to client locations as they are reported to the service -- the rule will typicallys have one
of the three values:
ResolveClientLocationCmd.POINT_OF_INTEREST_MATCH_NEAREST_ONLY,
ResolveClientLocationCmd.POINT_OF_INTEREST_MATCH_ALL_WITHIN_GEOMETRIC_AREA (the default) or
ResolveClientLocationCmd.POINT_OF_INTEREST_MATCH_BY_HIGHEST_PRECEDENCE_WITHIN_GEOMETRIC_AREA.
|
java.util.List |
getPointOfInterestMatchingSelectiveSourceTypes()
Retrieves the list of selective source types for which point of interest matching logic is
used on incoming client location nouns.
|
void |
setPointOfInterestMatchingForAllSourceTypes(boolean point_of_interest_matching_for_all_source_types)
Sets the business logic directive which determines if point of interest matching logic is
used for all incoming client location nouns, regardless of their source type setting --
if the value is false, then point of interest matching logic is used only for
selective source types whose values appear in the array of strings returned by the
getPointOfInterestMatchingSelectiveSourceTypes method.
|
void |
setPointOfInterestMatchingRule(int point_of_interest_matching_rule)
Sets the point of interest matching rule which determines which points of interest
relate to client locations as they are reported to the service -- the rule should have one
of the three values:
ResolveClientLocationCmd.POINT_OF_INTEREST_MATCH_NEAREST_ONLY,
ResolveClientLocationCmd.POINT_OF_INTEREST_MATCH_ALL_WITHIN_GEOMETRIC_AREA (the default) or
ResolveClientLocationCmd.POINT_OF_INTEREST_MATCH_BY_HIGHEST_PRECEDENCE_WITHIN_GEOMETRIC_AREA.
|
void |
setPointOfInterestMatchingSelectiveSourceTypes(java.util.List point_of_interest_matching_selective_source_types)
Sets the list of selective source types for which point of interest matching logic is
used on incoming client location nouns.
|
getNounsToBeCreated, getNounsToBeDeleted, getNounsToBeUpdated, isReadyToCallExecute, reset, setNounsToBeCreated, setNounsToBeDeleted, setNounsToBeUpdated
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setPointOfInterestMatchingForAllSourceTypes(boolean point_of_interest_matching_for_all_source_types)
point_of_interest_matching_for_all_source_types
- Business logic directive which determines
if point of interest matching logic is used for all incoming client location nouns,
regardless of their source type setting.
public boolean getPointOfInterestMatchingForAllSourceTypes()
public java.util.List getPointOfInterestMatchingSelectiveSourceTypes()
public void setPointOfInterestMatchingSelectiveSourceTypes(java.util.List point_of_interest_matching_selective_source_types)
point_of_interest_matching_selective_source_types
- List of selective source types
for which point of interest matching logic is used on incoming client location nouns.
public void setPointOfInterestMatchingRule(int point_of_interest_matching_rule)
point_of_interest_matching_rule
- The point of interest matching rule which determines which
points of interest relate to client locations as they are reported to the service.
public int getPointOfInterestMatchingRule()
public void execute() throws com.ibm.websphere.command.CommandException
execute
in interface com.ibm.websphere.command.Command
execute
in class com.ibm.commerce.foundation.celadon.common.oagis.CeladonPipelineCmdImpl
com.ibm.websphere.command.CommandException
- A CommandException is thrown if an error occurspublic boolean clientLocationsMatch(ClientLocationType incoming_client_location, ClientLocationType candidate_client_location)
clientLocationsMatch
in interface ResolveClientLocationCmd
incoming_client_location
- A client location noun which has been reported to the command
either in the create list or the update list.
candidate_client_location
- A pre-existing client location noun which is a candidate for inclusion in
the working set for the point of interest matching process.