Package org.bonitasoft.web.client.api
Interface PageApi
-
- All Superinterfaces:
ApiClient.Api
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public interface PageApi extends ApiClient.Api
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPageApi.SearchPagesQueryParamsA convenience class for generating query parameters for thesearchPagesmethod in a fluent style.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PagecreatePage(PageCreateRequest body)Create the Page Upload the page content using the `portal/pageUpload` .ApiResponse<Page>createPageWithHttpInfo(PageCreateRequest body)Create the Page Similar tocreatePagebut it also returns the http response headers .voiddeletePageById(String id)Delete the Page by ID Delete the single Page for the given IDApiResponse<Void>deletePageByIdWithHttpInfo(String id)Delete the Page by ID Similar todeletePageByIdbut it also returns the http response headers .PagegetPageById(String id)Finds the Page by ID Returns the single Page for the given IDApiResponse<Page>getPageByIdWithHttpInfo(String id)Finds the Page by ID Similar togetPageByIdbut it also returns the http response headers .List<Page>searchPages(Integer p, Integer c, List<String> f, String o, String s)Finds Pages Finds Pages with pagination params and filters - can search on `displayName`,`description` - can filter on `createdBy`,`contentType`List<Page>searchPages(Map<String,Object> queryParams)Finds Pages Finds Pages with pagination params and filters - can search on `displayName`,`description` - can filter on `createdBy`,`contentType` Note, this is equivalent to the othersearchPagesmethod, but with the query parameters collected into a single Map parameter.ApiResponse<List<Page>>searchPagesWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)Finds Pages Similar tosearchPagesbut it also returns the http response headers .ApiResponse<List<Page>>searchPagesWithHttpInfo(Map<String,Object> queryParams)Finds Pages Finds Pages with pagination params and filters - can search on `displayName`,`description` - can filter on `createdBy`,`contentType` Note, this is equivalent to the othersearchPagesthat receives the query parameters as a map, but this one also exposes the Http response headersvoidupdatePageById(String id, PageUpdateRequest pageUpdateRequest)Update the Page by ID Use the PUT method to update an existing custom page.ApiResponse<Void>updatePageByIdWithHttpInfo(String id, PageUpdateRequest pageUpdateRequest)Update the Page by ID Similar toupdatePageByIdbut it also returns the http response headers .StringuploadPage(File file)Upload a Page Upload PageApiResponse<String>uploadPageWithHttpInfo(File file)Upload a Page Similar touploadPagebut it also returns the http response headers .
-
-
-
Method Detail
-
createPage
Page createPage(PageCreateRequest body)
Create the Page Upload the page content using the `portal/pageUpload` . This returns a temporary file name that can be used as input for this operation.- Parameters:
body- Zip name as named in the temp folder after upload (required)- Returns:
- Page
-
createPageWithHttpInfo
ApiResponse<Page> createPageWithHttpInfo(PageCreateRequest body)
Create the Page Similar tocreatePagebut it also returns the http response headers . Upload the page content using the `portal/pageUpload` . This returns a temporary file name that can be used as input for this operation.- Parameters:
body- Zip name as named in the temp folder after upload (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
deletePageById
void deletePageById(String id)
Delete the Page by ID Delete the single Page for the given ID- Parameters:
id- ID of the Page to delete (required)
-
deletePageByIdWithHttpInfo
ApiResponse<Void> deletePageByIdWithHttpInfo(String id)
Delete the Page by ID Similar todeletePageByIdbut it also returns the http response headers . Delete the single Page for the given ID- Parameters:
id- ID of the Page to delete (required)
-
getPageById
Page getPageById(String id)
Finds the Page by ID Returns the single Page for the given ID- Parameters:
id- ID of the Page to return (required)- Returns:
- Page
-
getPageByIdWithHttpInfo
ApiResponse<Page> getPageByIdWithHttpInfo(String id)
Finds the Page by ID Similar togetPageByIdbut it also returns the http response headers . Returns the single Page for the given ID- Parameters:
id- ID of the Page to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchPages
List<Page> searchPages(Integer p, Integer c, List<String> f, String o, String s)
Finds Pages Finds Pages with pagination params and filters - can search on `displayName`,`description` - can filter on `createdBy`,`contentType`- 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<Page>
-
searchPagesWithHttpInfo
ApiResponse<List<Page>> searchPagesWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)
Finds Pages Similar tosearchPagesbut it also returns the http response headers . Finds Pages with pagination params and filters - can search on `displayName`,`description` - can filter on `createdBy`,`contentType`- 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.
-
searchPages
List<Page> searchPages(Map<String,Object> queryParams)
Finds Pages Finds Pages with pagination params and filters - can search on `displayName`,`description` - can filter on `createdBy`,`contentType` Note, this is equivalent to the othersearchPagesmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with thePageApi.SearchPagesQueryParamsclass 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<Page>
-
searchPagesWithHttpInfo
ApiResponse<List<Page>> searchPagesWithHttpInfo(Map<String,Object> queryParams)
Finds Pages Finds Pages with pagination params and filters - can search on `displayName`,`description` - can filter on `createdBy`,`contentType` Note, this is equivalent to the othersearchPagesthat 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<Page>
-
updatePageById
void updatePageById(String id, PageUpdateRequest pageUpdateRequest)
Update the Page by ID Use the PUT method to update an existing custom page. To update a custom page, upload the new page content using the pageUpload servlet, which returns a temporary file name, and then call this API with the temporary file name.- Parameters:
id- ID of the Page to return (required)pageUpdateRequest- Partial Page description (required)
-
updatePageByIdWithHttpInfo
ApiResponse<Void> updatePageByIdWithHttpInfo(String id, PageUpdateRequest pageUpdateRequest)
Update the Page by ID Similar toupdatePageByIdbut it also returns the http response headers . Use the PUT method to update an existing custom page. To update a custom page, upload the new page content using the pageUpload servlet, which returns a temporary file name, and then call this API with the temporary file name.- Parameters:
id- ID of the Page to return (required)pageUpdateRequest- Partial Page description (required)
-
uploadPage
String uploadPage(File file)
Upload a Page Upload Page- Parameters:
file- (optional)- Returns:
- String
-
uploadPageWithHttpInfo
ApiResponse<String> uploadPageWithHttpInfo(File file)
Upload a Page Similar touploadPagebut it also returns the http response headers . Upload Page- Parameters:
file- (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
-