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 .
|
java.lang.String |
getAssetReference(java.lang.String path)
Deprecated.
|
java.util.List<java.lang.String> |
getEntries()
Lists all entries from the lightbox.
|
java.lang.String |
getReference(java.lang.String path)
Return path of referenced asset or rendition in /content/dam for the lightbox entry else return null.
|
void |
remove(java.lang.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(java.lang.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.java.util.List<java.lang.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 java.lang.String getAssetReference(java.lang.String path) throws RepositoryException
path
- path of the asset.RepositoryException
- in case an exception occurs while accessing the referenced assetjava.lang.String getReference(java.lang.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