
com.day.cq.dam.core.AbstractAssetProcess Maven / Gradle / Ivy
/*
* Copyright 1997-2010 Day Management AG
* Barfuesserplatz 6, 4001 Basel, Switzerland
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Day Management AG, ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Day.
*/
package com.day.cq.dam.core;
import com.day.cq.dam.api.DamConstants;
import javax.jcr.RepositoryException;
import javax.jcr.Node;
/**
* @deprecated Use {@link com.day.cq.dam.commons.process.AbstractAssetProcess} instead
*/
//TODO: remove for CQ 5.5
public abstract class AbstractAssetProcess extends com.day.cq.dam.commons.process.AbstractAssetProcess {
/**
* Resolves the to the true asset node (dam:Asset
)
*
* @param node node to resolve
* @return asset node
*
* @deprecated Use {@link com.day.cq.dam.commons.util.DamUtil#resolveToAsset(org.apache.sling.api.resource.Resource)} instead
*/
protected Node resolveToAsset(Node node) throws RepositoryException {
if (node.isNodeType(DamConstants.NT_DAM_ASSET)) {
return node;
} else {
return resolveToAsset(node.getParent());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy