@Override protected GroupCR newInstance() { return new GroupCR(); }
public Builder adynMembershipCond(final String type, final String fiql) { getInstance().getADynMembershipConds().put(type, fiql); return this; }
public Builder typeExtensions(final Collection<TypeExtensionTO> typeExtensions) { getInstance().getTypeExtensions().addAll(typeExtensions); return this; } }
GroupTO groupTO = (GroupTO) anyTO; groupCR.setName(groupTO.getName()); groupCR.setUserOwner(groupTO.getUserOwner()); groupCR.setGroupOwner(groupTO.getGroupOwner()); groupCR.setUDynMembershipCond(groupTO.getUDynMembershipCond()); groupCR.getADynMembershipConds().putAll(groupTO.getADynMembershipConds()); groupCR.getTypeExtensions().addAll(groupTO.getTypeExtensions()); } else if (anyCR instanceof AnyObjectCR && anyTO instanceof AnyObjectTO) { AnyObjectCR anyObjectCR = (AnyObjectCR) anyCR;
GroupCR groupCR = (GroupCR) anyCR; groupTO.setName(groupCR.getName()); groupTO.setUserOwner(groupCR.getUserOwner()); groupTO.setGroupOwner(groupCR.getGroupOwner()); groupTO.setUDynMembershipCond(groupCR.getUDynMembershipCond()); groupTO.getADynMembershipConds().putAll(groupCR.getADynMembershipConds()); groupTO.getTypeExtensions().addAll(groupCR.getTypeExtensions()); } else if (anyTO instanceof AnyObjectTO && anyCR instanceof AnyObjectCR) { AnyObjectTO anyObjectTO = (AnyObjectTO) anyTO;
public Builder groupOwner(final String groupOwner) { getInstance().setGroupOwner(groupOwner); return this; }
public Builder(final String realm, final String name) { super(realm); getInstance().setName(name); }
GroupCR req = new GroupCR(); EntityTOUtils.toAnyCR(inner, req);
public Builder typeExtension(final TypeExtensionTO typeExtension) { getInstance().getTypeExtensions().add(typeExtension); return this; }
@Override protected Serializable onApplyInternal(final AnyWrapper<GroupTO> modelObject) { GroupTO inner = modelObject.getInnerObject(); ProvisioningResult<GroupTO> result; if (remediationTO.getAnyURPayload() == null) { GroupCR req = new GroupCR(); EntityTOUtils.toAnyCR(inner, req); result = restClient.remedy(remediationTO.getKey(), req); } else { GroupUR req = AnyOperations.diff(inner, previousGroupTO, false); // update just if it is changed if (req.isEmpty()) { result = new ProvisioningResult<>(); result.setEntity(inner); } else { result = restClient.remedy(remediationTO.getKey(), req); } } return result; } }
public Builder typeExtensions(final TypeExtensionTO... typeExtensions) { getInstance().getTypeExtensions().addAll(Arrays.asList(typeExtensions)); return this; }