405 if (!OxTrustConstants.RESULT_SUCCESS.equals(result)) {
415 if (!loadedScripts) {
416 String message =
"Can't load Cache Refresh scripts. Using default script";
426 String[] targetCustomObjectClasses =
appConfiguration.getPersonObjectClassTypes();
433 Set<String> allAttributes =
new HashSet<String>();
434 for (String attribute : keyAttributesWithoutValues) {
435 allAttributes.add(attribute);
438 for (String attribute : sourceAttributes) {
439 allAttributes.add(attribute);
443 GluuSimplePerson sourcePerson =
new GluuSimplePerson();
444 List<GluuCustomAttribute> customAttributes = sourcePerson.getCustomAttributes();
445 for (String attribute : allAttributes) {
446 customAttributes.add(
new GluuCustomAttribute(attribute,
"Test value"));
450 GluuCustomPerson targetPerson =
new GluuCustomPerson();
451 targetPerson.setDn(targetPersonDn);
452 targetPerson.setInum(targetInum);
453 targetPerson.setStatus(GluuStatus.ACTIVE);
454 targetPerson.setCustomObjectClasses(targetCustomObjectClasses);
462 if (!executionResult) {
463 String message =
"Can't execute Cache Refresh scripts.";
471 "Script has been executed successfully.\n\nSample source entry is:\n'{}'.\n\nSample result entry is:\n'{}'",
475 "Script has been executed successfully.\n\nSample source entry is:\n%s.\n\nSample result entry is:\n%s",
Map< String, String > getTargetServerAttributesMapping(CacheRefreshConfiguration cacheRefreshConfigurationuration)
Definition: ConfigureCacheRefreshAction.java:627
InumService inumService
Definition: ConfigureCacheRefreshAction.java:84
List< SimpleProperty > getSourceAttributes()
Definition: ConfigureCacheRefreshAction.java:653
String getGluuCustomPersonAttributesWithValues(GluuCustomPerson gluuCustomPerson)
Definition: ConfigureCacheRefreshAction.java:504
Logger log
Definition: ConfigureCacheRefreshAction.java:72
abstract String getDnForPerson(String inum)
String init()
Definition: ConfigureCacheRefreshAction.java:129
void setTargetEntryAttributes(GluuSimplePerson sourcePerson, Map< String, String > targetServerAttributesMapping, GluuCustomPerson targetPerson)
Definition: CacheRefreshService.java:135
String generateInums(String type)
Definition: InumService.java:177
String [] getCompoundKeyAttributesWithoutValues(CacheRefreshConfiguration cacheRefreshConfigurationuration)
Definition: ConfigureCacheRefreshAction.java:615
boolean executeExternalUpdateUserMethods(GluuCustomPerson user)
Definition: ExternalCacheRefreshService.java:50
CacheRefreshService cacheRefreshService
Definition: ConfigureCacheRefreshAction.java:87
String interceptorValidationMessage
Definition: ConfigureCacheRefreshAction.java:123
boolean showInterceptorValidationDialog
Definition: ConfigureCacheRefreshAction.java:122
List< SimpleProperty > sourceAttributes
Definition: ConfigureCacheRefreshAction.java:119
IPersonService personService
Definition: ConfigureCacheRefreshAction.java:78
ExternalCacheRefreshService externalCacheRefreshService
Definition: ConfigureCacheRefreshAction.java:81
CacheRefreshConfiguration cacheRefreshConfiguration
Definition: ConfigureCacheRefreshAction.java:108
String getGluuSimplePersonAttributesWithValues(GluuSimplePerson gluuSimplePerson)
Definition: ConfigureCacheRefreshAction.java:480
AppConfiguration appConfiguration
Definition: ConfigureCacheRefreshAction.java:102
String update()
Definition: ConfigureCacheRefreshAction.java:171