public class MembershipRestAPI extends Object implements Serializable
| Constructor and Description |
|---|
MembershipRestAPI(String uri) |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.accounting.datamodel.Group |
getGroups(String query) |
org.gcube.accounting.datamodel.Membership |
getMembership(String query)
Return the membership matching the given query.
|
org.gcube.accounting.datamodel.User |
getUser(String query) |
void |
setUserToken(String username,
String password) |
public MembershipRestAPI(String uri)
uri - the uri of the Membershippublic org.gcube.accounting.datamodel.Membership getMembership(String query)
query - must have the form: userIdpublic org.gcube.accounting.datamodel.User getUser(String query)
public org.gcube.accounting.datamodel.Group getGroups(String query)
Copyright © 2014. All Rights Reserved.