Package com.day.cq.wcm.resource.details
Class AssetDetails
java.lang.Object
com.day.cq.wcm.resource.details.AssetDetails
- All Implemented Interfaces:
ResourceDetails
Class which gives access to some details of an asset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsset()intGet number of commentsGet description of the assetlongGet height of the assetlongGet last modifiedGet mime type of assetgetName()Get nameintgetReferencesSize(AssetReferenceResolver customResolver) Count all asset referencesGet resolution of assetgetSize()Get size of assetGet URL for thumbnaillonggetWidth()Get width of the asset
-
Constructor Details
-
AssetDetails
-
-
Method Details
-
getAssetNode
-
getAsset
-
getName
Get name- Specified by:
getNamein interfaceResourceDetails- Throws:
RepositoryException
-
getLastModified
Get last modified- Specified by:
getLastModifiedin interfaceResourceDetails- Returns:
- Throws:
RepositoryException
-
getMimeType
Get mime type of asset- Returns:
- mime type of asset
-
getReferencesSize
Count all asset references- Specified by:
getReferencesSizein interfaceResourceDetails- Parameters:
customResolver-- Returns:
- Throws:
RepositoryException
-
getCommentsSize
Get number of comments- Specified by:
getCommentsSizein interfaceResourceDetails- Returns:
- number of comments
- Throws:
RepositoryException
-
getThumbnailUrl
Get URL for thumbnail- Returns:
-
getWidth
Get width of the asset- Returns:
- width of asset
- Throws:
RepositoryException
-
getHeight
Get height of the asset- Returns:
- height of asset
- Throws:
RepositoryException
-
getSize
Get size of asset- Returns:
- size of asset
-
getResolution
Get resolution of asset- Returns:
- resolution of asset
- Throws:
RepositoryException
-
getDescription
Get description of the asset- Returns:
- description
- Throws:
RepositoryException
-
getParamJSON
- Throws:
RepositoryException
-