* @throws ServiceException
*/
public GenericEntry updateOrganizationUnit(String customerId, String orgUnitPath,
Map<OrgUnitProperty, String> attributes) throws AppsForYourDomainException,
MalformedURLException, IOException, ServiceException {
GenericEntry entry = new GenericEntry();
for (Map.Entry<OrgUnitProperty, String> mapEntry : attributes.entrySet()) {
String value = mapEntry.getValue();
if (value == null || value.length() == 0) {
continue;
}
switch (mapEntry.getKey()) {
case NAME:
entry.addProperty("name", value);
break;
case PARENT_ORG_UNIT_PATH:
entry.addProperty("parentUnitPath", value);
break;
case DESCRIPTION:
entry.addProperty("description", value);
break;
case BLOCK_INHERTANCE:
entry.addProperty("blockInheritance", value);
break;
case USERS_TO_MOVE:
entry.addProperty("usersToMove", value);
break;
default:
break;
}
}