Package com.day.cq.dam.scene7.api
Interface S7Config
Scene7 server access configuration.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close ResourceResolver embedded into this S7Config instance, if necessary.Returns a property of this configuration with the specified name.Returns the Scene7 ad-hoc folder for this configuration.Returns the Scene7 upload job parameters configured under the scene7 configReturns the top most folder of the S7 company associated with this configuration.Returns the cached jwt token issued by IPS, to be used to authenticate by ImageServing Preview.Returns the configuration path of this configuration.Returns the company handle associated with this configuration.getEmail()Returns the email address used for this configuration.Deprecated.Deprecated.Returns the name of the import queueReturns the topic of the associated import queuegetMimeTypeEnabled(String mimeType) Returns if enable the S7 uploading with given MIME type, by default return true if cannot find the valuegetMimeTypeJobParams(String mimeType) Returns the Scene7 upload job parameters associated with given MIME typegetMimeTypeJobParams(String mimeType, Boolean addCommonJobParam) Returns the Scene7 upload job parameters associated with given MIME typeReturns the encrypted password for the S7 service associated with this cloud configuration.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 serverReturns the Scene7 configured preview server.Returns the properties held in this S7 configuration object.Returns the secure preview feature state support status as a string.Returns the Scene7 configured publish server.Returns the region for this configuration.Returns the root path of the Scene7 company hierarchy (not to be confused with the actual physical path on the S7 servers).Returns the target path where the Scene7 assets are downloaded into CQ DAM.Returns the user handle associated with this configuration.booleanReturns the default status of this configurationDeprecated.booleanisMimeTypeDenied(String mimeType) Check if mimeType is denied or notDeprecated.booleanReturns the synchronisation status as a string.voidsetJCRContentProperty(String property, String value) Sets the param value at the Jcr:Content levelvoidsetMimeTypeJobParams(String mimeType, String jobParams) sets the upload job Params of given mimetype
-
Method Details
-
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'sunprotectmethod.- 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.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.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
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.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.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
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
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
sets the upload job Params of given mimetype- Parameters:
mimeType- asset MIME typejobParams- job params
-
getMimeTypeEnabled
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
Sets the param value at the Jcr:Content level- Parameters:
property- param namevalue- param value
-
isMimeTypeDenied
Check if mimeType is denied or not- Parameters:
mimeType-
-
isDelayedPublishEnabled()