Package com.okta.sdk.resource.api
Class ThemesApi
java.lang.Object
com.okta.sdk.resource.api.ThemesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class ThemesApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteBrandThemeBackgroundImage
(String brandId, String themeId) Delete the Background Image Deletes a Theme background imagevoid
deleteBrandThemeBackgroundImage
(String brandId, String themeId, Map<String, String> additionalHeaders) Delete the Background Image Deletes a Theme background imagevoid
deleteBrandThemeFavicon
(String brandId, String themeId) Delete the Favicon Deletes a Theme favicon.void
Delete the Favicon Deletes a Theme favicon.void
deleteBrandThemeLogo
(String brandId, String themeId) Delete the Logo Deletes a Theme logo.void
Delete the Logo Deletes a Theme logo.getBrandTheme
(String brandId, String themeId) Retrieve a Theme Retrieves a theme for a brandRetrieve a Theme Retrieves a theme for a brandprotected static com.fasterxml.jackson.databind.ObjectMapper
listBrandThemes
(String brandId) List all Themes Lists all the themes in your brand.listBrandThemes
(String brandId, Map<String, String> additionalHeaders) List all Themes Lists all the themes in your brand.replaceBrandTheme
(String brandId, String themeId, UpdateThemeRequest theme) Replace a Theme Replaces a theme for a brandreplaceBrandTheme
(String brandId, String themeId, UpdateThemeRequest theme, Map<String, String> additionalHeaders) Replace a Theme Replaces a theme for a brandvoid
setApiClient
(ApiClient apiClient) uploadBrandThemeBackgroundImage
(String brandId, String themeId, File _file) Upload the Background Image Uploads and replaces the background image for the theme.uploadBrandThemeBackgroundImage
(String brandId, String themeId, File _file, Map<String, String> additionalHeaders) Upload the Background Image Uploads and replaces the background image for the theme.uploadBrandThemeFavicon
(String brandId, String themeId, File _file) Upload the Favicon Uploads and replaces the favicon for the themeuploadBrandThemeFavicon
(String brandId, String themeId, File _file, Map<String, String> additionalHeaders) Upload the Favicon Uploads and replaces the favicon for the themeuploadBrandThemeLogo
(String brandId, String themeId, File _file) Upload the Logo Uploads and replaces the logo for the theme.uploadBrandThemeLogo
(String brandId, String themeId, File _file, Map<String, String> additionalHeaders) Upload the Logo Uploads and replaces the logo for the theme.
-
Constructor Details
-
ThemesApi
public ThemesApi() -
ThemesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
deleteBrandThemeBackgroundImage
Delete the Background Image Deletes a Theme background image- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)- Throws:
ApiException
- if fails to make API call
-
deleteBrandThemeBackgroundImage
public void deleteBrandThemeBackgroundImage(String brandId, String themeId, Map<String, String> additionalHeaders) throws ApiExceptionDelete the Background Image Deletes a Theme background image- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deleteBrandThemeFavicon
Delete the Favicon Deletes a Theme favicon. The theme will use the default Okta favicon.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)- Throws:
ApiException
- if fails to make API call
-
deleteBrandThemeFavicon
public void deleteBrandThemeFavicon(String brandId, String themeId, Map<String, String> additionalHeaders) throws ApiExceptionDelete the Favicon Deletes a Theme favicon. The theme will use the default Okta favicon.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deleteBrandThemeLogo
Delete the Logo Deletes a Theme logo. The theme will use the default Okta logo.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)- Throws:
ApiException
- if fails to make API call
-
deleteBrandThemeLogo
public void deleteBrandThemeLogo(String brandId, String themeId, Map<String, String> additionalHeaders) throws ApiExceptionDelete the Logo Deletes a Theme logo. The theme will use the default Okta logo.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getBrandTheme
Retrieve a Theme Retrieves a theme for a brand- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)- Returns:
- ThemeResponse
- Throws:
ApiException
- if fails to make API call
-
getBrandTheme
public ThemeResponse getBrandTheme(String brandId, String themeId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Theme Retrieves a theme for a brand- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ThemeResponse
- Throws:
ApiException
- if fails to make API call
-
listBrandThemes
List all Themes Lists all the themes in your brand. > **Important:** Currently each org supports only one Theme, therefore this contains a single object only.- Parameters:
brandId
- The ID of the brand (required)- Returns:
- List<ThemeResponse>
- Throws:
ApiException
- if fails to make API call
-
listBrandThemes
public List<ThemeResponse> listBrandThemes(String brandId, Map<String, String> additionalHeaders) throws ApiExceptionList all Themes Lists all the themes in your brand. > **Important:** Currently each org supports only one Theme, therefore this contains a single object only.- Parameters:
brandId
- The ID of the brand (required)additionalHeaders
- additionalHeaders for this call- Returns:
- List<ThemeResponse>
- Throws:
ApiException
- if fails to make API call
-
replaceBrandTheme
public ThemeResponse replaceBrandTheme(String brandId, String themeId, UpdateThemeRequest theme) throws ApiException Replace a Theme Replaces a theme for a brand- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)theme
- (required)- Returns:
- ThemeResponse
- Throws:
ApiException
- if fails to make API call
-
replaceBrandTheme
public ThemeResponse replaceBrandTheme(String brandId, String themeId, UpdateThemeRequest theme, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Theme Replaces a theme for a brand- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)theme
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ThemeResponse
- Throws:
ApiException
- if fails to make API call
-
uploadBrandThemeBackgroundImage
public ImageUploadResponse uploadBrandThemeBackgroundImage(String brandId, String themeId, File _file) throws ApiException Upload the Background Image Uploads and replaces the background image for the theme. The file must be in PNG, JPG, or GIF format and less than 2 MB in size.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)_file
- (required)- Returns:
- ImageUploadResponse
- Throws:
ApiException
- if fails to make API call
-
uploadBrandThemeBackgroundImage
public ImageUploadResponse uploadBrandThemeBackgroundImage(String brandId, String themeId, File _file, Map<String, String> additionalHeaders) throws ApiExceptionUpload the Background Image Uploads and replaces the background image for the theme. The file must be in PNG, JPG, or GIF format and less than 2 MB in size.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)_file
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ImageUploadResponse
- Throws:
ApiException
- if fails to make API call
-
uploadBrandThemeFavicon
public ImageUploadResponse uploadBrandThemeFavicon(String brandId, String themeId, File _file) throws ApiException Upload the Favicon Uploads and replaces the favicon for the theme- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)_file
- (required)- Returns:
- ImageUploadResponse
- Throws:
ApiException
- if fails to make API call
-
uploadBrandThemeFavicon
public ImageUploadResponse uploadBrandThemeFavicon(String brandId, String themeId, File _file, Map<String, String> additionalHeaders) throws ApiExceptionUpload the Favicon Uploads and replaces the favicon for the theme- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)_file
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ImageUploadResponse
- Throws:
ApiException
- if fails to make API call
-
uploadBrandThemeLogo
public ImageUploadResponse uploadBrandThemeLogo(String brandId, String themeId, File _file) throws ApiException Upload the Logo Uploads and replaces the logo for the theme. The file must be in PNG, JPG, or GIF format and less than 100kB in size. For best results use landscape orientation, a transparent background, and a minimum size of 300px by 50px to prevent upscaling.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)_file
- (required)- Returns:
- ImageUploadResponse
- Throws:
ApiException
- if fails to make API call
-
uploadBrandThemeLogo
public ImageUploadResponse uploadBrandThemeLogo(String brandId, String themeId, File _file, Map<String, String> additionalHeaders) throws ApiExceptionUpload the Logo Uploads and replaces the logo for the theme. The file must be in PNG, JPG, or GIF format and less than 100kB in size. For best results use landscape orientation, a transparent background, and a minimum size of 300px by 50px to prevent upscaling.- Parameters:
brandId
- The ID of the brand (required)themeId
- The ID of the theme (required)_file
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ImageUploadResponse
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-