Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Javadoc resource link
    0info.magnolia.dam.api.AssetProviderRegistry
    classNameinfo.magnolia.dam.api.AssetProviderRegistry
    renderTypeasynchronous
    is the main entry point. Given an ItemKey or MediaType it is responsible for:
    • Finding the correct AssetProvider.
    • Finding the correct AssetRenderer.
  • Javadoc resource link
    0info.magnolia.dam.api.AssetProvider
    classNameinfo.magnolia.dam.api.AssetProvider
    renderTypeasynchronous
    : Exposes Folders and Assets from a particular source. Specifics of the storage of these items are left to implementations. While most provider implementations only use the ItemKey.assetId field of keys passed to the various get methods, the entire key object is passed for consistency and flexibility. This makes it possible to implement, for example, delegating and aggregating providers.
  • Javadoc resource link
    0info.magnolia.dam.api.PathAwareAssetProvider
    classNameinfo.magnolia.dam.api.PathAwareAssetProvider
    renderTypeasynchronous
    : Exposes specific operations for AssetProviders that are aware of paths, for example JCR, CMIS, File system etc. Not all providers need or want to implement these features. The term "path" here should be taken "with a pinch of salt". It could, for example, be a single name or a "relative" path if the provider serves assets from a subset of its underlying data source.
  • Javadoc resource link
    0info.magnolia.dam.api.AssetRenderer
    classNameinfo.magnolia.dam.api.AssetRenderer
    renderTypeasynchronous
    : Provides AssetRenditions by bridging an asset's data and some type of converter. AssetRenderers can be provided by AssetProviders if the AssetProvider itself (or the underlying system) is capable of managing the conversion/translation, or via a "global" registry. AssetProviderRegistry.getRendererFor(info.magnolia.dam.api.Asset, com.google.common.net.MediaType) provides the entry point. It looks up in provider, then in its own registry, and bridges to other possible conversion mechanisms that are independent of Magnolia DAM.
  • Javadoc resource link
    0info.magnolia.dam.api.Asset
    classNameinfo.magnolia.dam.api.Asset
    renderTypeasynchronous
    : An Asset is a digital resource with associated metadata.
  • Javadoc resource link
    0info.magnolia.dam.api.Folder
    classNameinfo.magnolia.dam.api.Folder
    renderTypeasynchronous
    : A Folder represents a structural item holding Assets. Depending on the provider, this can be directly mapped to the concept of folders/directories (JCR, FileSystems etc.), and for other types it may map to the concept of albums, playlists, sets, etc.
  • Javadoc resource link
    0info.magnolia.dam.api.Item
    classNameinfo.magnolia.dam.api.Item
    renderTypeasynchronous
    : Defines a common interface for Asset and Folder
  • Javadoc resource link
    0info.magnolia.dam.api.AssetQuery
    classNameinfo.magnolia.dam.api.AssetQuery
    renderTypeasynchronous
    : Represents a query to an AssetProvider. Use new AssetQuery.Builder()...build() to construct instances. 
  • Javadoc resource link
    0info.magnolia.dam.api.AssetRendition
    classNameinfo.magnolia.dam.api.AssetRendition
    renderTypeasynchronous
    : An AssetRendition is a "view" on a asset for a specific MediaType . It can be a simple resize of an image, or a document conversion.

...

The DAM JCR API classes reside in the DAM JCR module and implement the DAM API for JCR assets that are stored in the dam workspace and accessible in the Assets app <link>.

JCR classes

  • Javadoc resource link
    0info.magnolia.dam.jcr.JcrAssetProvider
    classNameinfo.magnolia.dam.jcr.JcrAssetProvider
    renderTypeasynchronous
    : AssetProvider that delivers assets for the dam workspace. Extends AbstractAssetProvider and implements PathAwareAssetProvider. 
  • Javadoc resource link
    0info.magnolia.dam.jcr.AbstractJcrItem
    classNameinfo.magnolia.dam.jcr.AbstractJcrItem
    renderTypeasynchronous
    : JCR implementation of an Item. Extends AbstractItem<JcrAssetProvider>
  • Javadoc resource link
    0info.magnolia.dam.jcr.JcrAsset
    classNameinfo.magnolia.dam.jcr.JcrAsset
    renderTypeasynchronous
    : JCR implementation of the Asset definition. Extends AbstractJcrItem.
  • Javadoc resource link
    0info.magnolia.dam.jcr.JcrFolder
    classNameinfo.magnolia.dam.jcr.JcrFolder
    renderTypeasynchronous
    : JCR implementation of the Folder definition. Extends AbstractJcrItem.
  • Javadoc resource link
    0info.magnolia.dam.jcr.AssetNodeTypes
    classNameinfo.magnolia.dam.jcr.AssetNodeTypes
    renderTypeasynchronous
    : Constants and convenience methods for asset node types.
    • Asset: Represents the node type mgnl:asset. Fields: caption, comment, copyright, description, language, master, name, provider_type, subject, title, type.
    • AssetResource: Represent the resource node bound to an Asset. Fields: data, extension, filename, height, mimetype, name, ressource_name, size, width.
  • Javadoc resource link
    0info.magnolia.dam.jcr.JcrItemNodeTypePredicate
    classNameinfo.magnolia.dam.jcr.JcrItemNodeTypePredicate
    renderTypeasynchronous
    : Predicate filtering assets nodes (folders and assets) based on the following Node.getPrimaryNodeType():
    • AssetNodeTypes.Asset.NAME
    • NodeTypes.Folder#NAME.

Extends info.magnolia.jcr.predicate.AbstractPredicate<javax.jcr.Node>.

  • Javadoc resource link
    0info.magnolia.dam.jcr.DamConstants
    classNameinfo.magnolia.dam.jcr.DamConstants
    renderTypeasynchronous
    : Defines commonly used constants for the DAM.JCR module. Fields: default_jcr_provider_id, workspace.

...

Code Block
/**
    * JcrAsset specific implementation that lets you access a property value linked to an asset node.
    * This requires an open session.
        * 
       * @return property value Object if the property exists or null otherwise.
       */

    public Object getProperty(String propertyName) {
        return PropertyUtil.getPropertyValueObject(getNode(), propertyName);

JCR metadata classes

  • Javadoc resource link
    0info.magnolia.dam.jcr.metadata.JcrDublinCore
    classNameinfo.magnolia.dam.jcr.metadata.JcrDublinCore
    renderTypeasynchronous
    : JCR implementation of DublinCore. Fields: dc_contributor, dc_coverage, dc_creator, dc_publisher, dc_relation, dc_source, dc_subject, dc_type. Methods: getContributorgetCoverage, getCreated, getCreator, getDate, getDescription, getFormat, getIdentifier, getLanguage, getModified , getPublisher, getRelation, getRights, getSource, getSubject, getTitle, getType.
  • Javadoc resource link
    0info.magnolia.dam.jcr.metadata.JcrMagnoliaAssetMetadata
    classNameinfo.magnolia.dam.jcr.metadata.JcrMagnoliaAssetMetadata
    renderTypeasynchronous
    : Base JCR implementation of the MagnoliaAssetMetadata definition. Methods: getHeight, getWidth

...