public class DamURI2RepositoryMapping
extends info.magnolia.cms.beans.config.URI2RepositoryMapping
Constructor and Description |
---|
DamURI2RepositoryMapping(info.magnolia.dam.api.AssetProviderRegistry assetProviderRegistry) |
Modifier and Type | Method and Description |
---|---|
String |
getHandle(String uri)
From an
Asset.getLink() retrieve the corresponding JCR Asset Node path used to create the Link instance. |
String |
getURI(info.magnolia.link.Link link)
Retrieve the
Asset represented by the incoming Link .The following Link attributes are used to retrieve an Asset : - Link.getUUID() for ItemKey.getAssetId() - Link.getRepository() for ItemKey.getProviderId() |
@Inject public DamURI2RepositoryMapping(info.magnolia.dam.api.AssetProviderRegistry assetProviderRegistry)
public String getURI(info.magnolia.link.Link link)
Asset
represented by the incoming Link
.Link
attributes are used to retrieve an Asset
: Link.getUUID()
for ItemKey.getAssetId()
Link.getRepository()
for ItemKey.getProviderId()
getURI
in class info.magnolia.cms.beans.config.URI2RepositoryMapping
Asset.getLink()
without the ContextPath.Copyright © 2014 Magnolia International Ltd.. All rights reserved.