Package org.bonitasoft.web.client.api
Interface ProfileApi
-
- All Superinterfaces:
ApiClient.Api
public interface ProfileApi extends ApiClient.Api
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProfileApi.SearchProfilesQueryParamsA convenience class for generating query parameters for thesearchProfilesmethod in a fluent style.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProfilecreateProfile(ProfileCreateRequest body)Create the Profile Create the ProfilevoiddeleteProfileById(String id)Delete the Profile by ID Delete the single Profile for the given IDProfilegetProfileById(String id)Finds the Profile by ID Returns the single Profile for the given IDvoidimportProfiles(String profilesDataUpload, String importPolicy)Import profiles Import profilesList<Profile>searchProfiles(Integer p, Integer c, List<String> f, String s, String o)Finds Profiles Finds Profiles with pagination params and filters - can search on `name` - can filter on `name`,`hasNavigation` - can order on `name`List<Profile>searchProfiles(Map<String,Object> queryParams)Finds Profiles Finds Profiles with pagination params and filters - can search on `name` - can filter on `name`,`hasNavigation` - can order on `name` Note, this is equivalent to the othersearchProfilesmethod, but with the query parameters collected into a single Map parameter.voidupdateProfileById(String id, ProfileUpdateRequest profileUpdateRequest)Update the Profile by ID Update the Profile for the given IDStringuploadprofiles(File file)Upload profiles Upload profiles
-
-
-
Method Detail
-
createProfile
Profile createProfile(ProfileCreateRequest body)
Create the Profile Create the Profile- Parameters:
body- Partial Profile description (required)- Returns:
- Profile
-
deleteProfileById
void deleteProfileById(String id)
Delete the Profile by ID Delete the single Profile for the given ID- Parameters:
id- ID of the Profile to delete (required)
-
getProfileById
Profile getProfileById(String id)
Finds the Profile by ID Returns the single Profile for the given ID- Parameters:
id- ID of the Profile to return (required)- Returns:
- Profile
-
importProfiles
void importProfiles(String profilesDataUpload, String importPolicy)
Import profiles Import profiles- Parameters:
profilesDataUpload- Uploaded file (optional)importPolicy- Import policy (optional)
-
searchProfiles
List<Profile> searchProfiles(Integer p, Integer c, List<String> f, String s, String o)
Finds Profiles Finds Profiles with pagination params and filters - can search on `name` - can filter on `name`,`hasNavigation` - can order on `name`- 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)s- can search on attributes (optional)o- can order on attributes (optional)- Returns:
- List<Profile>
-
searchProfiles
List<Profile> searchProfiles(Map<String,Object> queryParams)
Finds Profiles Finds Profiles with pagination params and filters - can search on `name` - can filter on `name`,`hasNavigation` - can order on `name` Note, this is equivalent to the othersearchProfilesmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theProfileApi.SearchProfilesQueryParamsclass 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)
- s - can search on attributes (optional)
- o - can order on attributes (optional)
- Returns:
- List<Profile>
-
updateProfileById
void updateProfileById(String id, ProfileUpdateRequest profileUpdateRequest)
Update the Profile by ID Update the Profile for the given ID- Parameters:
id- ID of the Profile to return (required)profileUpdateRequest- Partial Profile description (required)
-
-