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 |
addUser(S7Config s7Config,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.String defaultRole,
java.lang.String password,
Instant passwordExpires,
boolean isValid,
java.util.List<Scene7CompanyMembership> membershipArray)
Creates a user account and adds the account to one of more companies
|
Scene7BatchMetadataResult |
batchSetAssetMetadata(S7Config s7Config,
java.util.List<Scene7MetadataUpdate> updates)
Sets asset metadata using batch mode.
|
Scene7BatchMetadataResult |
batchSetImageFields(S7Config s7Config,
java.util.List<Scene7ImageFieldUpdate> updateArray)
Sets asset metadata using batch mode.
|
java.lang.String |
createAssetSet(S7Config s7Config,
java.lang.String folder,
java.lang.String name,
java.lang.String type,
Resource resource,
Scene7AssetSet setDefinition,
java.lang.String thumbAssetHandle)
Create an AssetSet asset on Scene7 server
|
java.lang.String |
createFolder(S7Config s7Config,
java.lang.String cqFolderPath)
Create a folder on Scene7 server
|
java.lang.String |
createImageSet(S7Config s7Config,
java.lang.String imageSetFolder,
java.lang.String imageSetName,
java.lang.String thumbAssetHandle)
|
java.lang.String |
createImageSet(S7Config s7Config,
java.lang.String folder,
java.lang.String name,
java.lang.String type,
Resource resource,
java.lang.String thumbAssetHandle)
Create an ImageSet asset on Scene7 server
|
java.lang.String |
createViewerPreset(S7Config s7Config,
java.lang.String folderHandle,
java.lang.String name,
java.lang.String type,
java.util.List<Scene7ConfigSetting> configSettings)
|
java.lang.String |
createViewerPreset(S7Config s7Config,
java.lang.String folderHandle,
java.lang.String name,
java.lang.String type,
Resource resource,
java.util.List<Scene7ConfigSetting> configSettings)
Create a preset view to determine what users can see.
|
java.lang.String |
deleteAsset(java.lang.String assetHandle,
S7Config s7Config)
Returns a String success, note that the underlying S7 API call does not provide a data response.
|
java.lang.String |
deleteAssets(java.lang.String[] assetHandleArr,
S7Config s7Config)
Delete multiple assets
Returns a String success, 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, note that the underlying S7 API call does not provide a data response.
|
java.lang.String |
deleteImageFormat(S7Config s7Config,
java.lang.String imageFormatHandle)
Deletes an image format.
|
void |
deleteImageMap(S7Config s7Config,
java.lang.String imageMapHandle)
Deletes an image map
|
java.util.List<Scene7User> |
getAllUsers(S7Config s7Config,
boolean includeInvalid)
Return all users
|
java.lang.String |
getApplicationPropertyHandle(S7Config s7Config)
Returns the application property handle.
|
Scene7Asset |
getAsset(java.lang.String assetHandle,
java.lang.String[] responseFields,
java.lang.String[] excludeFields,
S7Config s7Config)
Returns a single
Scene7Asset object. |
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.util.List<Scene7Asset> |
getContainerAssets(Scene7Asset scene7Asset,
S7Config s7Config) |
java.lang.String |
getFlashTemplatesServer(S7Config s7Config)
Deprecated.
|
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)
Deprecated.
|
Scene7Asset |
getGeneratedAssets(Scene7Asset asset,
S7Config s7Config)
Retrieves the generated assets associated with the given input asset
|
java.util.List<Scene7ImageFormat> |
getImageFormats(S7Config s7Config)
Returns image formats, such as PDF, EPS, SWF, and others.
|
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
|
java.lang.String |
getJobStatus(S7Config s7Config,
java.lang.String jobName)
Get scene7 job status with given jobName, the jobName should be uniq, if there are many job have same name, it only get the first one
|
java.lang.String |
getLinkedScene7ConfigPath(Resource resource)
Returns property
dam:scene7CloudConfigPath of a given
Resource object |
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.lang.String |
getPreviewServerUrl(Resource resource,
ResourceResolver configResolver)
Retrieves Scene7 remote asset preview /is/image/ URL (context path with
image server uri).
|
java.lang.String |
getPreviewVideoServerUrl(Resource resource,
ResourceResolver configResolver)
Retrieves Scene7 remote video preview /is/content/ URL (context path with
image server uri).
|
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 |
getPublishServerUrl(Resource resource,
ResourceResolver configResolver)
Retrieves Scene7 remote asset publish /is/image/ URL (server domain and
image server uri).
|
java.lang.String |
getPublishVideoServerUrl(Resource resource,
ResourceResolver configResolver)
Retrieves Scene7 remote video publish /is/content/ URL (server domain and
image server uri).
|
java.util.Map<java.lang.String,java.lang.String> |
getS7AssetMetadata(S7Config s7Config,
java.lang.String assetHandle)
Retrieves a metadata map (key-value pair) associated with a Scene7 asset
|
java.util.List<Scene7Asset> |
getS7VideoRenditions(S7Config s7Config,
java.lang.String assetHandle)
Retrieves a list of Scene7 video renditions with their names and asset
handles
|
java.lang.String |
getScene7ID(Resource resource)
Returns property
dam:scene7ID of a given Resource object |
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.util.List<Scene7User> |
getUsers(S7Config s7Config,
java.lang.Boolean includeInactive,
java.lang.Boolean includeInvalid,
java.util.List<java.lang.String> companyHandleArray,
java.util.List<java.lang.String> groupHandleArray,
java.util.List<java.lang.String> userRoleArray,
java.lang.String charFilterField,
java.lang.String charFilter,
java.lang.String sortBy,
java.lang.Integer recordsPerPage,
java.lang.Integer resultsPage)
Return a optionally sorted, filtered and paged list user results
|
java.lang.String |
getVideoEncoderPresetTypeHandle(S7Config s7Config)
Returns the video encoder preset type handle.
|
Scene7ViewerConfig |
getViewerConfigSettings(S7Config s7Config,
java.lang.String assetHandle)
Get the viewer configuration for the referenced asset
|
java.lang.String |
getXMPPacket(S7Config s7Config,
java.lang.String assetHandle)
Retrieves an XMP Metadata packet for the specified asset.
|
boolean |
isJobActiveByJobHandle(java.lang.String jobHandle,
S7Config s7Config) |
boolean |
isJobActiveByOriginalName(java.lang.String originalName,
S7Config s7Config) |
boolean |
isResourceLinkedToScene7(Resource resource)
Returns true if
Resource object is linked to Scene7 based on its metadata |
boolean |
moveAsset(S7Config s7Config,
Resource resource,
java.lang.String folder)
Moves an asset to a specific folder
|
boolean |
moveAssets(S7Config s7Config,
java.util.Map<Resource,java.lang.String> resourcesToFolders)
Moves multiple assets independently of each other
|
boolean |
moveAssociatedAsset(S7Config s7Config,
Resource resource,
java.lang.String folder)
Finds and moves generated assets to a specific folder
|
boolean |
moveFolder(S7Config s7Config,
java.lang.String sourceFolder,
java.lang.String destinationFolder)
Move a folder to a new location
|
boolean |
renameAsset(S7Config s7Config,
Resource resource,
java.lang.String name)
Rename an asset
|
boolean |
renameFolder(S7Config s7Config,
java.lang.String folder,
java.lang.String name)
Rename a folder
|
java.lang.String |
saveImageFormat(S7Config s7Config,
java.lang.String imageFormatHandle,
java.lang.String name,
java.lang.String urlModifier)
Deprecated.
|
java.lang.String |
saveImageFormat(S7Config s7Config,
java.lang.String imageFormatHandle,
java.lang.String name,
java.lang.String urlModifier,
Resource resource)
Create an image format.
|
java.lang.String |
saveImageMap(S7Config s7Config,
java.lang.String assetHandle,
java.lang.String imageMapHandle,
java.lang.String name,
java.lang.String shapeType,
java.lang.String region,
java.lang.String action,
int position,
boolean enabled)
Create a new image map or edit an existing map
|
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
Scene7Asset s 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
Scene7Asset s 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
Scene7Asset s 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.util.List<Scene7Asset> |
searchAssetsByName(java.lang.String folder,
java.lang.Boolean includeSubfolders,
java.lang.Boolean published,
java.lang.String name,
S7Config s7Config)
Retrieve a list of
Scene7Asset s from the Scene7 server by Scene7
asset name. |
java.util.List<Scene7Asset> |
searchAssetsByPartialName(java.lang.String folder,
java.lang.Boolean includeSubfolders,
java.lang.Boolean published,
java.lang.String name,
java.lang.String conditionMode,
S7Config s7Config)
Retrieve a list of
Scene7Asset s from the Scene7 server by Scene7
asset name with partial name search option |
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
|
java.lang.String |
setAssetsPublishState(java.util.Set<java.lang.String> assetHandles,
boolean markForPublish,
S7Config s7Config)
Set the publish state of a given Scene7 assets
|
java.util.List<java.lang.String> |
setImageMaps(S7Config s7Config,
java.lang.String assetHandle,
java.util.List<Scene7ImageMapDefinition> imageMap)
Sets the image map for an asset.
|
void |
setUserInfo(S7Config s7Config,
java.lang.String userHandle,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.String defaultRole,
Instant passwordExpires,
boolean isValid,
java.util.List<Scene7CompanyMembership> membershipArray)
Set user attributes
|
void |
setViewerConfigSettings(S7Config s7Config,
java.lang.String assetHandle,
java.lang.String name,
java.lang.String type,
java.util.List<Scene7ConfigSetting> configSettings)
Attach viewer configuration settings to an asset
Can be viewer preset or the source asset for the viewer
|
void |
updateAssetSet(S7Config s7Config,
java.lang.String assetHandle,
Scene7AssetSet setDefinition,
java.lang.String thumbAssetHandle)
Update an AssetSet on Scene7 server
|
void |
updateImageSet(S7Config s7Config,
java.lang.String assetHandle,
ImageSetMemberUpdateArray members,
java.lang.String thumbAssetHandle)
Update an ImageSet on Scene7 server
|
void |
updateImageSet(S7Config s7Config,
java.lang.String imageSetAssetHandle,
java.util.List<java.lang.String> setMemberHandles,
java.lang.String thumbAssetHandle)
|
boolean |
updateSmartCrops(S7Config s7Config,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Scene7NormalizedCropRect>> updateSmartCropMap)
Update one or more Smart Crop sub asset(s)
|
void |
updateViewerConfigSettings(S7Config s7Config,
java.lang.String assetHandle,
java.util.List<Scene7ConfigSetting> configSettings)
Updates SWF viewer configuration settings.
|
void |
updateXMPPacket(S7Config s7Config,
java.lang.String assetHandle,
java.lang.String xmpPacketAsXml)
Sets or updates an XMP metadata packet for an 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
- null
if not presentjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String getApplicationPropertyHandle(S7Config s7Config)
s7Config
- the Scene7 configurationnull
if not presentjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String getVideoEncoderPresetTypeHandle(S7Config s7Config)
s7Config
- the Scene7 configurationnull
if not presentjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.util.List<Scene7PropertySet> getPropertySets(java.lang.String typeHandle, S7Config s7Config)
typeHandle
- - the type handles7Config
- the Scene7 configurationjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.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.AssertionError
- in case of IPS failures or undefined data formatjava.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 servicejava.lang.AssertionError
- in case of IPS failures or undefined data formatScene7Folder 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.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String getFolderHandle(java.lang.String cqFolderPath, S7Config s7Config)
cqFolderPath
- - the path the target cq folder targeted in the s7 folder organizations7Config
- java.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String deleteFolder(java.lang.String folderHandle, S7Config s7Config)
folderHandle
- - folder to be deleteds7Config
- - s7 config based on cloud service config info.java.lang.AssertionError
- in case of IPS failuresjava.lang.String deleteAsset(java.lang.String assetHandle, S7Config s7Config)
assetHandle
- - asset to be deleteds7Config
- - s7 config based on cloud service config info.java.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String deleteAssets(java.lang.String[] assetHandleArr, S7Config s7Config)
assetHandleArr
- - asset to be deleteds7Config
- - s7 config based on cloud service config info.java.lang.AssertionError
- in case of IPS failures or undefined data formatjava.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.lang.AssertionError
- in case of IPS failuresjava.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.lang.AssertionError
- in case of IPS failuresjava.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.lang.AssertionError
- in case of IPS failuresScene7Asset getAsset(java.lang.String assetHandle, java.lang.String[] responseFields, java.lang.String[] excludeFields, S7Config s7Config)
Scene7Asset
object. If there are multiple
matching assets found, return the first asset.assetHandle
- - the asset to retrieveresponseFields
- - fields to be filled in for each node in the treeexcludeFields
- - fields to be excluded in each node of the trees7Config
- - Scene7 cloud configuration objectScene7Asset
object, or null if not found or failedjava.lang.AssertionError
- in case of IPS failuresjava.util.ArrayList<UploadJobDetail> getMultiFileJobLogDetails(java.lang.String jobHandle, S7Config s7Config)
jobHandle
- - the handle for the job to get details.s7Config
- java.lang.AssertionError
- in case of IPS failures or undefined data formatboolean isJobActiveByJobHandle(java.lang.String jobHandle, S7Config s7Config)
jobHandle
- of the jobs7Config
- true
if active job with this jobHandle or orginalName is active, false
otherwisejava.lang.AssertionError
- in case of IPS failures or undefined data formatboolean isJobActiveByOriginalName(java.lang.String originalName, S7Config s7Config)
originalName
- of the jobs7Config
- true
if active job with this jobHandle or orginalName is active, false
otherwisejava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.util.List<java.lang.String> getJobLogDetails(java.lang.String jobHandle, S7Config s7Config)
jobHandle
- - the handle for the job to get details.s7Config
- java.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String getJobStatus(S7Config s7Config, java.lang.String jobName)
s7Config
- the Scene7 configurationjobName
- the name of the jobjava.util.List<java.lang.String> getImagePresets(S7Config s7Config)
S7Config
s7Config
- java.lang.AssertionError
- in case of IPS failures or undefined data format@Deprecated 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)
Scene7Asset
s 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.lang.AssertionError
- in case of IPS failuresjava.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)
Scene7Asset
s 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.lang.AssertionError
- in case of IPS failuresjava.util.List<Scene7Asset> searchAssetsByFilename(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.Boolean published, java.lang.String filename, S7Config s7Config)
Scene7Asset
s from the Scene7 server by
filename.folder
- includeSubfolders
- published
- filename
- s7Config
- java.lang.AssertionError
- in case of IPS failuresjava.util.List<Scene7Asset> searchAssetsByName(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.Boolean published, java.lang.String name, S7Config s7Config)
Scene7Asset
s from the Scene7 server by Scene7
asset name.folder
- remote search folder pathincludeSubfolders
- to include children folderspublished
- to include published or non-published assetsname
- Scene7 name of target assets7Config
- Scene7 cloud configurationjava.lang.AssertionError
- in case of IPS failuresjava.util.List<Scene7Asset> searchAssetsByPartialName(java.lang.String folder, java.lang.Boolean includeSubfolders, java.lang.Boolean published, java.lang.String name, java.lang.String conditionMode, S7Config s7Config)
Scene7Asset
s from the Scene7 server by Scene7
asset name with partial name search optionfolder
- remote search folder pathincludeSubfolders
- to include children folderspublished
- to include published or non-published assetsname
- Scene7 name of target assetconditionMode
- partial name search condition mode. Currently supported modes
are "Equals" and "StartsWith"s7Config
- Scene7 cloud configurationScene7Asset
sScene7Asset getGeneratedAssets(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 assetjava.lang.AssertionError
- in case of IPS failuresScene7Asset 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 assetjava.lang.AssertionError
- in case of IPS failuresScene7Asset getMasterAsset(Scene7Asset asset, S7Config s7Config)
asset
- - the asset to get the originator assets7Config
- - the Scene7 configurationScene7Asset
object updated with the
originator assetjava.lang.AssertionError
- in case of IPS failures@Deprecated java.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.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String setAssetPublishState(java.lang.String assetHandle, boolean markForPublish, S7Config s7Config)
assetHandle
- unique asset identifiermarkForPublish
- value of markForPublish flags7Config
- the Scene7 configurationjava.lang.AssertionError
- in case of IPS failuresjava.lang.String setAssetsPublishState(java.util.Set<java.lang.String> assetHandles, boolean markForPublish, S7Config s7Config)
assetHandles
- asset identifiers to set publish statemarkForPublish
- value of markForPublish flags7Config
- the Scene7 configurationjava.lang.AssertionError
- in case of IPS failuresjava.lang.String createFolder(S7Config s7Config, java.lang.String cqFolderPath)
s7Config
- the Scene7 configurationcqFolderPath
- the path the target cq folder targeted in the s7 folder
organizationjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String createImageSet(S7Config s7Config, java.lang.String folder, java.lang.String name, java.lang.String type, Resource resource, java.lang.String thumbAssetHandle)
s7Config
- the Scene7 configurationfolder
- relative target folder based on S7 Config root folder. If not
exists, will attempt to create itname
- name for new ImageSettype
- type of new ImageSet (ImageSet, SwatchSet, RenderSet)resource
- (optional) if exists, jcr resource to receive metadata from new objectthumbAssetHandle
- (optional) asset handle of user-defined thumbnail image for
setjava.lang.AssertionError
- in case of IPS failures or undefined data format@Deprecated java.lang.String createImageSet(S7Config s7Config, java.lang.String imageSetFolder, java.lang.String imageSetName, java.lang.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, java.lang.String assetHandle, ImageSetMemberUpdateArray members, java.lang.String thumbAssetHandle)
s7Config
- the Scene7 configurationassetHandle
- asset handle of the ImageSet to updatemembers
- (optional) list of ImageSet members (Null = not updated)thumbAssetHandle
- (optional) asset handle of user-defined thumbnail image for set (Null = not updated)java.lang.AssertionError
- in case of IPS failures@Deprecated void updateImageSet(S7Config s7Config, java.lang.String imageSetAssetHandle, java.util.List<java.lang.String> setMemberHandles, java.lang.String thumbAssetHandle)
s7Config
- the Scene7 configurationimageSetAssetHandle
- image set Scene7 asset handlesetMemberHandles
- asset handles of image set membersthumbAssetHandle
- (optional) user defined thumbnail asset handlejava.lang.String createAssetSet(S7Config s7Config, java.lang.String folder, java.lang.String name, java.lang.String type, Resource resource, Scene7AssetSet setDefinition, java.lang.String thumbAssetHandle)
s7Config
- the Scene7 configurationfolder
- relative target folder based on S7 Config root folder. If not
exists, will attempt to create itname
- name for new AssetSettype
- type of new AssetSetresource
- (optional) if exists, jcr resource to receive metadata from new objectsetDefinition
- (optional) set's definition stringthumbAssetHandle
- (optional) asset handle of user-defined thumbnail image for
setjava.lang.AssertionError
- in case of IPS failures or undefined data formatvoid updateAssetSet(S7Config s7Config, java.lang.String assetHandle, Scene7AssetSet setDefinition, java.lang.String thumbAssetHandle)
s7Config
- the Scene7 configurationassetHandle
- asset handle of the AssetSet to updatesetDefinition
- (optional) set's definition string (Null = not updated)thumbAssetHandle
- (optional) asset handle of user-defined thumbnail image for set (Null = not updated)java.lang.AssertionError
- in case of IPS failuresjava.lang.String createViewerPreset(S7Config s7Config, java.lang.String folderHandle, java.lang.String name, java.lang.String type, Resource resource, java.util.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 IPSresource
- (optional) if exists, jcr resource to receive metadata from new objectconfigSettings
- (optional) list containing Scene7ConfigSetting
values to applynull
if unsuccessfuljava.lang.AssertionError
- in case of IPS failures or undefined data format@Deprecated java.lang.String createViewerPreset(S7Config s7Config, java.lang.String folderHandle, java.lang.String name, java.lang.String type, java.util.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, java.lang.String assetHandle)
s7Config
- the Scene7 configurationassetHandle
- asset handle for the asset of interestScene7ViewerConfig
with the information or null
if unsuccessfuljava.lang.AssertionError
- in case of IPS failures or undefined data formatvoid setViewerConfigSettings(S7Config s7Config, java.lang.String assetHandle, java.lang.String name, java.lang.String type, java.util.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 applyjava.lang.AssertionError
- in case of IPS failuresvoid updateViewerConfigSettings(S7Config s7Config, java.lang.String assetHandle, java.util.List<Scene7ConfigSetting> configSettings)
s7Config
- the Scene7 configurationassetHandle
- asset handle for the asset to modifyconfigSettings
- list containing Scene7ConfigSetting
values to applyjava.lang.AssertionError
- in case of IPS failuresjava.lang.String addUser(S7Config s7Config, java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.String defaultRole, java.lang.String password, Instant passwordExpires, boolean isValid, java.util.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.java.lang.AssertionError
- in case of IPS failures or undefined data formatjava.util.List<Scene7User> getAllUsers(S7Config s7Config, boolean includeInvalid)
s7Config
- The Scene7 configurationincludeInvalid
- Indicate if invalid users should be includedScene7User
requestedjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.util.List<Scene7User> getUsers(S7Config s7Config, java.lang.Boolean includeInactive, java.lang.Boolean includeInvalid, java.util.List<java.lang.String> companyHandleArray, java.util.List<java.lang.String> groupHandleArray, java.util.List<java.lang.String> userRoleArray, java.lang.String charFilterField, java.lang.String charFilter, java.lang.String sortBy, java.lang.Integer recordsPerPage, java.lang.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
requestedjava.lang.AssertionError
- in case of IPS failures or undefined data formatvoid setUserInfo(S7Config s7Config, java.lang.String userHandle, java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.String defaultRole, Instant passwordExpires, boolean isValid, java.util.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 userjava.lang.AssertionError
- in case of IPS failuresjava.lang.String deleteImageFormat(S7Config s7Config, java.lang.String imageFormatHandle)
s7Config
- The Scene7 configimageFormatHandle
- Handle to the image format. (This is returned from
saveImageFormat(S7Config, String, String, String, Resource)
java.lang.AssertionError
- in case of IPS failuresjava.util.List<Scene7ImageFormat> getImageFormats(S7Config s7Config)
s7Config
- The Scene7 configScene7ImageFormat
objectsjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String saveImageFormat(S7Config s7Config, java.lang.String imageFormatHandle, java.lang.String name, java.lang.String urlModifier, Resource resource)
s7Config
- The Scene7 configimageFormatHandle
- Image format handle you want to savename
- Image format nameurlModifier
- IPS protocol query stringresource
- (optional) if exists, jcr resource to receive metadata from new objectjava.lang.AssertionError
- in case of IPS failures or undefined data format@Deprecated java.lang.String saveImageFormat(S7Config s7Config, java.lang.String imageFormatHandle, java.lang.String name, java.lang.String urlModifier)
saveImageFormat(S7Config, String, String, String, Resource)
s7Config
- The Scene7 configimageFormatHandle
- Image format handle you want to savename
- Image format nameurlModifier
- IPS protocol query stringvoid deleteImageMap(S7Config s7Config, java.lang.String imageMapHandle)
s7Config
- The Scene7 configimageMapHandle
- Handle for the image map to deletejava.lang.AssertionError
- in case of IPS failuresjava.lang.String saveImageMap(S7Config s7Config, java.lang.String assetHandle, java.lang.String imageMapHandle, java.lang.String name, java.lang.String shapeType, java.lang.String region, java.lang.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 enabledjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.util.List<java.lang.String> setImageMaps(S7Config s7Config, java.lang.String assetHandle, java.util.List<Scene7ImageMapDefinition> imageMap)
s7Config
- The Scene7 configassetHandle
- Handle to the assetimageMap
- list of predefined Scene7ImageMapDefinition
objectsjava.lang.AssertionError
- in case of IPS failures or undefined data formatScene7BatchMetadataResult batchSetAssetMetadata(S7Config s7Config, java.util.List<Scene7MetadataUpdate> updates)
s7Config
- The Scene7 configupdates
- List of Scene7ImageFieldUpdate
to be appliedScene7BatchMetadataResult
containing details
on any warnings or errorsjava.lang.AssertionError
- in case of IPS failures or undefined data formatScene7BatchMetadataResult batchSetImageFields(S7Config s7Config, java.util.List<Scene7ImageFieldUpdate> updateArray)
s7Config
- The Scene7 configupdateArray
- List of Scene7ImageFieldUpdate
to be appliedScene7BatchMetadataResult
containing details
on any warnings or errorsjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String getPreviewServerUrl(Resource resource, ResourceResolver configResolver)
resource
- Scene7 sync-ed asset in DAMconfigResolver
- resource resolver with access to S7Config objectjava.lang.String getPublishServerUrl(Resource resource, ResourceResolver configResolver)
resource
- Scene7 sync-ed asset in DAMconfigResolver
- resource resolver with access to S7Config objectjava.lang.String getPreviewVideoServerUrl(Resource resource, ResourceResolver configResolver)
resource
- Scene7 sync-ed asset in DAMconfigResolver
- resource resolver with access to S7Config objectjava.lang.String getPublishVideoServerUrl(Resource resource, ResourceResolver configResolver)
resource
- Scene7 sync-ed asset in DAMconfigResolver
- resource resolver with access to S7Config objectjava.util.Map<java.lang.String,java.lang.String> getS7AssetMetadata(S7Config s7Config, java.lang.String assetHandle)
s7Config
- The Scene7 cloud configuration objectassetHandle
- Scene7 unique asset identifierjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.util.List<Scene7Asset> getS7VideoRenditions(S7Config s7Config, java.lang.String assetHandle)
s7Config
- The Scene7 cloud configuration objectassetHandle
- Scene7 unique asset identifierjava.lang.AssertionError
- in case of IPS failures or undefined data formatjava.lang.String getScene7ID(Resource resource)
dam:scene7ID
of a given Resource
objectresource
- Resource object on which to get Scene7 metadatadam:scene7ID
associated to
Resource
or null if property is unavailableboolean isResourceLinkedToScene7(Resource resource)
Resource
object is linked to Scene7 based on its metadataresource
- Resource object on which to get Scene7 metadataResource
object has dam:scene7ID
metadatajava.lang.String getLinkedScene7ConfigPath(Resource resource)
dam:scene7CloudConfigPath
of a given
Resource
objectresource
- Resource object on which to get Scene7 metadatadam:scene7CloudConfigPath
associated to
Resource
or null if property is unavailablejava.util.List<Scene7Asset> getContainerAssets(Scene7Asset scene7Asset, S7Config s7Config)
boolean moveAsset(S7Config s7Config, Resource resource, java.lang.String folder)
s7Config
- Scene7 S7Config objectresource
- Resource object to be relocatedfolder
- Destination folder pathboolean moveAssets(S7Config s7Config, java.util.Map<Resource,java.lang.String> resourcesToFolders)
s7Config
- Scene7 S7Config objectresourcesToFolders
- Mapping of AEM resource to destination folderboolean moveFolder(S7Config s7Config, java.lang.String sourceFolder, java.lang.String destinationFolder)
s7Config
- Scene7 S7Config objectsourceFolder
- Path to source folderdestinationFolder
- Path to destination folderboolean moveAssociatedAsset(S7Config s7Config, Resource resource, java.lang.String folder)
s7Config
- Scene7 S7Config objectresource
- Resource object to be relocatedfolder
- Destination folder pathboolean renameAsset(S7Config s7Config, Resource resource, java.lang.String name)
s7Config
- Scene7 S7Config objectresource
- Resource object to be renamedname
- Asset's new nameboolean renameFolder(S7Config s7Config, java.lang.String folder, java.lang.String name)
s7Config
- Scene7 S7Config objectfolder
- Folder to be renamedname
- Folder's new nameboolean updateSmartCrops(S7Config s7Config, java.util.Map<java.lang.String,java.util.Map<java.lang.String,Scene7NormalizedCropRect>> updateSmartCropMap)
s7Config
- Scene7 S7Config objectupdateSmartCropMap
- Map of owner handle, sub-asset asset handles and
Scene7NormalizedCropRect objectsjava.lang.String getXMPPacket(S7Config s7Config, java.lang.String assetHandle)
s7Config
- the Scene7 configurationassetHandle
- Handle to the asset you want to get XMP metadatavoid updateXMPPacket(S7Config s7Config, java.lang.String assetHandle, java.lang.String xmpPacketAsXml)
s7Config
- the Scene7 configurationassetHandle
- Handle to the asset you want to get XMP metadataxmpPacketAsXml
- updated XMP packet to update asset metadata in XML format"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"