Class AssetDetails

  • All Implemented Interfaces:
    ResourceDetails

    public class AssetDetails
    extends java.lang.Object
    implements ResourceDetails
    Class which gives access to some details of an asset
    • Constructor Detail

      • AssetDetails

        public AssetDetails​(Resource resource)
    • Method Detail

      • getAssetNode

        public javax.jcr.Node getAssetNode()
      • getAsset

        public Asset getAsset()
      • getName

        public java.lang.String getName()
                                 throws javax.jcr.RepositoryException
        Get name
        Specified by:
        getName in interface ResourceDetails
        Throws:
        javax.jcr.RepositoryException
      • getLastModified

        public long getLastModified()
                             throws javax.jcr.RepositoryException
        Get last modified
        Specified by:
        getLastModified in interface ResourceDetails
        Returns:
        Throws:
        javax.jcr.RepositoryException
      • getMimeType

        public java.lang.String getMimeType()
        Get mime type of asset
        Returns:
        mime type of asset
      • getReferencesSize

        public int getReferencesSize​(AssetReferenceResolver customResolver)
                              throws javax.jcr.RepositoryException
        Count all asset references
        Specified by:
        getReferencesSize in interface ResourceDetails
        Parameters:
        customResolver -
        Returns:
        Throws:
        javax.jcr.RepositoryException
      • getCommentsSize

        public int getCommentsSize()
                            throws javax.jcr.RepositoryException
        Get number of comments
        Specified by:
        getCommentsSize in interface ResourceDetails
        Returns:
        number of comments
        Throws:
        javax.jcr.RepositoryException
      • getThumbnailUrl

        public java.lang.String getThumbnailUrl()
        Get URL for thumbnail
        Returns:
      • getWidth

        public long getWidth()
                      throws javax.jcr.RepositoryException
        Get width of the asset
        Returns:
        width of asset
        Throws:
        javax.jcr.RepositoryException
      • getHeight

        public long getHeight()
                       throws javax.jcr.RepositoryException
        Get height of the asset
        Returns:
        height of asset
        Throws:
        javax.jcr.RepositoryException
      • getSize

        public java.lang.String getSize()
        Get size of asset
        Returns:
        size of asset
      • getResolution

        public java.lang.String getResolution()
                                       throws javax.jcr.RepositoryException
        Get resolution of asset
        Returns:
        resolution of asset
        Throws:
        javax.jcr.RepositoryException
      • getDescription

        public java.lang.String getDescription()
                                        throws javax.jcr.RepositoryException
        Get description of the asset
        Returns:
        description
        Throws:
        javax.jcr.RepositoryException
      • getParamJSON

        public java.lang.String getParamJSON()
                                      throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException