public interface Scene7APIClient
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENTTYPE
default content-type (i.e.
|
static int |
RECORDS_PER_PAGE_NO_FILTER |
static int |
RECORDS_PER_PAGE_WITH_FILTER |
| Modifier and Type | Method and Description |
|---|---|
Document |
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
|
Document |
createFolder(String folderPath,
S7Config s7Config)
Create a folder on Scene7 server
|
Document |
createImageSet(S7Config s7Config,
String folderHandle,
String name,
String type,
String thumbAssetHandle)
Create an image set of a given Scene7 folder asset
|
Document |
createViewerPreset(S7Config s7Config,
String folderHandle,
String name,
String type,
List<Scene7ConfigSetting> configSettings)
Create a preset view to determine what users can see.
|
Document |
deleteAsset(String assetHandle,
S7Config s7Config)
Deletes an asset from Scene7.
|
Document |
deleteFolder(String folderHandle,
S7Config s7Config)
Deletes a folder from Scene7.
|
Document |
deleteImageFormat(S7Config s7Config,
String imageFormatHandle)
Deletes an image format.
|
Document |
deleteImageMap(S7Config s7Config,
String imageMapHandle)
Deletes an image map
|
Document |
getActiveJobs(String jobHandle,
String originalName,
S7Config s7Config)
Gets all jobs that are currently active in the system.
|
Document |
getAllUsers(S7Config s7Config,
boolean includeInvalid)
Return all users
|
Document |
getAssets(String[] assetHandles,
String[] responseFields,
String[] excludeFields,
S7Config s7Config)
Gets assets from IPS.
|
Document |
getAssociatedAssets(String assetHandle,
String[] responseFields,
String[] excludeFields,
S7Config s7Config)
Gets assets associated with the specified asset and details about their relationship.
|
Document |
getCompanyMembership(ResourceResolver resourceResolver,
String userHandle,
String email,
String password,
String region)
Gets a user's memberships.
|
Document |
getFolderTree(String folderPath,
int depth,
String[] responseFields,
String[] excludeFields,
S7Config s7Config)
Gets folders and sub-folders in a hierarchical tree structure.
|
Document |
getImageFormats(S7Config s7Config)
Returns image formats, such as PDF, EPS, SWF, and others.
|
Document |
getImagePresets(S7Config s7Config)
Gets the SPS image presets
|
InputStream |
getIPSFile(Scene7Asset asset,
S7Config s7Config)
Deprecated.
Incompatible with Scene7 IPS SSL endpoint. Please use
getOriginalFile() instead.
|
Document |
getJobLogDetails(String jobHandle,
String originalName,
int resultsPage,
int recordsPerPage,
String sortBy,
String sortDirection,
S7Config s7Config)
Gets the details of job logs of a company with specified parameters
|
Document |
getJobLogDetails(String jobHandle,
String originalName,
S7Config s7Config)
Gets the details of job logs of a company.
|
InputStream |
getOriginalFile(String assetHandle,
S7Config s7Config)
Provides a way to get the originally uploaded file to the Scene7 servers after an asset has been processed.
|
Document |
getPropertySets(String appSettingsTypeHandle,
S7Config s7Config)
Gets property sets associated with a type handle.
|
Document |
getPropertySetTypes(S7Config s7Config)
Gets the property set types associated with the specified company from the
S7Config object. |
Document |
getSystemProperties(S7Config s7Config)
Retrieves the system properties XML document served by the GetSystemProperties SPS servlet.
|
InputStream |
getThumbnailForAsset(Scene7Asset scene7Asset,
S7Config s7Config)
Retrieves a JPEG image in an InputStream that can be used as a thumbnail in CQ DAM.
|
Document |
getUserInfo(ResourceResolver resourceResolver,
String email,
String password,
String region)
Gets information about a user.
|
Document |
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
|
Document |
getViewerConfigSettings(S7Config s7Config,
String assetHandle)
Get all viewer configuration for the specified asset
|
Document |
saveImageFormat(S7Config s7Config,
String imageFormatHandle,
String name,
String urlModifier)
Create an image format.
|
Document |
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
|
Document |
searchAssets(String folder,
Boolean includeSubfolders,
Boolean published,
String[] assetTypes,
String[] assetSubTypes,
String[] responseFields,
String[] excludeFields,
int recordsPerPage,
int resultsPage,
String fileName,
String name,
S7Config s7Config)
Searches for assets based on one or more filter criteria.
|
Document |
searchAssetsByMetadata(String folder,
Boolean includeSubfolders,
String[] assetTypes,
String[] assetSubTypes,
Boolean published,
MetadataCondition[] conditions,
int recordsPerPage,
int resultsPage,
S7Config s7Config)
Searches the metadata index repository for the given search terms, support loading assets by page
|
Document |
searchAssetsByMetadata(String folder,
Boolean includeSubfolders,
String[] assetTypes,
String[] assetSubTypes,
Boolean published,
MetadataCondition[] conditions,
S7Config s7Config)
Searches the metadata index repository for the given search terms.
|
Document |
setAssetPublishState(String assetHandle,
S7Config s7Config,
String publishState)
Sets the publish state of a given Scene7 asset
|
Document |
setImageMaps(S7Config s7Config,
String assetHandle,
List<Scene7ImageMapDefinition> imageMap)
Sets the image map for an asset.
|
Document |
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
|
Document |
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
|
Document |
submitJob(String jobName,
Scene7JobType jobType,
S7Config s7Config)
Submits a job to the system.
|
Document |
updateImageSet(S7Config s7Config,
String assetHandle,
List<String> setMemberHandles,
String thumbAssetHandle)
Update an image set of a given a list of Scene7 assets
|
Document |
updateViewerConfigSettings(S7Config s7Config,
String assetHandle,
List<Scene7ConfigSetting> configSettings)
Updates SWF viewer configuration settings.
|
static final String CONTENTTYPE
static final int RECORDS_PER_PAGE_NO_FILTER
static final int RECORDS_PER_PAGE_WITH_FILTER
Document deleteAsset(String assetHandle, S7Config s7Config)
assetHandle - the handle to the asset to deletes7Config - the Scene7 configurationDocumentDocument deleteFolder(String folderHandle, S7Config s7Config)
folderHandle - the handle to the folder to deletes7Config - the Scene7 configurationDocumentDocument getActiveJobs(String jobHandle, String originalName, S7Config s7Config)
jobHandle - the handle to the joboriginalName - the original name of the jobs7Config - the Scene7 configurationDocumentDocument getAssets(String[] assetHandles, String[] responseFields, String[] excludeFields, S7Config s7Config)
assetHandles - the asset handlesresponseFields - a list of fields and subfields for inclusion in the responseexcludeFields - a list of fields and subfields for exclusion from the responses7Config - the Scene7 configurationDocumentDocument getAssociatedAssets(String assetHandle, String[] responseFields, String[] excludeFields, S7Config s7Config)
assetHandle - the handle to the assetresponseFields - a list of fields and subfields for inclusion in the responseexcludeFields - a list of fields and subfields for exclusion from the responses7Config - the Scene7 configurationDocumentDocument getCompanyMembership(ResourceResolver resourceResolver, String userHandle, String email, String password, String region)
resourceResolver - resource resolver used to access Scene7 configurationuserHandle - the handle to the user whose memberships you want to obtainemail - the user's emailpassword - the user's passwordregion - the user's regionDocumentDocument getFolderTree(String folderPath, int depth, String[] responseFields, String[] excludeFields, S7Config s7Config)
folderPath - the root folder to retrieve folders and all subfolders to the leaflevel; if excluded, the company root is useddepth - a value of zero gets the top-level folder; any other value specifies the depth to descend into the treeresponseFields - a list of fields and subfields for inclusion in the responseexcludeFields - a list of fields and subfields for exclusion from the responses7Config - the Scene7 configurationDocumentDocument getJobLogDetails(String jobHandle, String originalName, S7Config s7Config)
jobHandle - a handle to an active or completed joboriginalName - the original name of the job logs7Config - the Scene7 configurationDocumentDocument getJobLogDetails(String jobHandle, String originalName, int resultsPage, int recordsPerPage, String sortBy, String sortDirection, S7Config s7Config)
jobHandle - a handle to an active or completed joboriginalName - the original name of the job logresultsPage - page number of recordsPerPage-results to returnrecordsPerPage - maximum number of detailArray items to returnsortBy - one of the Job Detail Sort Field constant values (Date or
LogType)sortDirection - one of the Sort Direction string constantss7Config - the Scene7 configurationDocument getPropertySets(String appSettingsTypeHandle, S7Config s7Config)
appSettingsTypeHandle - the handle to the property set types7Config - the Scene7 configurationDocumentDocument getPropertySetTypes(S7Config s7Config)
S7Config object.s7Config - the Scene7 configurationDocumentDocument getImagePresets(S7Config s7Config)
s7Config - the Scene7 configurationDocumentDocument getUserInfo(ResourceResolver resourceResolver, String email, String password, String region)
resourceResolver - resource resolver used to access Scene7 configurationemail - the user's emailpassword - the user's passwordregion - the user's regionDocumentDocument searchAssets(String folder, Boolean includeSubfolders, Boolean published, String[] assetTypes, String[] assetSubTypes, String[] responseFields, String[] excludeFields, int recordsPerPage, int resultsPage, String fileName, String name, S7Config s7Config)
folder - the root path for searching for assets; if omitted, the
company root folder will be usedincludeSubfolders - if true, the search includes sub-folderspublished - if true, the search will include only published assetsassetTypes - array of Asset Types to include in searchassetSubTypes - array of sub Asset Types to include in searchresponseFields - a list of fields and subfields for inclusion in the responseexcludeFields - a list of fields and subfields for exclusion from the responserecordsPerPage - maximum number of results to returnresultsPage - specifies the page of results to return, based on
recordsPerPage page sizefileName - the filename for search assetname - the Scene7 name used for search assets7Config - the Scene7 configurationDocumentDocument searchAssetsByMetadata(String folder, Boolean includeSubfolders, String[] assetTypes, String[] assetSubTypes, Boolean published, MetadataCondition[] conditions, S7Config s7Config)
folder - the root path for searching for assets; if omitted, the company root folder will be usedincludeSubfolders - if true, the search includes sub-foldersassetTypes - array of Asset Types to include in searchassetSubTypes - array of sub Asset Types to include in searchpublished - if true, the search will include only published assetsconditions - one or more query conditions that define the search criterias7Config - the Scene7 configurationDocumentDocument searchAssetsByMetadata(String folder, Boolean includeSubfolders, String[] assetTypes, String[] assetSubTypes, Boolean published, MetadataCondition[] conditions, int recordsPerPage, int resultsPage, S7Config s7Config)
folder - the root path for searching for assets; if omitted, the company root folder will be usedincludeSubfolders - if true, the search includes sub-foldersassetTypes - array of Asset Types to include in searchassetSubTypes - array of sub Asset Types to include in searchpublished - if true, the search will include only published assetsconditions - one or more query conditions that define the search criteriarecordsPerPage - maximum number of results to returnresultsPage - specifies the page of results to return, based on recordsPerPage page sizes7Config - the Scene7 configurationDocumentDocument submitJob(String jobName, Scene7JobType jobType, S7Config s7Config)
jobName - the name of the jobjobType - the job's types7Config - the Scene7 configurationDocumentScene7JobTypeDocument getSystemProperties(S7Config s7Config)
s7Config - DocumentInputStream getOriginalFile(String assetHandle, S7Config s7Config)
assetHandle - the asset's handle (unique id generated by Scene7)s7Config - the Scene7 configuration@Deprecated InputStream getIPSFile(Scene7Asset asset, S7Config s7Config)
asset - the Scene7Asset asset objects7Config - the S7Config configurationInputStream of the published image assetInputStream getThumbnailForAsset(Scene7Asset scene7Asset, S7Config s7Config)
scene7Asset - the Scene7 asset abstractizations7Config - the Scene7 configurationDocument setAssetPublishState(String assetHandle, S7Config s7Config, String publishState)
assetHandle - the Scene7 asset handlepublishState - the asset publish states7Config - the Scene7 configurationDocument createImageSet(S7Config s7Config, String folderHandle, String name, String type, String thumbAssetHandle)
s7Config - the Scene7 configurationfolderHandle - Scene7 folder handlename - name of image settype - image set typethumbAssetHandle - optional parameter to define set thumbnailDocument updateImageSet(S7Config s7Config, String assetHandle, List<String> setMemberHandles, String thumbAssetHandle)
s7Config - the Scene7 configurationassetHandle - asset handle of the image set member arraysetMemberHandles - list of image set member handlesthumbAssetHandle - optional parameter to define set thumbnailDocument createFolder(String folderPath, S7Config s7Config)
folderPath - The root folder used to retrieve folders and all subfolders to
the leaf level. If excluded, the company root is used.s7Config - the Scene7 configurationDocument 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 applyDocument getViewerConfigSettings(S7Config s7Config, String assetHandle)
s7Config - the Scene7 configurationassetHandle - asset handle for the asset in questionDocument 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 applyDocument updateViewerConfigSettings(S7Config s7Config, String assetHandle, List<Scene7ConfigSetting> configSettings)
s7Config - the Scene7 configurationassetHandle - asset handle for the asset to modifyconfigSettings - list containing Scene7ConfigSetting values to applyDocument 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.Document getAllUsers(S7Config s7Config, boolean includeInvalid)
s7Config - The Scene7 configurationincludeInvalid - Indicate if invalid users should be includedDocument 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 pageDocument 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 userDocument deleteImageFormat(S7Config s7Config, String imageFormatHandle)
s7Config - The Scene7 configimageFormatHandle - Handle to the image format. (This is returned from
saveImageFormat(S7Config, String, String, String))Document getImageFormats(S7Config s7Config)
s7Config - The Scene7 configDocument 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 stringDocument deleteImageMap(S7Config s7Config, String imageMapHandle)
s7Config - The Scene7 configimageMapHandle - Handle for the image map to deleteDocument 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 enabledDocument 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"