DamUtil
instead.@Deprecated
public interface DamManager
DamManager
provides utility methods for DAM.
The DAM manager can be adapted (retrieved) via resource resolver:
... DamManager damManager = resourceResolver.adaptTo(DamManager.class); ...
Modifier and Type | Method and Description |
---|---|
Asset |
createAssetStructure(java.lang.String binaryPath,
Session session,
boolean doSave)
Deprecated.
Use
com.day.cq.dam.commons.util.DamUtil#createAssetForBinary(String, ResourceResolver, Boolean)
instead. |
java.lang.String |
createBinaryUploadLocationPath(java.lang.String assetNodePath)
Deprecated.
Use
DamUtil.assetToBinaryPath(String) instead. |
java.lang.String |
createMetadataPath(java.lang.String binaryNodePath)
Deprecated.
Use
DamUtil.binaryToAssetPath(String) instead. |
java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix)
Deprecated.
Use
File.createTempFile(String, String) instead. |
Node |
getAssetNode(java.lang.String assetNodePath,
Session session)
Deprecated.
Use
com.day.cq.dam.commons.util.DamUtil#getAssetNodeForBinary(String, Session) instead. |
Session |
getSession()
Deprecated.
Will be removed without replacement.
|
void |
removeAssetNode(java.lang.String assetNodePath,
Session session)
Deprecated.
Use
com.day.cq.dam.commons.util.DamUtil#removeAssetForBinary(String, Session) instead. |
@Deprecated java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix) throws java.io.IOException
File.createTempFile(String, String)
instead.File.createTempFile(String, String)
. The only difference is
that one can specify on the DamManager
the temp dir location.prefix
- The prefix string to be used in generating the file's name; must be at least three characters longsuffix
- The suffix string to be used in generating the file's name; may be null
, in which case
the suffix ".tmp"
will be usedjava.io.IOException
- Thrown upon an error occurring during file handling.@Deprecated java.lang.String createMetadataPath(java.lang.String binaryNodePath)
DamUtil.binaryToAssetPath(String)
instead.binaryNodePath
- the binary file path (e.g. /var/dam/test.jpeg)@Deprecated java.lang.String createBinaryUploadLocationPath(java.lang.String assetNodePath)
DamUtil.assetToBinaryPath(String)
instead.assetNodePath
- the asset file path (e.g. /content/dam/test.jpeg)@Deprecated Session getSession() throws RepositoryException
javax.jcr.Session
on the workspace used by the DamManager
.RepositoryException
- Thrown upon encountering an error creating the session.@Deprecated Node getAssetNode(java.lang.String assetNodePath, Session session)
com.day.cq.dam.commons.util.DamUtil#getAssetNodeForBinary(String, Session)
instead.assetNodePath
parameter or null
if it doesn't exist.assetNodePath
- The node to retrieve.session
- The JCR session to work with.@Deprecated void removeAssetNode(java.lang.String assetNodePath, Session session)
com.day.cq.dam.commons.util.DamUtil#removeAssetForBinary(String, Session)
instead.assetNodePath
- The path of the asset to remove.session
- The JCR session to work with.@Deprecated Asset createAssetStructure(java.lang.String binaryPath, Session session, boolean doSave)
com.day.cq.dam.commons.util.DamUtil#createAssetForBinary(String, ResourceResolver, Boolean)
instead./var/dam
prefix will be
replaced by /content/dam
binaryPath
- path where the binary is put for upload (/var/dam/...)session
- jcr session useddoSave
- true
for immediate savesAsset
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"