@@ -0,0 +1,2108 @@
+package org.pageseeder.ox.pageseeder.step;%0A%0Aimport net.pageseeder.app.simple.pageseeder.service.MembershipService;%0Aimport net.pageseeder.app.simple.vault.PSOAuthConfigManager;%0Aimport net.pageseeder.app.simple.vault.TokensVaultItem;%0Aimport net.pageseeder.app.simple.vault.TokensVaultManager;%0Aimport net.pageseeder.app.simple.vault.VaultUtils;%0Aimport org.pageseeder.bridge.model.PSGroup;%0Aimport org.pageseeder.bridge.model.PSMember;%0Aimport org.pageseeder.ox.api.Result;%0Aimport org.pageseeder.ox.api.Step;%0Aimport org.pageseeder.ox.api.StepInfo;%0Aimport org.pageseeder.ox.core.Model;%0Aimport org.pageseeder.ox.core.PackageData;%0Aimport org.pageseeder.ox.tool.DefaultResult;%0Aimport org.pageseeder.ox.tool.ExtraResultStringXML;%0Aimport org.pageseeder.ox.util.StepUtils;%0Aimport org.pageseeder.xmlwriter.XML;%0Aimport org.pageseeder.xmlwriter.XMLStringWriter;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/**%0A * @author vku%0A * @since 12 October 2021%0A */%0Apublic class EditMembership implements Step %7B%0A  private static Logger LOGGER = LoggerFactory.getLogger(EditMember.class);%0A%0A  @Override%0A  public Result process(Model model, PackageData data, StepInfo info) %7B%0A    LOGGER.debug(%22Start Edit Pageseeder Membership%22);%0A    //Token item to get member and credentials%0A    TokensVaultItem item = TokensVaultManager.get(VaultUtils.getDefaultPSOAuthConfigName());%0A%0A    //Find Member Parameters%0A    DefaultResult result = new DefaultResult(model, data, info, null);%0A%0A    PSGroup group = new PSGroup(StepUtils.getParameter(data, info, %22group%22, %22%22));%0A    String memberUsername = StepUtils.getParameter(data, info, %22username%22, %22%22);%0A%0A    //create service to find Projects;%0A    MembershipService service = new MembershipService();%0A    PSMember member = new PSMember(memberUsername);%0A    XMLStringWriter writer = new XMLStringWriter(XML.NamespaceAware.No);%0A%0A    String etag = service.removeMember(group, member, writer, item.getToken(), PSOAuthConfigManager.get().getConfig());%0A    result.addExtraXML(new ExtraResultStringXML(writer.toString()));%0A%0A    LOGGER.debug(%22End Edit Pageseeder Membership%22);%0A    return result;%0A  %7D%0A%7D%0A

add edit membership step