throw new InvalidAttributeValueException(e.getMessage(), e); } catch (InterruptedException e) { throw new OperationTimeoutException(e.getMessage(), e);
private DummyOrg convertToOrg(Set<Attribute> createAttributes) throws ConnectException, FileNotFoundException, ConflictException { String icfName = Utils.getMandatoryStringAttribute(createAttributes,Name.NAME); if (configuration.getUpCaseName()) { icfName = StringUtils.upperCase(icfName); } final DummyOrg newOrg = new DummyOrg(icfName); for (Attribute attr : createAttributes) { if (attr.is(Uid.NAME)) { throw new IllegalArgumentException("UID explicitly specified in the org attributes"); } else if (attr.is(Name.NAME)) { // Skip, already processed } else if (attr.is(OperationalAttributeInfos.PASSWORD.getName())) { throw new IllegalArgumentException("Password specified for a org"); } else if (attr.is(OperationalAttributeInfos.ENABLE.getName())) { throw new IllegalArgumentException("Unsupported ENABLE attribute in org"); } else { String name = attr.getName(); try { newOrg.replaceAttributeValues(name,attr.getValue()); } catch (SchemaViolationException e) { throw new IllegalArgumentException(e.getMessage(),e); } catch (InterruptedException e) { throw new OperationTimeoutException(e.getMessage(),e); } } } return newOrg; }
private DummyPrivilege convertToPriv(Set<Attribute> createAttributes) throws ConnectException, FileNotFoundException, ConflictException { String icfName = Utils.getMandatoryStringAttribute(createAttributes,Name.NAME); if (configuration.getUpCaseName()) { icfName = StringUtils.upperCase(icfName); } final DummyPrivilege newPriv = new DummyPrivilege(icfName); for (Attribute attr : createAttributes) { if (attr.is(Uid.NAME)) { throw new IllegalArgumentException("UID explicitly specified in the group attributes"); } else if (attr.is(Name.NAME)) { // Skip, already processed } else if (attr.is(OperationalAttributeInfos.PASSWORD.getName())) { throw new InvalidAttributeValueException("Password specified for a privilege"); } else if (attr.is(OperationalAttributeInfos.ENABLE.getName())) { throw new InvalidAttributeValueException("Unsupported ENABLE attribute in privilege"); } else { String name = attr.getName(); try { newPriv.replaceAttributeValues(name,attr.getValue()); } catch (SchemaViolationException e) { throw new InvalidAttributeValueException(e.getMessage(),e); } catch (InterruptedException e) { throw new OperationTimeoutException(e.getMessage(),e); } } } return newPriv; }
} catch (SchemaViolationException e) { log.info("delete::exception "+e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { log.info("delete::exception "+e);
throw new InvalidAttributeValueException(e.getMessage(), e); throw new InvalidAttributeValueException(e.getMessage(),e); throw new InvalidAttributeValueException(e.getMessage(),e); throw new InvalidAttributeValueException(e.getMessage(),e); } catch (SchemaViolationException e) { log.info("removeAttributeValues::exception "+e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { log.info("removeAttributeValues::exception "+e);
throw new InvalidAttributeValueException(e.getMessage(), e); throw new InvalidAttributeValueException(e.getMessage(), e); throw new InvalidAttributeValueException(e.getMessage(),e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (SchemaViolationException e) { log.info("addAttributeValues::exception "+e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { log.info("addAttributeValues::exception "+e);
throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { throw new AlreadyExistsException(e);
throw new org.identityconnectors.framework.common.exceptions.AlreadyExistsException(e.getMessage(), e); } catch (SchemaViolationException e) { throw new org.identityconnectors.framework.common.exceptions.InvalidAttributeValueException("Schema exception: " + e.getMessage(), e); throw new InvalidAttributeValueException(e.getMessage(),e); group.replaceAttributeValues(name, values); } catch (SchemaViolationException e) { throw new InvalidAttributeValueException(e.getMessage(),e); priv.replaceAttributeValues(name, attr.getValue()); } catch (SchemaViolationException e) { throw new InvalidAttributeValueException(e.getMessage(),e); org.replaceAttributeValues(name, attr.getValue()); } catch (SchemaViolationException e) { throw new InvalidAttributeValueException(e.getMessage(),e); } catch (SchemaViolationException e) { log.info("update::exception "+e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { log.info("update::exception "+e);
} catch (SchemaViolationException e) { log.info("sync::exception "+e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { log.info("sync::exception "+e);
newGroup.replaceAttributeValues(name,attr.getValue()); } catch (SchemaViolationException e) { throw new InvalidAttributeValueException(e.getMessage(),e);
throw new org.identityconnectors.framework.common.exceptions.AlreadyExistsException(e.getMessage(), e); } catch (SchemaViolationException e) { throw new org.identityconnectors.framework.common.exceptions.InvalidAttributeValueException("Schema exception: " + e.getMessage(), e); } catch (SchemaViolationException e) { log.info("update::exception "+e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { log.info("update::exception "+e);
} catch (SchemaViolationException e) { log.info("executeQuery::exception "+e); throw new InvalidAttributeValueException(e.getMessage(), e); } catch (ConflictException e) { log.info("executeQuery::exception "+e);
throw new InvalidAttributeValueException(e.getMessage(),e);