@ProviderType
public interface S7ConfigResolver
Modifier and Type | Field and Description |
---|---|
static String |
ADHOC_FOLDER |
static String |
CHARSET
Default char set
|
static String |
COMPANY_HANDLE
Scene7 generated company handle ID
|
static String |
CQ_ROOT_PATH
cq root folder ID in the scene7 company folder hierarchy, is not the "root path" in the S7 (see getRootPath())
|
static String |
DEFAULT_CONFIG_FLAG
Stores the default configuration property flag
|
static String |
EMAIL
Scene7 User email ID
|
static String |
FLASH_TEMPLATES_SERVER
The Scene7 flash templates publish server URL.
|
static String |
FXG_SERVER
Deprecated.
|
static String |
IMPORT_QUEUE_NAME
The Scene7 import queue name
|
static String |
IMPORT_QUEUE_TOPIC
The import queue topic
|
static String |
PASSWORD
Scene7 User password ID
|
static String |
PREVIEW_SERVER
The Scene7 preview server URL.
|
static String |
PUBLISH_ENABLED
controls s7 publish state updates and synchronization of assets/folders
already managed by s7
|
static String |
PUBLISH_SERVER
The Scene7 publish server URL.
|
static String |
REGION
Scene7 region (server mapping)
|
static String |
ROOT_PATH
The "root path" ID in the S7 sense...see getRootPath()
|
static String |
SYNC_ENABLED
controls s7 updates and synchronization of assets/folders already managed by s7
|
static String |
TARGET_PATH
The target path property, storing the path where Scene7 assets are downloaded into CQ DAM.
|
static String |
USER_HANDLE
Scene7 generated user handle ID
|
Modifier and Type | Method and Description |
---|---|
S7Config |
getDefaultS7Config()
Deprecated.
Warning: this method leaks ResourceResolver! Use
getDefaultS7Config(ResourceResolver) instead! |
S7Config |
getDefaultS7Config(ResourceResolver resourceResolver)
Returns default S7 configuration
If run under DMS7 mode, return DMS7 configuration, otherwise, return S7Connect configuration
|
S7Config |
getDefaultS7Config(ResourceResolver resourceResolver,
String configRootPath)
Deprecated.
|
S7Config |
getS7Config(ResourceResolver resourceResolver,
String configPath)
Returns the S7Config generated from the configPath
|
S7Config |
getS7Config(ResourceResolver resourceResolver,
String email,
String password,
String region)
Returns a S7Config with the corresponding parameters applied.
|
S7Config |
getS7ConfigForAssetPath(ResourceResolver resourceResolver,
String assetPath)
Retrieves the Scene7 configuration associated with asset by content path
when Scene7 metadata is not available
|
S7Config |
getS7ConfigForImageUrl(ResourceResolver resourceResolver,
String imageUrl)
Deprecated.
|
S7Config |
getS7ConfigForResource(Resource resource)
Deprecated.
this method returns unreadable config!
Use
getS7ConfigForResource(ResourceResolver, Resource) instead. |
S7Config |
getS7ConfigForResource(ResourceResolver resourceResolver,
Resource resource)
Retrieves the Scene7 configuration associated with a DAM asset resource
by successively analysing the resource and then its parents.
|
S7Config |
getS7ConfigForResource(ResourceResolver resourceResolver,
Resource resource,
boolean ignoreSelectiveSync)
Retrieves the Scene7 configuration associated with a DAM asset resource
by successively analysing the resource and then its parents.
|
S7Config |
getS7ConfigForRootId(ResourceResolver resourceResolver,
String rootId)
Looks up scene7 configuration for the specified root id (company name?)
|
String |
getS7ConfigPathForAssetPath(ResourceResolver resolver,
String assetPath)
Retrieves the Scene7 configuration associated with an asset path.
|
String |
getS7ConfigPathForImageUrl(ResourceResolver resolver,
String domain,
String companyName)
Retrieves the Scene7 configuration associated with an image server URL.
|
String |
getS7ConfigPathForResource(ResourceResolver resolver,
Resource resource)
Retrieves the Scene7 configuration path associated with a DAM asset
resource by successively analysing the resource and then its parents.
|
List<S7Config> |
getS7Configurations(ResourceResolver resourceResolver)
Returns all the S7 configurations, include both old configuration(under /etc) and new configuration after 0DT change(under /conf)
|
List<S7Config> |
getS7Configurations(ResourceResolver resourceResolver,
String configRootPath)
Deprecated.
|
S7Config |
getSharedS7Config(ResourceResolver resourceResolver,
S7Config s7Config)
Returns a copy of the given S7Config pointing to the shared company
|
Boolean |
isDMS7Enabled()
Temporary method for checking if DMS7 feature is enalbed
|
Map<String,String> |
parseDomainAndCompanyNameForUrl(String imageUrl)
Helper method to extract domain and company information related to an
image url
|
static final String REGION
static final String EMAIL
static final String PASSWORD
static final String USER_HANDLE
static final String COMPANY_HANDLE
static final String ROOT_PATH
static final String CQ_ROOT_PATH
static final String SYNC_ENABLED
static final String PUBLISH_ENABLED
static final String CHARSET
static final String PUBLISH_SERVER
static final String PREVIEW_SERVER
static final String FLASH_TEMPLATES_SERVER
static final String TARGET_PATH
static final String DEFAULT_CONFIG_FLAG
static final String ADHOC_FOLDER
@Deprecated static final String FXG_SERVER
static final String IMPORT_QUEUE_NAME
static final String IMPORT_QUEUE_TOPIC
S7Config getS7Config(ResourceResolver resourceResolver, String email, String password, String region)
resourceResolver
- - resource resolver to access Scene7 configurationemail
- - scene7 account name used for connect to Scene7 serverpassword
- - scene7 account password used for connect to Scene7 serverregion
- - scene7 server regionS7Config getS7Config(ResourceResolver resourceResolver, String configPath)
resourceResolver
- - resource resolver to access Scene7 configurationconfigPath
- - path to the target s7 cloud configPath settingsS7Config getSharedS7Config(ResourceResolver resourceResolver, S7Config s7Config)
resourceResolver
- - resource resolver to access Scene7 configurations7Config
- - config to copy from@Deprecated List<S7Config> getS7Configurations(ResourceResolver resourceResolver, String configRootPath)
resourceResolver
- - resource resolver to access Scene7 configurationconfigRootPath
- - root path where the configurations will be loaded fromS7Config
configurationsList<S7Config> getS7Configurations(ResourceResolver resourceResolver)
resourceResolver
- - resource resolver to access Scene7 configurationS7Config
configurations@Deprecated S7Config getDefaultS7Config(ResourceResolver resourceResolver, String configRootPath)
resourceResolver
- - resource resolver to access Scene7 configurationconfigRootPath
- - root path where the configurations will be loaded fromS7Config
configuration objectS7Config getDefaultS7Config(ResourceResolver resourceResolver)
resourceResolver
- - resource resolver to access Scene7 configurationS7Config
configuration object@Deprecated S7Config getDefaultS7Config()
getDefaultS7Config(ResourceResolver)
instead!S7Config
configuration objectS7Config getS7ConfigForResource(ResourceResolver resourceResolver, Resource resource)
resourceResolver
- - resource resolver to access Scene7 configurationresource
- - a DAM asset resourceS7Config getS7ConfigForResource(ResourceResolver resourceResolver, Resource resource, boolean ignoreSelectiveSync)
resourceResolver
- - resource resolver to access Scene7 configurationresource
- - a DAM asset resourceignoreSelectiveSync
- - ignore selective sync and return default config@Deprecated S7Config getS7ConfigForResource(Resource resource)
getS7ConfigForResource(ResourceResolver, Resource)
instead.resource
- a DAM asset resource@Deprecated S7Config getS7ConfigForImageUrl(ResourceResolver resourceResolver, String imageUrl)
resourceResolver
- resource resolver to access Scene7 configurationimageUrl
- the image server URLS7Config getS7ConfigForAssetPath(ResourceResolver resourceResolver, String assetPath)
resourceResolver
- resource resolver to access Scene7 configurationassetPath
- the asset content pathS7Config getS7ConfigForRootId(ResourceResolver resourceResolver, String rootId)
resourceResolver
- resource resolver to access Scene7 configurationrootId
- catalog root idString getS7ConfigPathForResource(ResourceResolver resolver, Resource resource)
resolver
- resource resolver associated with user sessionresource
- a DAM asset resourceString getS7ConfigPathForImageUrl(ResourceResolver resolver, String domain, String companyName)
resolver
- resource resolver associated with user sessiondomain
- delivery domain associated with configurationcompanyName
- companyName associated with configurationMap<String,String> parseDomainAndCompanyNameForUrl(String imageUrl)
imageUrl
- image url embedding the domain and company informationString getS7ConfigPathForAssetPath(ResourceResolver resolver, String assetPath)
resolver
- resource resolver associated with user sessionassetPath
- asset path associated with configurationBoolean isDMS7Enabled()
Copyright © 2010 - 2020 Adobe. All Rights Reserved