@ProviderType
public class DynamicMediaServicesConfigUtil
extends java.lang.Object
Constructor and Description |
---|
DynamicMediaServicesConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static DynamicMediaServicesConfig |
getDefaultConfig(ResourceResolver resourceResolver)
the default definition of DynamicMediaServicesConfig
|
static DynamicMediaServicesConfig |
getDefaultConfig(ResourceResolver resourceResolver,
java.lang.String assetPath)
the default definition of DynamicMediaServicesConfig
|
static DynamicMediaServicesConfig |
getDefaultConfigForTenant(ResourceResolver resourceResolver,
java.lang.String tenantId)
the default definition of DynamicMediaServicesConfig
|
static java.lang.String |
getImageServiceUrl(ResourceResolver resourceResolver)
The image service url for the Dynamic Media image delivery
|
static java.lang.String |
getImageServiceUrl(ResourceResolver resourceResolver,
java.lang.String assetPath)
The image service url for the Dynamic Media image delivery
|
static java.lang.String |
getPublicKey(ResourceResolver resourceResolver)
The public key for the Dynamic Media service
|
static java.lang.String |
getPublicKey(ResourceResolver resourceResolver,
java.lang.String assetPath)
The public key for the Dynamic Media service
|
static java.lang.String |
getRegistrationId(Resource resource)
Get encrypted Registration Id for the Dynamic Media service
|
static java.lang.String |
getRegistrationId(ResourceResolver resourceResolver)
Get encrypted Registration Id for the Dynamic Media service
|
static java.lang.String |
getRegistrationId(ResourceResolver resourceResolver,
java.lang.String assetPath)
Get encrypted Registration Id for the Dynamic Media service
|
static java.lang.String |
getRegistrationIdFromTenant(DynamicMediaServicesConfig config)
Get encrypted Registration Id for the Dynamic Media service
|
static java.lang.String |
getServiceUrl(Resource resource)
The service url for the Dynamic Media pr0xy service
|
static java.lang.String |
getServiceUrl(ResourceResolver resourceResolver)
The service url for the Dynamic Media pr0xy service
|
static java.lang.String |
getServiceUrl(ResourceResolver resourceResolver,
java.lang.String assetPath)
The service url for the Dynamic Media pr0xy service
|
static java.lang.String |
getServiceUrlFromTenant(DynamicMediaServicesConfig config)
The service url for the Dynamic Media pr0xy service
|
static boolean |
isDynamicMediaServiceConfigured(ResourceResolver resolver)
Helper method to determine if Dynamic Media Service support cloud config has been defined.
|
static boolean |
isDynamicMediaServiceConfigured(ResourceResolver resolver,
java.lang.String assetPath)
Helper method to determine if Dynamic Media Service support cloud config has been defined.
|
public static boolean isDynamicMediaServiceConfigured(ResourceResolver resolver)
resolver
- a ResourceResolver
to be used for the operationBoolean
indicating if Dynamic Media is enabled or notpublic static boolean isDynamicMediaServiceConfigured(ResourceResolver resolver, java.lang.String assetPath)
resolver
- a ResourceResolver
to be used for the operationassetPath
- - optional uploaded asset path, invalid value refers to the non-tenant-aware environmentBoolean
indicating if Dynamic Media is enabled or notpublic static DynamicMediaServicesConfig getDefaultConfig(ResourceResolver resourceResolver)
resourceResolver
- public static DynamicMediaServicesConfig getDefaultConfig(ResourceResolver resourceResolver, java.lang.String assetPath)
resourceResolver
- assetPath
- - optional uploaded asset path, invalid value refers to the non-tenant-aware environmentpublic static java.lang.String getRegistrationId(ResourceResolver resourceResolver)
resourceResolver
- public static java.lang.String getRegistrationId(ResourceResolver resourceResolver, java.lang.String assetPath)
resourceResolver
- assetPath
- - optional uploaded asset path, invalid value refers to the non-tenant-aware environmentpublic static java.lang.String getRegistrationId(Resource resource)
resource
- public static java.lang.String getRegistrationIdFromTenant(DynamicMediaServicesConfig config)
config
- public static java.lang.String getPublicKey(ResourceResolver resourceResolver)
resourceResolver
- public static java.lang.String getPublicKey(ResourceResolver resourceResolver, java.lang.String assetPath)
resourceResolver
- assetPath
- - optional uploaded asset path, invalid value refers to the non-tenant-aware environmentpublic static java.lang.String getServiceUrl(ResourceResolver resourceResolver)
resourceResolver
- public static java.lang.String getServiceUrl(ResourceResolver resourceResolver, java.lang.String assetPath)
resourceResolver
- assetPath
- - optional uploaded asset path, invalid value refers to the non-tenant-aware environmentpublic static java.lang.String getServiceUrl(Resource resource)
resource
- public static java.lang.String getServiceUrlFromTenant(DynamicMediaServicesConfig config)
config
- public static DynamicMediaServicesConfig getDefaultConfigForTenant(ResourceResolver resourceResolver, java.lang.String tenantId)
resourceResolver
- tenantId
- - gets the tenantId of the loggedIn tenant userpublic static java.lang.String getImageServiceUrl(ResourceResolver resourceResolver)
resourceResolver
- Resource resolverpublic static java.lang.String getImageServiceUrl(ResourceResolver resourceResolver, java.lang.String assetPath)
resourceResolver
- Resource resolverassetPath
- - optional uploaded asset path, invalid value refers to the non-tenant-aware environmentCopyright © 2010 - 2020 Adobe. All Rights Reserved