@Test public void testDummyProperty_noRule() { String propName = "foo"; String propValue = "bar"; List<ConversionRule> conversionRules = new ArrayList<ConversionRule>(); String result = GroupProviderPropertyConverter.convertProperty(propName, propValue, conversionRules); assertEquals(propValue, result); }
public static String convertProperty(String propertyName, String propertyValue, List<ConversionRule> converters) { String s = propertyValue; for (ConversionRule converter : converters) { if (s != null && propertyName.equals(converter.getPropertyName())) { s = s.replaceAll(converter.getSearchPattern(), converter.getReplaceWith()); } } return s; }
GroupProviderPropertyConverter { public static String convertProperty(String propertyName, String propertyValue, List<ConversionRule> converters) { String s = propertyValue; for (ConversionRule converter : converters) { if (s != null && propertyName.equals(converter.getPropertyName())) { s = s.replaceAll(converter.getSearchPattern(), converter.getReplaceWith()); } } return s; } }
GroupProviderPropertyConverter { public static String convertProperty(String propertyName, String propertyValue, List<ConversionRule> converters) { String s = propertyValue; for (ConversionRule converter : converters) { if (s != null && propertyName.equals(converter.getPropertyName())) { s = s.replaceAll(converter.getSearchPattern(), converter.getReplaceWith()); } } return s; }  }
GroupProviderPropertyConverter { public static String convertProperty(String propertyName, String propertyValue, List<ConversionRule> converters) { String s = propertyValue; for (ConversionRule converter : converters) { if (s != null && propertyName.equals(converter.getPropertyName())) { s = s.replaceAll(converter.getSearchPattern(), converter.getReplaceWith()); } } return s; }  static boolean isGroupFromGroupProvider(String groupId, GroupProvider groupProvider); static String convertToExternalPersonId(String input, GroupProvider groupProvider); static String convertToSurfConextPersonId(String input, GroupProvider groupProvider); static String convertToExternalGroupId(String input, GroupProvider groupProvider); static String convertToSurfConextGroupId(String input, GroupProvider groupProvider); static String convertProperty(String propertyName, String propertyValue,
                                       List<ConversionRule> converters); }
GroupProviderPropertyConverter { public static String convertProperty(String propertyName, String propertyValue, List<ConversionRule> converters) { String s = propertyValue; for (ConversionRule converter : converters) { if (s != null && propertyName.equals(converter.getPropertyName())) { s = s.replaceAll(converter.getSearchPattern(), converter.getReplaceWith()); } } return s; }  static boolean isGroupFromGroupProvider(String groupId, GroupProvider groupProvider); static String convertToExternalPersonId(String input, GroupProvider groupProvider); static String convertToSurfConextPersonId(String input, GroupProvider groupProvider); static String convertToExternalGroupId(String input, GroupProvider groupProvider); static String convertToSurfConextGroupId(String input, GroupProvider groupProvider); static String convertProperty(String propertyName, String propertyValue,
                                       List<ConversionRule> converters); static final String PROPERTY_ID; static final String PROPERTY_NAME; static final String PROPERTY_DESCRIPTION; }