use of org.xdi.model.custom.script.type.scim.ScimType in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimDeleteGroupMethod.
public boolean executeScimDeleteGroupMethod(GluuGroup group, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Delete Group' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.deleteGroup(group, configurationAttributes);
log.debug("executeScimDeleteGroupMethod result = " + result);
return result;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}
use of org.xdi.model.custom.script.type.scim.ScimType in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimDeleteUserMethod.
public boolean executeScimDeleteUserMethod(GluuCustomPerson user, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Delete User' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.deleteUser(user, configurationAttributes);
log.debug("executeScimDeleteUserMethod result = " + result);
return result;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}
use of org.xdi.model.custom.script.type.scim.ScimType in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimCreateUserMethod.
public boolean executeScimCreateUserMethod(GluuCustomPerson user, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Create User' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.createUser(user, configurationAttributes);
log.debug("executeScimCreateUserMethod result = " + result);
return result;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}
use of org.xdi.model.custom.script.type.scim.ScimType in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimCreateGroupMethod.
public boolean executeScimCreateGroupMethod(GluuGroup group, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Create Group' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.createGroup(group, configurationAttributes);
log.debug("executeScimCreateGroupMethod result = " + result);
return result;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}
use of org.xdi.model.custom.script.type.scim.ScimType in project oxTrust by GluuFederation.
the class ExternalScimService method executeScimUpdateGroupMethod.
public boolean executeScimUpdateGroupMethod(GluuGroup group, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'SCIM Update Group' method");
ScimType externalType = (ScimType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
boolean result = externalType.updateGroup(group, configurationAttributes);
log.debug("executeScimUpdateGroupMethod result = " + result);
return result;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}
Aggregations