Created
April 10, 2012 14:04
-
-
Save crh/2351598 to your computer and use it in GitHub Desktop.
Remove Organization from Group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void removeOrganization(String groupId, String id) throws EscidocClientException { | |
TaskParam tp = new TaskParam(); | |
UserGroup updated = c.retrieve(groupId); | |
tp.setLastModificationDate(updated.getLastModificationDate()); | |
// FIXME not optimal | |
for (Selector selector : updated.getSelectors()) { | |
if (selector.getContent().equals(id)) { | |
tp.addResourceRef(selector.getObjid()); | |
} | |
} | |
c.removeSelectors(groupId, tp); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment