public interface Lightbox
Lightbox interface provides all needed functionality
in order to "manage" the user's lighboxes.| Modifier and Type | Method and Description |
|---|---|
void |
add(Asset asset)
Adds the original rendition of the asset to the user's lightbox.
|
void |
add(Rendition rendition)
Adds the rendition of the asset to the user's lightbox.
|
void |
clear()
Removes all lightbox entries.
|
boolean |
contains(Asset asset)
Checks if the asset of the given path is contained in the lightbox .
|
boolean |
contains(Rendition rendition)
Checks if the rendition of the given path is contained in the lightbox .
|
String |
getAssetReference(String path)
Deprecated.
|
List<String> |
getEntries()
Lists all entries from the lightbox.
|
String |
getReference(String path)
Return path of referenced asset or rendition in /content/dam for the lightbox entry else return null.
|
void |
remove(String name)
Removes a lightbox entry.
|
void add(Asset asset) throws RepositoryException
asset - AssetRepositoryException - in case an exception occurs while
adding the file.void add(Rendition rendition) throws RepositoryException
rendition - RenditionRepositoryException - in case an exception occurs while
adding the file.void remove(String name) throws RepositoryException
name - Name of the entry (node name)RepositoryException - in case an exception occurs while removing an
entry.void clear()
throws RepositoryException
RepositoryException - in case an exception occurs while removing an
entry.List<String> getEntries() throws RepositoryException
RepositoryException - in case an exception occurs while fetching
the entries.boolean contains(Asset asset) throws RepositoryException
asset - The asset to checkRepositoryException - in case an exception occurs while checking
the entries.boolean contains(Rendition rendition) throws RepositoryException
rendition - The rendition to checkRepositoryException - in case an exception occurs while checking
the entries.@Deprecated String getAssetReference(String path) throws RepositoryException
path - path of the asset.RepositoryException - in case an exception occurs while accessing the referenced assetString getReference(String path) throws RepositoryException
path - path of the asset.RepositoryException - thrown in case an exception occurs while accessing the assetCopyright © 2010 - 2020 Adobe. All Rights Reserved