private static final String SEARCH_STRING = "INSERT_SEARCH_CRITERIA_HERE";
public static void runExample(
DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
// Request the service.
PlacementStrategyRemote service = dfaServices.get(session, PlacementStrategyRemote.class);
// Create placement strategy search criteria structure.
PlacementStrategySearchCriteria placementStrategySearchCriteria =
new PlacementStrategySearchCriteria();
placementStrategySearchCriteria.setPageSize(10);
placementStrategySearchCriteria.setSearchString(searchString);
// Get placement strategy record set.
PlacementStrategyRecordSet placementStrategyRecordSet =
service.getPlacementStrategiesByCriteria(placementStrategySearchCriteria);
// Display placement strategy names, IDs and descriptions.
if (placementStrategyRecordSet.getRecords() != null) {
for (PlacementStrategy result : placementStrategyRecordSet.getRecords()) {
System.out.println("Placement Strategy with name \"" + result.getName()