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 |
|---|---|
String |
addUser(S7Config s7Config,
String firstName,
String lastName,
String email,
String defaultRole,
String password,
org.joda.time.Instant passwordExpires,
boolean isValid,
List<Scene7CompanyMembership> membershipArray)
Creates a user account and adds the account to one of more companies
|
String |
createFolder(S7Config s7Config,
String cqFolderPath)
Create a folder on Scene7 server
|
String |
createImageSet(S7Config s7Config,
String imageSetFolder,
String imageSetName,
String thumbAssetHandle)
Create an ImageSet asset on Scene7 server
|
String |
createViewerPreset(S7Config s7Config,
String folderHandle,
String name,
String type,
List<Scene7ConfigSetting> configSettings)
Create a preset view to determine what users can see.
|
String |
deleteAsset(String assetHandle,
S7Config s7Config)
Returns a String success/ failure,, note that the underlying S7 API call does not provide a data response.
|
String |
deleteFolder(String folderHandle,
S7Config s7Config)
Returns a String success/ failure,, note that the underlying S7 API call does not provide a data response.
|
void |
deleteImageFormat(S7Config s7Config,
String imageFormatHandle)
Deletes an image format.
|
void |
deleteImageMap(S7Config s7Config,
String imageMapHandle)
Deletes an image map
|
List<Scene7User> |
getAllUsers(S7Config s7Config,
boolean includeInvalid)
Return all users
|
String |
getApplicationPropertyHandle(S7Config s7Config)
Returns the application property handle.
|
List<Scene7Asset> |
getAssets(String[] assetHandles,
String[] responseFields,
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
|
String |
getCompanyMembership(ResourceResolver resourceResolver,
String userHandle,
String email,
String password,
String region)
Returns a JSON representation of the company membership information
provided by Scene7.
|
String |
getFlashTemplatesServer(S7Config s7Config)
Retrieves the server used for serving and manipulating flash templates, depending on the Scene7 configuration.
|
String |
getFolderHandle(String cqFolderPath,
S7Config s7Config)
Returns s7 folder handle for the associated cq folder
|
Scene7Folder |
getFolderTree(String folderPath,
int depth,
String[] responseFields,
String[] excludeFields,
S7Config s7Config)
Returns a
Scene7Folder holding a tree structure |
String |
getFxgServer(S7Config s7Config)
Retrieves the server handling FXG rendering.
|
List<Scene7ImageFormat> |
getImageFormats(S7Config s7Config)
Returns image formats, such as PDF, EPS, SWF, and others.
|
List<String> |
getImagePresets(S7Config s7Config)
Returns a list of Scene7 image preset names for the given
S7Config |
List<String> |
getJobLogDetails(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
|
ArrayList<UploadJobDetail> |
getMultiFileJobLogDetails(String jobHandle,
S7Config s7Config)
Returns an Arraylist of job details objects
|
List<Scene7PropertySet> |
getPropertySets(String typeHandle,
S7Config s7Config)
Returns the video encoder preset type handle.
|
String |
getPublishServer(S7Config s7Config)
Returns the domain name of the S7 publish server
|
String |
getUserHandle(ResourceResolver resourceResolver,
String email,
String password,
String region)
Returns a unique user handle from Scene7.
|
List<Scene7User> |
getUsers(S7Config s7Config,
Boolean includeInactive,
Boolean includeInvalid,
List<String> companyHandleArray,
List<String> groupHandleArray,
List<String> userRoleArray,
String charFilterField,
String charFilter,
String sortBy,
Integer recordsPerPage,
Integer resultsPage)
Return a optionally sorted, filtered and paged list user results
|
String |
getVideoEncoderPresetTypeHandle(S7Config s7Config)
Returns the video encoder preset type handle.
|
Scene7ViewerConfig |
getViewerConfigSettings(S7Config s7Config,
String assetHandle)
Get the viewer configuration for the referenced asset
|
boolean |
isJobActiveByJobHandle(String jobHandle,
S7Config s7Config) |
boolean |
isJobActiveByOriginalName(String originalName,
S7Config s7Config) |
String |
saveImageFormat(S7Config s7Config,
String imageFormatHandle,
String name,
String urlModifier)
Create an image format.
|
String |
saveImageMap(S7Config s7Config,
String assetHandle,
String imageMapHandle,
String name,
String shapeType,
String region,
String action,
int position,
boolean enabled)
Create a new image map or edit an existing map
|
List<Scene7Asset> |
searchAssets(String folder,
Boolean includeSubfolders,
Boolean published,
String[] assetTypes,
String[] assetSubTypes,
String[] responseFields,
String[] excludeFields,
int recordsPerPage,
int resultsPage,
S7Config s7Config)
Retrieves a list of
Scene7Assets from the Scene7 server. |
List<Scene7Asset> |
searchAssets(String folder,
Boolean includeSubfolders,
Boolean published,
String[] assetTypes,
String[] assetSubTypes,
String[] responseFields,
String[] excludeFields,
S7Config s7Config)
Retrieves a list of
Scene7Assets from the Scene7 server. |
List<Scene7Asset> |
searchAssetsByFilename(String folder,
Boolean includeSubfolders,
Boolean published,
String filename,
S7Config s7Config)
Retrieve a list of
Scene7Assets from the Scene7 server by
filename. |
List<Scene7Asset> |
searchAssetsByMetadata(String folder,
Boolean includeSubfolders,
String[] assetTypes,
String[] assetSubTypes,
Boolean published,
MetadataCondition[] conditions,
int recordsPerPage,
int resultsPage,
S7Config s7Config)
Returns a DOM list with search results (from metadata), support specify
|
List<Scene7Asset> |
searchAssetsByMetadata(String folder,
Boolean includeSubfolders,
String[] assetTypes,
String[] assetSubTypes,
Boolean published,
MetadataCondition[] conditions,
S7Config s7Config)
Returns a DOM list with search results (from metadata)
|
List<Scene7Asset> |
searchAssetsByName(String folder,
Boolean includeSubfolders,
Boolean published,
String name,
S7Config s7Config)
Retrieve a list of
Scene7Assets from the Scene7 server by Scene7
asset name. |
String |
setAssetPublishState(Resource resource,
boolean markForPublish,
S7Config s7Config)
Set the publish state of a given Scene7 asset
|
String |
setAssetPublishState(String assetHandle,
boolean markForPublish,
S7Config s7Config)
Set the publish state of a given Scene7 asset
|
List<String> |
setImageMaps(S7Config s7Config,
String assetHandle,
List<Scene7ImageMapDefinition> imageMap)
Sets the image map for an asset.
|
void |
setUserInfo(S7Config s7Config,
String userHandle,
String firstName,
String lastName,
String email,
String defaultRole,
org.joda.time.Instant passwordExpires,
boolean isValid,
List<Scene7CompanyMembership> membershipArray)
Set user attributes
|
void |
setViewerConfigSettings(S7Config s7Config,
String assetHandle,
String name,
String type,
List<Scene7ConfigSetting> configSettings)
Attach viewer configuration settings to an asset
Can be viewer preset or the source asset for the viewer
|
void |
updateImageSet(S7Config s7Config,
String imageSetAssetHandle,
List<String> setMemberHandles,
String thumbAssetHandle)
Update an ImageSet asset on Scene7 server
|
void |
updateViewerConfigSettings(S7Config s7Config,
String assetHandle,
List<Scene7ConfigSetting> configSettings)
Updates SWF viewer configuration settings.
|
static final int CONTAINER
static final int MEMBER
static final int OWNER
static final int DERIVED
static final int GENERATOR
static final int GENERATED
String getPublishServer(S7Config s7Config)
s7Config - String getApplicationPropertyHandle(S7Config s7Config)
s7Config - the Scene7 configurationString getVideoEncoderPresetTypeHandle(S7Config s7Config)
s7Config - the Scene7 configurationList<Scene7PropertySet> getPropertySets(String typeHandle, S7Config s7Config)
typeHandle - - the type handles7Config - the Scene7 configurationString getUserHandle(ResourceResolver resourceResolver, String email, String password, String region)
resourceResolver - resource resolver used to access Scene7 configurationemail - E-Mail addresspassword - Passwordregion - Region of the Scene7 serviceString getCompanyMembership(ResourceResolver resourceResolver, String userHandle, String email, String password, 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(String folderPath, int depth, String[] responseFields, 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 structureString getFolderHandle(String cqFolderPath, S7Config s7Config)
cqFolderPath - - the path the target cq folder targeted in the s7 folder organizations7Config - String deleteFolder(String folderHandle, S7Config s7Config)
folderHandle - - folder to be deleteds7Config - - s7 config based on cloud service config info.String deleteAsset(String assetHandle, S7Config s7Config)
assetHandle - - asset to be deleteds7Config - - s7 config based on cloud service config info.List<Scene7Asset> searchAssetsByMetadata(String folder, Boolean includeSubfolders, String[] assetTypes, String[] assetSubTypes, 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 - List<Scene7Asset> searchAssetsByMetadata(String folder, Boolean includeSubfolders, String[] assetTypes, String[] assetSubTypes, 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 - List<Scene7Asset> getAssets(String[] assetHandles, String[] responseFields, 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 listArrayList<UploadJobDetail> getMultiFileJobLogDetails(String jobHandle, S7Config s7Config)
jobHandle - - the handle for the job to get details.s7Config - boolean isJobActiveByJobHandle(String jobHandle, S7Config s7Config)
jobHandle - of the jobs7Config - true if active job with this jobHandle or orginalName is active, false otherwiseboolean isJobActiveByOriginalName(String originalName, S7Config s7Config)
originalName - of the jobs7Config - true if active job with this jobHandle or orginalName is active, false otherwiseList<String> getJobLogDetails(String jobHandle, S7Config s7Config)
jobHandle - - the handle for the job to get details.s7Config - List<String> getImagePresets(S7Config s7Config)
S7Configs7Config - String getFlashTemplatesServer(S7Config s7Config)
s7Config - the Scene7 configurationList<Scene7Asset> searchAssets(String folder, Boolean includeSubfolders, Boolean published, String[] assetTypes, String[] assetSubTypes, String[] responseFields, 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 configurationList<Scene7Asset> searchAssets(String folder, Boolean includeSubfolders, Boolean published, String[] assetTypes, String[] assetSubTypes, String[] responseFields, 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 configurationList<Scene7Asset> searchAssetsByFilename(String folder, Boolean includeSubfolders, Boolean published, String filename, S7Config s7Config)
Scene7Assets from the Scene7 server by
filename.folder - includeSubfolders - published - filename - s7Config - List<Scene7Asset> searchAssetsByName(String folder, Boolean includeSubfolders, Boolean published, String name, S7Config s7Config)
Scene7Assets from the Scene7 server by Scene7
asset name.folder - includeSubfolders - published - name - 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 assetString getFxgServer(S7Config s7Config)
s7Config - the Scene7 configurationString setAssetPublishState(Resource resource, boolean markForPublish, S7Config s7Config)
resource - activated resourcemarkForPublish - value of markForPublish flags7Config - the Scene7 configurationString setAssetPublishState(String assetHandle, boolean markForPublish, S7Config s7Config)
assetHandle - unique asset identifiermarkForPublish - value of markForPublish flags7Config - the Scene7 configurationString createFolder(S7Config s7Config, String cqFolderPath)
s7Config - the Scene7 configurationcqFolderPath - the path the target cq folder targeted in the s7 folder
organizationString createImageSet(S7Config s7Config, String imageSetFolder, String imageSetName, String thumbAssetHandle)
s7Config - the Scene7 configurationimageSetFolder - the path the target imageset cq folder targeted in the s7
folder organizationimageSetName - name of the image setthumbAssetHandle - (optional) user defined thumbnail asset handlevoid updateImageSet(S7Config s7Config, String imageSetAssetHandle, List<String> setMemberHandles, String thumbAssetHandle)
s7Config - the Scene7 configurationimageSetAssetHandle - image set Scene7 asset handlesetMemberHandles - asset handles of image set membersthumbAssetHandle - (optional) user defined thumbnail asset handleString createViewerPreset(S7Config s7Config, String folderHandle, String name, String type, List<Scene7ConfigSetting> configSettings)
s7Config - the Scene7 configurationfolderHandle - folder handle of the folder that contains the assetsname - name for the viewertype - type of any available viewer in IPSconfigSettings - list containing Scene7ConfigSetting values to applynull if unsuccessfulScene7ViewerConfig getViewerConfigSettings(S7Config s7Config, String assetHandle)
s7Config - the Scene7 configurationassetHandle - asset handle for the asset of interestScene7ViewerConfig with the information or null
if unsuccessfulvoid setViewerConfigSettings(S7Config s7Config, String assetHandle, String name, String type, List<Scene7ConfigSetting> configSettings)
s7Config - the Scene7 configurationassetHandle - asset handle for the asset to modifyname - name of the assettype - type of any available viewer in IPSconfigSettings - list containing Scene7ConfigSetting values to applyvoid updateViewerConfigSettings(S7Config s7Config, String assetHandle, List<Scene7ConfigSetting> configSettings)
s7Config - the Scene7 configurationassetHandle - asset handle for the asset to modifyconfigSettings - list containing Scene7ConfigSetting values to applyString addUser(S7Config s7Config, String firstName, String lastName, String email, String defaultRole, String password, org.joda.time.Instant passwordExpires, boolean isValid, List<Scene7CompanyMembership> membershipArray)
s7Config - The Scene7 configurationfirstName - The user's first namelastName - The user's last nameemail - The user's email addressdefaultRole - The role for the user in the companies they belong, the
IpsAdmin role overrides other per-company settingspassword - The user's passwordpasswordExpires - The instant of expiration of the passwordisValid - Determine the user's validitymembershipArray - List of Scene7CompanyMembership entries enumerating the
membership of the user.List<Scene7User> getAllUsers(S7Config s7Config, boolean includeInvalid)
s7Config - The Scene7 configurationincludeInvalid - Indicate if invalid users should be includedScene7User requestedList<Scene7User> getUsers(S7Config s7Config, Boolean includeInactive, Boolean includeInvalid, List<String> companyHandleArray, List<String> groupHandleArray, List<String> userRoleArray, String charFilterField, String charFilter, String sortBy, Integer recordsPerPage, Integer resultsPage)
s7Config - The Scene7 configincludeInactive - Include or exclude inactive membersincludeInvalid - Include or exclude invalid memberscompanyHandleArray - Filter results be companygroupHandleArray - Filter results by groupuserRoleArray - Filter results by user rolecharFilterField - Filter results by field's string prefixcharFilter - Filter results by a specific charactersortBy - Choice of user sort fieldrecordsPerPage - Number of records per page to returnresultsPage - The desired result pageScene7User requestedvoid setUserInfo(S7Config s7Config, String userHandle, String firstName, String lastName, String email, String defaultRole, org.joda.time.Instant passwordExpires, boolean isValid, List<Scene7CompanyMembership> membershipArray)
s7Config - The Scene7 configuserHandle - User handlefirstName - First namelastName - Last nameemail - Email addressdefaultRole - The role for the user in the companies they belong, the
IpsAdmin role overrides other per-company settingspasswordExpires - The password's expirationisValid - Determine if valid IPS usermembershipArray - List of Scene7CompanyMembership entries enumerating the
membership of the uservoid deleteImageFormat(S7Config s7Config, String imageFormatHandle)
s7Config - The Scene7 configimageFormatHandle - Handle to the image format. (This is returned from
saveImageFormat(S7Config, String, String, String))List<Scene7ImageFormat> getImageFormats(S7Config s7Config)
s7Config - The Scene7 configScene7ImageFormat objectsString saveImageFormat(S7Config s7Config, String imageFormatHandle, String name, String urlModifier)
s7Config - The Scene7 configimageFormatHandle - Image format handle you want to savename - Image format nameurlModifier - IPS protocol query stringvoid deleteImageMap(S7Config s7Config, String imageMapHandle)
s7Config - The Scene7 configimageMapHandle - Handle for the image map to deleteString saveImageMap(S7Config s7Config, String assetHandle, String imageMapHandle, String name, String shapeType, String region, String action, int position, boolean enabled)
s7Config - The Scene7 configassetHandle - Handle to the asset the map belongs toimageMapHandle - Handle to the image map.name - Name of the image mapshapeType - Choice of region shaperegion - A comma delimited list of points that define the regionaction - The href value associated with the image mapposition - The order in the list of image mapsenabled - Whether this map is enabledList<String> setImageMaps(S7Config s7Config, String assetHandle, List<Scene7ImageMapDefinition> imageMap)
s7Config - The Scene7 configassetHandle - Handle to the assetimageMap - list of predefined Scene7ImageMapDefinition objects"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"