Interface Scene7UploadService


  • @ProviderType
    public interface Scene7UploadService
    The Scene7Service provides methods for interacting with the official Scene7 API.
    • Field Detail

      • SCR_PROP_NAME_ACTIVE_JOB_TIMEOUT_NAME

        static final java.lang.String SCR_PROP_NAME_ACTIVE_JOB_TIMEOUT_NAME
        See Also:
        Constant Field Values
      • SCR_PROP_NAME_ACTIVE_JOB_TIMEOUT_DEFAULT_VALUE

        static final int SCR_PROP_NAME_ACTIVE_JOB_TIMEOUT_DEFAULT_VALUE
        See Also:
        Constant Field Values
      • SCR_PROP_NAME_CONN_MAX_PER_ROUTE_NAME

        static final java.lang.String SCR_PROP_NAME_CONN_MAX_PER_ROUTE_NAME
        See Also:
        Constant Field Values
      • SCR_PROP_NAME_CONN_MAX_PER_ROUTE_DEFAULT_VALUE

        static final int SCR_PROP_NAME_CONN_MAX_PER_ROUTE_DEFAULT_VALUE
        See Also:
        Constant Field Values
    • Method Detail

      • uploadFile

        java.lang.String uploadFile​(java.lang.String path,
                                    java.lang.String cloudServiceConfigPath,
                                    ResourceResolver resolver)
        Uploads a file at a given repository path to the Scene7 server.
        Parameters:
        path - Path to the file in the repository
        cloudServiceConfigPath -
        resolver - Sling ResourceResolver
        Returns:
        String 'success' if upload finished successfully or a representation of the job handle if upload failed.
      • uploadFolder

        java.lang.String uploadFolder​(java.lang.String path,
                                      java.lang.String cloudServiceConfigPath,
                                      ResourceResolver resolver)
        Uploads a folder at a given repository path to the Scene7 server.
        Parameters:
        path - to the folder
        cloudServiceConfigPath -
        resolver -
        Returns:
        String Scene7 job handle
      • synchronizeFile

        java.lang.String synchronizeFile​(java.lang.String path,
                                         ResourceResolver assetResolver,
                                         ResourceResolver configResolver)
        Synchronises a file at a given repository path back into the Scene7 server.
        Parameters:
        path - Path to the file in the repository
        assetResolver - Sling ResourceResolver to access AEM asset
        configResolver - Sling ResourceResolver to access AEM-Scene7 configuration
        Returns:
        String 'success' if upload finished successfully or a representation of the job handle if upload failed.
      • moveFile

        @Deprecated
        java.lang.String moveFile​(java.lang.String path,
                                  ResourceResolver assetResolver,
                                  ResourceResolver configResolver)
        Moves an S7 managed file ( a file that has an associated S7 assetHandle) at a given repository path back into the Scene7 server.
        Parameters:
        path - Path to the file in the repository
        assetResolver - Sling ResourceResolver to access AEM asset
        configResolver - Sling ResourceResolver to access AEM-Scene7 configuration
        Returns:
        String 'success' if upload finished successfully or a representation of the job handle if upload failed.
      • moveFolder

        @Deprecated
        java.lang.String moveFolder​(java.lang.String dstpath,
                                    java.lang.String srcpath,
                                    ResourceResolver assetResolver,
                                    ResourceResolver configResolver)
        Moves a folder (including sub folders/assets) back to the Scene7 server.
        Parameters:
        dstpath - destination path to the file in the repository
        srcpath - Original path of the folder in the repository
        assetResolver - Sling ResourceResolver to access AEM asset
        configResolver - Sling ResourceResolver to access AEM-Scene7 configuration
        Returns:
        String 'success' if upload finished successfully or a representation of the job handle if upload failed.
      • getActiveJobTimeOut

        long getActiveJobTimeOut()
        Retrieve Scene7 upload job timeout parameter
        Returns:
        long Scene7 active job timeout
      • getConnectionMaxPerRoute

        int getConnectionMaxPerRoute()
        Retrieve Scene7 upload job maximum number of connections
        Returns:
        int Scene7 connections