I'm trying to convert my Java code from using the SOAP integration libraries to using the REST libraries.
Using the SOAP libraries, I was able to find all groups with no problem, but now that I'm using the REST libraries, I can't find an easy way to find all the groups.
Here is an example of what I'm currently doing but there surely has to be a better way.
SearchRestriction searchRestriction = Combine.anyOf(Restriction.on(GroupTermKeys.NAME).startingWith("a"),Restriction.on(GroupTermKeys.NAME).startingWith("b")...);
Can anyone help me out here?
Community moderators have prevented the ability to post new answers.
I figured out a kludge solution for my search restriction:
SearchRestriction searchRestriction = Combine.anyOf(Restriction.on(GroupTermKeys.ACTIVE).exactlyMatching(true),Restriction.on(GroupTermKeys.ACTIVE).exactlyMatching(false));
Since the active flag can only be true or false, this will get me every group.
I really wish there was an easier way to just get all the groups, but at least I have a work around for now.
Not sure if this is exactly what you want, if you're using rest resources, you can get a listing of all groups by hitting this:
I sadly, have never played with the actual REST libraries... i just toy with the interfaces from time to time.
Hoping someone who's more knowledgable about the libraries will chime in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I might end up actually using the REST URLs to access the the REST service versus using the REST integration Java libraries since what you posted Tim actually gives me what I want.
I have to agree with Bob, the new APIs are completely different. Not that it's totally a bad thing, but some basic functionality has been removed. Any idea on why it was removed and when it might come back?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.