public GroupTO toGroupTO(final SCIMGroup group) { if (!GROUP_SCHEMAS.equals(group.getSchemas())) { throw new BadRequestException(ErrorType.invalidValue); } GroupTO groupTO = new GroupTO(); groupTO.setRealm(SyncopeConstants.ROOT_REALM); groupTO.setKey(group.getId()); groupTO.setName(group.getDisplayName()); return groupTO; }
((GroupTO) anyTO).setName(values.isEmpty() || values.get(0) == null ? null : values.get(0).toString());
public static GroupTO patch(final GroupTO groupTO, final GroupPatch groupPatch) { GroupTO result = SerializationUtils.clone(groupTO); patch(groupTO, groupPatch, result); if (groupPatch.getName() != null) { result.setName(groupPatch.getName().getValue()); } if (groupPatch.getUserOwner() != null) { result.setGroupOwner(groupPatch.getUserOwner().getValue()); } if (groupPatch.getGroupOwner() != null) { result.setGroupOwner(groupPatch.getGroupOwner().getValue()); } result.setUDynMembershipCond(groupPatch.getUDynMembershipCond()); result.getADynMembershipConds().clear(); result.getADynMembershipConds().putAll(groupPatch.getADynMembershipConds()); return result; }
public static GroupTO patch(final GroupTO groupTO, final GroupUR groupUR) { GroupTO result = SerializationUtils.clone(groupTO); patch(groupTO, groupUR, result); if (groupUR.getName() != null) { result.setName(groupUR.getName().getValue()); } if (groupUR.getUserOwner() != null) { result.setGroupOwner(groupUR.getUserOwner().getValue()); } if (groupUR.getGroupOwner() != null) { result.setGroupOwner(groupUR.getGroupOwner().getValue()); } result.setUDynMembershipCond(groupUR.getUDynMembershipCond()); result.getADynMembershipConds().clear(); result.getADynMembershipConds().putAll(groupUR.getADynMembershipConds()); return result; }
GroupCR groupCR = (GroupCR) anyCR; groupTO.setName(groupCR.getName()); groupTO.setUserOwner(groupCR.getUserOwner()); groupTO.setGroupOwner(groupCR.getGroupOwner());
String evaluated = JexlUtils.evaluate(((GroupTO) template).getName(), jexlContext); if (StringUtils.isNotBlank(evaluated)) { ((GroupTO) anyTO).setName(evaluated);
updatedGroup.setName(originalGroup.getName());
groupTO.setName(group.getName());