Package com.day.cq.dam.scene7.api
Interface Scene7AEMBridge
This API bridges some of the functionality from the Scene7 bundle for usage in the S7dam bundle.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllMembersOfBatchSetByAssetHandle(String assetHandle, Resource ipsCompanySharedDirectory) getAssetsByHandles(String[] assetHandles, Resource ipsCompanySharedDirectory) getS7AssetPreviewUrl(Resource resource) getS7AssetPublishUrl(Resource resource) getS7configFromResource(Resource resource) Deprecated.
-
Method Details
-
getAllMembersOfBatchSetByAssetHandle
List<Scene7Asset> getAllMembersOfBatchSetByAssetHandle(String assetHandle, Resource ipsCompanySharedDirectory) - Parameters:
assetHandle- asset metadata property imported from IPS during asset ingestionipsCompanySharedDirectory- directory in AEM that maps to the company in IPS that is to be queried- Returns:
- ArrayList containing all members assets of the set whose handle is being queried against
-
getAllBatchSetsContainingAsset
- Parameters:
asset- AEM Asset which has been ingested by IPS and has appropriate IPS metadata on it- Returns:
- ArrayList containing all sets that contain asset
-
getS7configFromResource
Deprecated.Warning: this method leaks ResourceResolver! UseS7ConfigResolverservice instead!- Parameters:
resource- AEM resource that has relevant IPS ingestion metadata. If not, we recursively look at the resource's directory structure to see if any of the parent folders have the necessary metadata- Returns:
- S7Config object derived from IPS ingestion metadata
-
getAssetsByHandles
- Parameters:
assetHandles- IPS ingestion metadata used to query IPS for these assetsipsCompanySharedDirectory- directory in AEM that maps to the company in IPS that is to be queried- Returns:
- ArrayList containing Scene7 object representations of the assets as they exist in IPS
-
getS7AssetPublishUrl
- Parameters:
resource- AEM resource that ingest into S7- Returns:
- Asset's publish URL
-
getS7AssetPreviewUrl
- Parameters:
resource- AEM resource that ingest into S7- Returns:
- Asset's preview URL
-
S7ConfigResolverservice instead!