public interface Scene7Service
Scene7Service provides methods for interacting with the official Scene7 API.| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER
Scene7 specification used in getAssociatedAssets - Array of set and template assets containing the specified asset.
|
static int |
DERIVED
Scene7 specification used in getAssociatedAssets - Array of assets that are derivatives of the specified asset.
|
static int |
GENERATED
Scene7 specification used in getAssociatedAssets - Array of assets that were generated from the specified asset.
|
static int |
GENERATOR
Scene7 specification used in getAssociatedAssets - Array of assets that were used to generate the specified asset.
|
static int |
MEMBER
Scene7 specification used in getAssociatedAssets - Array of assets contained by the specified set or template asset.
|
static int |
OWNER
Scene7 specification used in getAssociatedAssets - Array of assets that own the specified asset.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
deleteAsset(java.lang.String assetHandle,
S7Config s7Config)
Returns a String success/ failure,, note that the underlying S7 API call does not provide a data response.
|
java.lang.String |
deleteFolder(java.lang.String folderHandle,
S7Config s7Config)
Returns a String success/ failure,, note that the underlying S7 API call does not provide a data response.
|
java.lang.String |
getApplicationPropertyHandle(S7Config s7Config)
Returns the application property handle.
|
java.util.List<Scene7Asset> |
getAssets(java.lang.String[] assetHandles,
java.lang.String[] responseFields,
java.lang.String[] excludeFields,
S7Config s7Config)
Returns a
Scene7Asset list, based on a list of asset handles |
Scene7Asset |
getAssociatedAssets(Scene7Asset asset,
S7Config s7Config)
Retrieves the sub-assets and the origiator asset associated with the
given asset
|
java.lang.String |
getCompanyMembership(ResourceResolver resourceResolver,
java.lang.String userHandle,
java.lang.String email,
java.lang.String password,
java.lang.String region)
Returns a JSON representation of the company membership information
provided by Scene7.
|
java.lang.String |
getFlashTemplatesServer(S7Config s7Config)
Retrieves the server used for serving and manipulating flash templates, depending on the Scene7 configuration.
|
java.lang.String |
getFolderHandle(java.lang.String cqFolderPath,
S7Config s7Config)
Returns s7 folder handle for the associated cq folder
|
Scene7Folder |
getFolderTree(java.lang.String folderPath,
int depth,
java.lang.String[] responseFields,
java.lang.String[] excludeFields,
S7Config s7Config)
Returns a
Scene7Folder holding a tree structure |
java.lang.String |
getFxgServer(S7Config s7Config)
Retrieves the server handling FXG rendering.
|
java.util.List<java.lang.String> |
getImagePresets(S7Config s7Config)
Returns a list of Scene7 image preset names for the given
S7Config |
java.util.List<java.lang.String> |
getJobLogDetails(java.lang.String jobHandle,
S7Config s7Config)
Returns a list of Scene7 asset handles(Strings) for the given job handle
|
Scene7Asset |
getMasterAsset(Scene7Asset asset,
S7Config s7Config)
Retrieves the originator asset associated with the given asset
|
java.util.ArrayList<UploadJobDetail> |
getMultiFileJobLogDetails(java.lang.String jobHandle,
S7Config s7Config)
Returns an Arraylist of job details objects
|
java.util.List<Scene7PropertySet> |
getPropertySets(java.lang.String typeHandle,
S7Config s7Config)
Returns the video encoder preset type handle.
|
java.lang.String |
getPublishServer(S7Config s7Config)
Returns the domain name of the S7 publish server
|
java.lang.String |
getUserHandle(ResourceResolver resourceResolver,
java.lang.String email,
java.lang.String password,
java.lang.String region)
Returns a unique user handle from Scene7.
|
java.lang.String |
getVideoEncoderPresetTypeHandle(S7Config s7Config)
Returns the video encoder preset type handle.
|
boolean |
isJobActiveByJobHandle(java.lang.String jobHandle,
S7Config s7Config) |
boolean |
isJobActiveByOriginalName(java.lang.String originalName,
S7Config s7Config) |
java.util.List<Scene7Asset> |
searchAssets(java.lang.String folder,
java.lang.Boolean includeSubfolders,
java.lang.Boolean published,
java.lang.String[] assetTypes,
java.lang.String[] assetSubTypes,
java.lang.String[] responseFields,
java.lang.String[] excludeFields,
int recordsPerPage,
int resultsPage,
S7Config s7Config)
Retrieves a list of
Scene7Assets from the Scene7 server. |
java.util.List<Scene7Asset> |
searchAssets(java.lang.String folder,
java.lang.Boolean includeSubfolders,
java.lang.Boolean published,
java.lang.String[] assetTypes,
java.lang.String[] assetSubTypes,
java.lang.String[] responseFields,
java.lang.String[] excludeFields,
S7Config s7Config)
Retrieves a list of
Scene7Assets from the Scene7 server. |
java.util.List<Scene7Asset> |
searchAssetsByFilename(java.lang.String folder,
java.lang.Boolean includeSubfolders,
java.lang.Boolean published,
java.lang.String filename,
S7Config s7Config)
Retrieve a list of
Scene7Assets from the Scene7 server by
filename. |
java.util.List<Scene7Asset> |
searchAssetsByMetadata(java.lang.String folder,
java.lang.Boolean includeSubfolders,
java.lang.String[] assetTypes,
java.lang.String[] assetSubTypes,
java.lang.Boolean published,
MetadataCondition[] conditions,
int recordsPerPage,
int resultsPage,
S7Config s7Config)
Returns a DOM list with search results (from metadata), support specify
|
java.util.List<Scene7Asset> |
searchAssetsByMetadata(java.lang.String folder,
java.lang.Boolean includeSubfolders,
java.lang.String[] assetTypes,
java.lang.String[] assetSubTypes,
java.lang.Boolean published,
MetadataCondition[] conditions,
S7Config s7Config)
Returns a DOM list with search results (from metadata)
|
java.lang.String |
setAssetPublishState(Resource resource,
boolean markForPublish,
S7Config s7Config)
Set the publish state of a given Scene7 asset
|
java.lang.String |
setAssetPublishState(java.lang.String assetHandle,
boolean markForPublish,
S7Config s7Config)
Set the publish state of a given Scene7 asset
|
static final int CONTAINER
static final int MEMBER
static final int OWNER
static final int DERIVED
static final int GENERATOR
static final int GENERATED
java.lang.String getPublishServer(S7Config s7Config)
s7Config - java.lang.String getApplicationPropertyHandle(S7Config s7Config)
s7Config - the Scene7 configurationjava.lang.String getVideoEncoderPresetTypeHandle(S7Config s7Config)
s7Config - the Scene7 configurationjava.util.List<Scene7PropertySet> getPropertySets(java.lang.String typeHandle, S7Config s7Config)
typeHandle - - the type handles7Config - the Scene7 configurationjava.lang.String getUserHandle(ResourceResolver resourceResolver, java.lang.String email, java.lang.String password, java.lang.String region)
resourceResolver - resource resolver used to access Scene7 configurationemail - E-Mail addresspassword - Passwordregion - Region of the Scene7 servicejava.lang.String getCompanyMembership(ResourceResolver resourceResolver, java.lang.String userHandle, java.lang.String email, java.lang.String password, java.lang.String region)
For example:
{
handle: 'jlkj98',
name: 'Acme Ltd.',
rootPath: '/MyAssets'
}
resourceResolver - resource resolver used to access Scene7 configurationuserHandle - Unique user handleemail - E-Mail addresspassword - Passwordregion - Region of the Scene7 serviceScene7Folder getFolderTree(java.lang.String folderPath, int depth, java.lang.String[] responseFields, java.lang.String[] excludeFields, S7Config s7Config)
Scene7Folder holding a tree structurefolderPath - - the top folder of the request - does not need to be the root.depth - - depth of the returned folder tree.responseFields - - fields to be filled in for each node in the treeexcludeFields - - fields to be excluded in each node of the trees7Config - Scene7Folder object containing the requested folder structurejava.lang.String getFolderHandle(java.lang.String cqFolderPath,
S7Config s7Config)
cqFolderPath - - the path the target cq folder targeted in the s7 folder organizations7Config - java.lang.String deleteFolder(java.lang.String folderHandle,
S7Config s7Config)
folderHandle - - folder to be deleteds7Config - - s7 config based on cloud service config info.java.lang.String deleteAsset(java.lang.String assetHandle,
S7Config s7Config)
assetHandle - - asset to be deleteds7Config - - s7 config based on cloud service config info.java.util.List<Scene7Asset> searchAssetsByMetadata(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.String[] assetTypes, java.lang.String[] assetSubTypes, java.lang.Boolean published, MetadataCondition[] conditions, S7Config s7Config)
folder - - all matched assets will be in this folderincludeSubfolders - - whether to recursively search for assetsassetTypes - - all matched assets will be one of these typesassetSubTypes - array of sub Asset Types to include in searchpublished - - whether the matched assets must be marked for publish (only marked - not necessarily actually published)conditions - - metadata conditions for searchs7Config - java.util.List<Scene7Asset> searchAssetsByMetadata(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.String[] assetTypes, java.lang.String[] assetSubTypes, java.lang.Boolean published, MetadataCondition[] conditions, int recordsPerPage, int resultsPage, S7Config s7Config)
folder - - all matched assets will be in this folderincludeSubfolders - - whether to recursively search for assetsassetTypes - - all matched assets will be one of these typesassetSubTypes - array of sub Asset Types to include in searchpublished - - whether the matched assets must be marked for publish (only marked - not necessarily actually published)conditions - - metadata conditions for searchrecordsPerPage - maximum number of results to returnresultsPage - specifies the page of results to return, based on recordsPerPage page sizes7Config - java.util.List<Scene7Asset> getAssets(java.lang.String[] assetHandles, java.lang.String[] responseFields, java.lang.String[] excludeFields, S7Config s7Config)
Scene7Asset list, based on a list of asset handlesassetHandles - - the assets to retrieveresponseFields - - fields to be filled in for each node in the treeexcludeFields - - fields to be excluded in each node of the trees7Config - Scene7Asset listjava.util.ArrayList<UploadJobDetail> getMultiFileJobLogDetails(java.lang.String jobHandle, S7Config s7Config)
jobHandle - - the handle for the job to get details.s7Config - boolean isJobActiveByJobHandle(java.lang.String jobHandle,
S7Config s7Config)
jobHandle - of the jobs7Config - true if active job with this jobHandle or orginalName is active, false otherwiseboolean isJobActiveByOriginalName(java.lang.String originalName,
S7Config s7Config)
originalName - of the jobs7Config - true if active job with this jobHandle or orginalName is active, false otherwisejava.util.List<java.lang.String> getJobLogDetails(java.lang.String jobHandle,
S7Config s7Config)
jobHandle - - the handle for the job to get details.s7Config - java.util.List<java.lang.String> getImagePresets(S7Config s7Config)
S7Configs7Config - java.lang.String getFlashTemplatesServer(S7Config s7Config)
s7Config - the Scene7 configurationjava.util.List<Scene7Asset> searchAssets(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.Boolean published, java.lang.String[] assetTypes, java.lang.String[] assetSubTypes, java.lang.String[] responseFields, java.lang.String[] excludeFields, S7Config s7Config)
Scene7Assets from the Scene7 server.folder - the folder from which the assets are retrievedincludeSubfolders - whether to recursively search for assets in sub-folders of the folder where the search is performedpublished - whether the matched assets must be marked for publish (only marked - not necessarily actually published)assetTypes - all matched assets will be one of these typesassetSubTypes - array of sub Asset Types to include in searchresponseFields - the response fields that should be used to populate the Scene7Asset's attributesexcludeFields - fields to be excluded from the responses7Config - the Scene7 configurationjava.util.List<Scene7Asset> searchAssets(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.Boolean published, java.lang.String[] assetTypes, java.lang.String[] assetSubTypes, java.lang.String[] responseFields, java.lang.String[] excludeFields, int recordsPerPage, int resultsPage, S7Config s7Config)
Scene7Assets from the Scene7 server.folder - the folder from which the assets are retrievedincludeSubfolders - whether to recursively search for assets in sub-folders of the folder where the search is performedpublished - whether the matched assets must be marked for publish (only marked - not necessarily actually published)assetTypes - all matched assets will be one of these typesassetSubTypes - array of sub Asset Types to include in searchresponseFields - the response fields that should be used to populate the Scene7Asset's attributesexcludeFields - fields to be excluded from the responserecordsPerPage - maximum number of results to returnresultsPage - specifies the page of results to return, based on recordsPerPage page sizes7Config - the Scene7 configurationjava.util.List<Scene7Asset> searchAssetsByFilename(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.Boolean published, java.lang.String filename, S7Config s7Config)
Scene7Assets from the Scene7 server by
filename.folder - includeSubfolders - published - filename - s7Config - Scene7Asset getAssociatedAssets(Scene7Asset asset, S7Config s7Config)
asset - - the asset to get the sub-assets and generator froms7Config - - the Scene7 configurationScene7Asset object updated with the
sub-assets and the originator assetScene7Asset getMasterAsset(Scene7Asset asset, S7Config s7Config)
asset - - the asset to get the originator assets7Config - - the Scene7 configurationScene7Asset object updated with the
originator assetjava.lang.String getFxgServer(S7Config s7Config)
s7Config - the Scene7 configurationjava.lang.String setAssetPublishState(Resource resource, boolean markForPublish, S7Config s7Config)
resource - activated resourcemarkForPublish - value of markForPublish flags7Config - the Scene7 configurationjava.lang.String setAssetPublishState(java.lang.String assetHandle,
boolean markForPublish,
S7Config s7Config)
assetHandle - unique asset identifiermarkForPublish - value of markForPublish flags7Config - the Scene7 configuration"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"