public interface S7ConfigResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADHOC_FOLDER |
static java.lang.String |
CHARSET
Default char set
|
static java.lang.String |
COMPANY_HANDLE
Scene7 generated company handle ID
|
static java.lang.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 java.lang.String |
DEFAULT_CONFIG_FLAG
Stores the default configuration property flag
|
static java.lang.String |
EMAIL
Scene7 User email ID
|
static java.lang.String |
FLASH_TEMPLATES_SERVER
The Scene7 flash templates publish server URL.
|
static java.lang.String |
FXG_SERVER
Deprecated.
|
static java.lang.String |
IMPORT_QUEUE_NAME
The Scene7 import queue name
|
static java.lang.String |
IMPORT_QUEUE_TOPIC
The import queue topic
|
static java.lang.String |
PASSWORD
Scene7 User password ID
|
static java.lang.String |
PREVIEW_SERVER
The Scene7 preview server URL.
|
static java.lang.String |
PUBLISH_ENABLED
controls s7 publish state updates and synchronization of assets/folders
already managed by s7
|
static java.lang.String |
PUBLISH_SERVER
The Scene7 publish server URL.
|
static java.lang.String |
REGION
Scene7 region (server mapping)
|
static java.lang.String |
ROOT_PATH
The "root path" ID in the S7 sense...see getRootPath()
|
static java.lang.String |
SYNC_ENABLED
controls s7 updates and synchronization of assets/folders already managed by s7
|
static java.lang.String |
TARGET_PATH
The target path property, storing the path where Scene7 assets are downloaded into CQ DAM.
|
static java.lang.String |
USER_HANDLE
Scene7 generated user handle ID
|
Modifier and Type | Method and Description |
---|---|
S7Config |
getDefaultS7Config()
Returns default S7 configuration, resolved using the S7 config service user
If run under DMS7 mode, return DMS7 configuration, otherwise, return S7Connect configuration
|
S7Config |
getDefaultS7Config(ResourceResolver resourceResolver)
Returns default S7 configuration
If run under DMS7 mode, return DMS7 configuration, otherwise, return S7Connect configuration
|
S7Config |
getDefaultS7Config(ResourceResolver resourceResolver,
java.lang.String configRootPath)
Deprecated.
|
S7Config |
getS7Config(ResourceResolver resourceResolver,
java.lang.String configPath)
Returns the S7Config generated from the configPath
|
S7Config |
getS7Config(ResourceResolver resourceResolver,
java.lang.String email,
java.lang.String password,
java.lang.String region)
Returns a S7Config with the corresponding parameters applied.
|
S7Config |
getS7ConfigForAssetPath(ResourceResolver resourceResolver,
java.lang.String assetPath)
Retrieves the Scene7 configuration associated with asset by content path
when Scene7 metadata is not available
|
S7Config |
getS7ConfigForImageUrl(ResourceResolver resourceResolver,
java.lang.String imageUrl)
Deprecated.
|
S7Config |
getS7ConfigForResource(Resource resource)
Deprecated.
|
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 |
getS7ConfigForRootId(ResourceResolver resourceResolver,
java.lang.String rootId)
Looks up scene7 configuration for the specified root id (company name?)
|
java.lang.String |
getS7ConfigPathForAssetPath(ResourceResolver resolver,
java.lang.String assetPath)
Retrieves the Scene7 configuration associated with an asset path.
|
java.lang.String |
getS7ConfigPathForImageUrl(ResourceResolver resolver,
java.lang.String domain,
java.lang.String companyName)
Retrieves the Scene7 configuration associated with an image server URL.
|
java.lang.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.
|
java.util.List<S7Config> |
getS7Configurations(ResourceResolver resourceResolver)
Returns all the S7 configurations, include both old configuration(under /etc) and new configuration after 0DT change(under /conf)
|
java.util.List<S7Config> |
getS7Configurations(ResourceResolver resourceResolver,
java.lang.String configRootPath)
Deprecated.
|
S7Config |
getSharedS7Config(ResourceResolver resourceResolver,
S7Config s7Config)
Returns a copy of the given S7Config pointing to the shared company
|
java.lang.Boolean |
isDMS7Enabled()
Temporary method for checking if DMS7 feature is enalbed
|
java.util.Map<java.lang.String,java.lang.String> |
parseDomainAndCompanyNameForUrl(java.lang.String imageUrl)
Helper method to extract domain and company information related to an
image url
|
static final java.lang.String REGION
static final java.lang.String EMAIL
static final java.lang.String PASSWORD
static final java.lang.String USER_HANDLE
static final java.lang.String COMPANY_HANDLE
static final java.lang.String ROOT_PATH
static final java.lang.String CQ_ROOT_PATH
static final java.lang.String SYNC_ENABLED
static final java.lang.String PUBLISH_ENABLED
static final java.lang.String CHARSET
static final java.lang.String PUBLISH_SERVER
static final java.lang.String PREVIEW_SERVER
static final java.lang.String FLASH_TEMPLATES_SERVER
static final java.lang.String TARGET_PATH
static final java.lang.String DEFAULT_CONFIG_FLAG
static final java.lang.String ADHOC_FOLDER
@Deprecated static final java.lang.String FXG_SERVER
static final java.lang.String IMPORT_QUEUE_NAME
static final java.lang.String IMPORT_QUEUE_TOPIC
S7Config getS7Config(ResourceResolver resourceResolver, java.lang.String email, java.lang.String password, java.lang.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, java.lang.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 java.util.List<S7Config> getS7Configurations(ResourceResolver resourceResolver, java.lang.String configRootPath)
resourceResolver
- - resource resolver to access Scene7 configurationconfigRootPath
- - root path where the configurations will be loaded fromS7Config
configurationsjava.util.List<S7Config> getS7Configurations(ResourceResolver resourceResolver)
resourceResolver
- - resource resolver to access Scene7 configurationS7Config
configurations@Deprecated S7Config getDefaultS7Config(ResourceResolver resourceResolver, java.lang.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 objectS7Config getDefaultS7Config()
S7Config
configuration objectS7Config getS7ConfigForResource(ResourceResolver resourceResolver, Resource resource)
resourceResolver
- - resource resolver to access Scene7 configurationresource
- - a DAM asset resource@Deprecated S7Config getS7ConfigForResource(Resource resource)
resource
- a DAM asset resource@Deprecated S7Config getS7ConfigForImageUrl(ResourceResolver resourceResolver, java.lang.String imageUrl)
resourceResolver
- resource resolver to access Scene7 configurationimageUrl
- the image server URLS7Config getS7ConfigForAssetPath(ResourceResolver resourceResolver, java.lang.String assetPath)
resourceResolver
- resource resolver to access Scene7 configurationassetPath
- the asset content pathS7Config getS7ConfigForRootId(ResourceResolver resourceResolver, java.lang.String rootId)
resourceResolver
- resource resolver to access Scene7 configurationrootId
- catalog root idjava.lang.String getS7ConfigPathForResource(ResourceResolver resolver, Resource resource)
resolver
- resource resolver associated with user sessionresource
- a DAM asset resourcejava.lang.String getS7ConfigPathForImageUrl(ResourceResolver resolver, java.lang.String domain, java.lang.String companyName)
resolver
- resource resolver associated with user sessiondomain
- delivery domain associated with configurationcompanyName
- companyName associated with configurationjava.util.Map<java.lang.String,java.lang.String> parseDomainAndCompanyNameForUrl(java.lang.String imageUrl)
imageUrl
- image url embedding the domain and company informationjava.lang.String getS7ConfigPathForAssetPath(ResourceResolver resolver, java.lang.String assetPath)
resolver
- resource resolver associated with user sessionassetPath
- asset path associated with configurationjava.lang.Boolean isDMS7Enabled()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"