Package com.day.cq.dam.scene7.api
Interface S7Config
-
@ProviderType public interface S7Config
Scene7 server access configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
S7Config.SyncMode
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
close()
Close ResourceResolver embedded into this S7Config instance, if necessary.String
get(String prop)
Returns a property of this configuration with the specified name.String
getAdhocFolder()
Returns the Scene7 ad-hoc folder for this configuration.String
getAllMimeTypeJobParams()
Returns the Scene7 upload job parameters configured under the scene7 configString
getBasePath()
Returns the top most folder of the S7 company associated with this configuration.String
getCachedPreviewServerToken()
Returns the cached jwt token issued by IPS, to be used to authenticate by ImageServing Preview.String
getCloudConfigPath()
Returns the configuration path of this configuration.String
getCompanyHandle()
Returns the company handle associated with this configuration.S7Config.SyncMode
getDefaultSyncMode()
String
getEmail()
Returns the email address used for this configuration.String
getFlashTemplatesServer()
Deprecated.String
getFXGServer()
Deprecated.String
getImportQueueName()
Returns the name of the import queueString
getImportQueueTopic()
Returns the topic of the associated import queueBoolean
getMimeTypeEnabled(String mimeType)
Returns if enable the S7 uploading with given MIME type, by default return true if cannot find the valueString
getMimeTypeJobParams(String mimeType)
Returns the Scene7 upload job parameters associated with given MIME typeString
getMimeTypeJobParams(String mimeType, Boolean addCommonJobParam)
Returns the Scene7 upload job parameters associated with given MIME typeString
getPassword()
Returns the encrypted password for the S7 service associated with this cloud configuration.String
getPreviewableServer()
Returns the proper server for previewing, it return previewServer always regardless if immediate mode It was designed to return server by checking immediate mode or not, but envolved into always return new preview serverString
getPreviewServer()
Returns the Scene7 configured preview server.InheritanceValueMap
getPropertiesMap()
Returns the properties held in this S7 configuration object.Scene7PublishMode
getPublishMode()
Returns the secure preview feature state support status as a string.String
getPublishServer()
Returns the Scene7 configured publish server.String
getRegion()
Returns the region for this configuration.String
getRootPath()
Returns the root path of the Scene7 company hierarchy (not to be confused with the actual physical path on the S7 servers).String
getTargetPath()
Returns the target path where the Scene7 assets are downloaded into CQ DAM.String
getUserHandle()
Returns the user handle associated with this configuration.boolean
isDefault()
Returns the default status of this configurationString
isDelayedPublishEnabled()
Deprecated.boolean
isMimeTypeDenied(String mimeType)
Check if mimeType is denied or notString
isPublishEnabled()
Deprecated.boolean
isSelectiveSyncEnabled()
String
isSyncEnabled()
Returns the synchronisation status as a string.void
setJCRContentProperty(String property, String value)
Sets the param value at the Jcr:Content levelvoid
setMimeTypeJobParams(String mimeType, String jobParams)
sets the upload job Params of given mimetype
-
-
-
Method Detail
-
getCloudConfigPath
String getCloudConfigPath()
Returns the configuration path of this configuration.- Returns:
- the s7 cloud configuration path
-
getEmail
String getEmail()
Returns the email address used for this configuration.- Returns:
- email address for the s7 cloud configuration
-
getPassword
String getPassword()
Returns the encrypted password for the S7 service associated with this cloud configuration. To decrypt the password use theCryptoSupport
'sunprotect
method.- Returns:
- encrypted password for s7 service associated with this cloud configuration
-
getRegion
String getRegion()
Returns the region for this configuration.- Returns:
- associated s7 server region associated with this cloud configuration
-
getUserHandle
String getUserHandle()
Returns the user handle associated with this configuration.- Returns:
- the user handle associated with the s7 server account
-
getCompanyHandle
String getCompanyHandle()
Returns the company handle associated with this configuration.- Returns:
- the company handle associated with the s7 server account
-
getRootPath
String getRootPath()
Returns the root path of the Scene7 company hierarchy (not to be confused with the actual physical path on the S7 servers).- Returns:
- virtual root path
-
isSyncEnabled
String isSyncEnabled()
Returns the synchronisation status as a string.- Returns:
- string value ("on/"off") that controls whether previously published folders/assets are kept in sync from cq to s7 when moved or updated
-
isDelayedPublishEnabled
@Deprecated String isDelayedPublishEnabled()
Deprecated.Returns the secure preview feature state support status as a string.- Returns:
- string value ("on/"off") that controls whether DAM asset activation state reflects Scene7 asset MarkForPublish state
-
getPublishMode
Scene7PublishMode getPublishMode()
Returns the secure preview feature state support status as a string.- Returns:
- string value ("IMMEDIATE/"ML"/"SELECTIVE") that controls whether DAM asset activation state reflects Scene7 asset MarkForPublish state
-
isPublishEnabled
@Deprecated String isPublishEnabled()
Deprecated.Returns the secure preview feature state support status as a string.- Returns:
- string value ("on/"off") that controls whether DAM asset activation state reflects Scene7 asset MarkForPublish state
-
getBasePath
String getBasePath()
Returns the top most folder of the S7 company associated with this configuration.- Returns:
- company root folder
-
get
String get(String prop)
Returns a property of this configuration with the specified name.- Parameters:
prop
- the property's name- Returns:
- the value of the property
-
getPropertiesMap
InheritanceValueMap getPropertiesMap()
Returns the properties held in this S7 configuration object.- Returns:
- the properties map
-
getPublishServer
String getPublishServer()
Returns the Scene7 configured publish server.- Returns:
- a String with the server's URL
-
getPreviewServer
String getPreviewServer()
Returns the Scene7 configured preview server.- Returns:
- a String with the server's URL
-
getPreviewableServer
String getPreviewableServer()
Returns the proper server for previewing, it return previewServer always regardless if immediate mode It was designed to return server by checking immediate mode or not, but envolved into always return new preview server- Returns:
- a String with the server's URL
-
getCachedPreviewServerToken
String getCachedPreviewServerToken()
Returns the cached jwt token issued by IPS, to be used to authenticate by ImageServing Preview.- Returns:
- a String with the jwt token
-
getFlashTemplatesServer
@Deprecated String getFlashTemplatesServer()
Deprecated.Returns the configured Scene7 Flash Templates server.- Returns:
- a String with the server's URL
-
getTargetPath
String getTargetPath()
Returns the target path where the Scene7 assets are downloaded into CQ DAM.- Returns:
- a String containing the full path where the Scene7 assets will be saved into DAM
-
isDefault
boolean isDefault()
Returns the default status of this configuration- Returns:
- boolean value indicating if this S7 configuration is the default one
-
getFXGServer
@Deprecated String getFXGServer()
Deprecated.Returns the cached S7 FXG endpoint URL. Deprecated and only return null now.- Returns:
- a String containing the FXG URL
-
getAdhocFolder
String getAdhocFolder()
Returns the Scene7 ad-hoc folder for this configuration.- Returns:
- a String containing the ad-hoc folder path
-
getImportQueueName
String getImportQueueName()
Returns the name of the import queue- Returns:
- a String containing the name of the import queue
-
getImportQueueTopic
String getImportQueueTopic()
Returns the topic of the associated import queue- Returns:
- a String containing the import queue topic
-
getMimeTypeJobParams
String getMimeTypeJobParams(String mimeType)
Returns the Scene7 upload job parameters associated with given MIME type- Parameters:
mimeType
- asset MIME type- Returns:
- a String containing all Scene7 upload job parameters
-
getMimeTypeJobParams
String getMimeTypeJobParams(String mimeType, Boolean addCommonJobParam)
Returns the Scene7 upload job parameters associated with given MIME type- Parameters:
mimeType
- asset MIME typeaddCommonJobParam
- add common job params- Returns:
- a String containing all Scene7 upload job parameters
-
getAllMimeTypeJobParams
String getAllMimeTypeJobParams()
Returns the Scene7 upload job parameters configured under the scene7 config- Returns:
- a String containing all Scene7 upload job parameters
-
setMimeTypeJobParams
void setMimeTypeJobParams(String mimeType, String jobParams)
sets the upload job Params of given mimetype- Parameters:
mimeType
- asset MIME typejobParams
- job params
-
getMimeTypeEnabled
Boolean getMimeTypeEnabled(String mimeType)
Returns if enable the S7 uploading with given MIME type, by default return true if cannot find the value- Parameters:
mimeType
- asset MIME type- Returns:
- Boolean indicate if we sync such mimetype assets to S7
-
getDefaultSyncMode
S7Config.SyncMode getDefaultSyncMode()
-
isSelectiveSyncEnabled
boolean isSelectiveSyncEnabled()
-
close
void close()
Close ResourceResolver embedded into this S7Config instance, if necessary. You must call this method explicitly when this S7Config instance was obtained from factory methods which instantiate the new ResourceResolver (i.e. when factory method has no input ResourceResolver parameter).
-
setJCRContentProperty
void setJCRContentProperty(String property, String value)
Sets the param value at the Jcr:Content level- Parameters:
property
- param namevalue
- param value
-
isMimeTypeDenied
boolean isMimeTypeDenied(String mimeType)
Check if mimeType is denied or not- Parameters:
mimeType
-
-
-