Package org.bonitasoft.web.client.api
Interface MembershipApi
- All Superinterfaces:
ApiClient.Api
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.12.0")
public interface MembershipApi
extends ApiClient.Api
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA convenience class for generating query parameters for thesearchMembershipsmethod in a fluent style. -
Method Summary
Modifier and TypeMethodDescriptionCreate the Membership Create the MembershipCreate the Membership Similar tocreateMembershipbut it also returns the http response headers .voiddeleteMembershipById(String userId, String groupId, String roleId) Delete the Membership by ID Delete a membership of a user using the group id and role id.deleteMembershipByIdWithHttpInfo(String userId, String groupId, String roleId) Delete the Membership by ID Similar todeleteMembershipByIdbut it also returns the http response headers .Finds Memberships Finds Memberships with pagination params and filters **Filter `user_id` is mandatory** You can order with the values: `ROLE_NAME_ASC`,`ROLE_NAME_DESC`, `GROUP_NAME_ASC`,`GROUP_NAME_DESC`, `ASSIGNED_DATE_ASC`, `ASSIGNED_DATE_DESC`Finds Memberships Finds Memberships with pagination params and filters **Filter `user_id` is mandatory** You can order with the values: `ROLE_NAME_ASC`,`ROLE_NAME_DESC`, `GROUP_NAME_ASC`,`GROUP_NAME_DESC`, `ASSIGNED_DATE_ASC`, `ASSIGNED_DATE_DESC` Note, this is equivalent to the othersearchMembershipsmethod, but with the query parameters collected into a single Map parameter.Finds Memberships Similar tosearchMembershipsbut it also returns the http response headers .Finds Memberships Finds Memberships with pagination params and filters **Filter `user_id` is mandatory** You can order with the values: `ROLE_NAME_ASC`,`ROLE_NAME_DESC`, `GROUP_NAME_ASC`,`GROUP_NAME_DESC`, `ASSIGNED_DATE_ASC`, `ASSIGNED_DATE_DESC` Note, this is equivalent to the othersearchMembershipsthat receives the query parameters as a map, but this one also exposes the Http response headers
-
Method Details
-
createMembership
Create the Membership Create the Membership- Parameters:
body- Partial Membership description (required)- Returns:
- Membership
-
createMembershipWithHttpInfo
Create the Membership Similar tocreateMembershipbut it also returns the http response headers . Create the Membership- Parameters:
body- Partial Membership description (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
deleteMembershipById
Delete the Membership by ID Delete a membership of a user using the group id and role id.- Parameters:
userId- User ID of the Membership to delete (required)groupId- Group ID of the Membership to delete (required)roleId- Role ID of the Membership to delete (required)
-
deleteMembershipByIdWithHttpInfo
Delete the Membership by ID Similar todeleteMembershipByIdbut it also returns the http response headers . Delete a membership of a user using the group id and role id.- Parameters:
userId- User ID of the Membership to delete (required)groupId- Group ID of the Membership to delete (required)roleId- Role ID of the Membership to delete (required)
-
searchMemberships
Finds Memberships Finds Memberships with pagination params and filters **Filter `user_id` is mandatory** You can order with the values: `ROLE_NAME_ASC`,`ROLE_NAME_DESC`, `GROUP_NAME_ASC`,`GROUP_NAME_DESC`, `ASSIGNED_DATE_ASC`, `ASSIGNED_DATE_DESC`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- List<Membership>
-
searchMembershipsWithHttpInfo
ApiResponse<List<Membership>> searchMembershipsWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s) Finds Memberships Similar tosearchMembershipsbut it also returns the http response headers . Finds Memberships with pagination params and filters **Filter `user_id` is mandatory** You can order with the values: `ROLE_NAME_ASC`,`ROLE_NAME_DESC`, `GROUP_NAME_ASC`,`GROUP_NAME_DESC`, `ASSIGNED_DATE_ASC`, `ASSIGNED_DATE_DESC`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchMemberships
Finds Memberships Finds Memberships with pagination params and filters **Filter `user_id` is mandatory** You can order with the values: `ROLE_NAME_ASC`,`ROLE_NAME_DESC`, `GROUP_NAME_ASC`,`GROUP_NAME_DESC`, `ASSIGNED_DATE_ASC`, `ASSIGNED_DATE_DESC` Note, this is equivalent to the othersearchMembershipsmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theMembershipApi.SearchMembershipsQueryParamsclass that allows for building up this map in a fluent style.- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<Membership>
-
searchMembershipsWithHttpInfo
ApiResponse<List<Membership>> searchMembershipsWithHttpInfo(MembershipApi.SearchMembershipsQueryParams queryParams) Finds Memberships Finds Memberships with pagination params and filters **Filter `user_id` is mandatory** You can order with the values: `ROLE_NAME_ASC`,`ROLE_NAME_DESC`, `GROUP_NAME_ASC`,`GROUP_NAME_DESC`, `ASSIGNED_DATE_ASC`, `ASSIGNED_DATE_DESC` Note, this is equivalent to the othersearchMembershipsthat receives the query parameters as a map, but this one also exposes the Http response headers- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<Membership>
-