All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.aem.formsndocuments.publish.PublishService Maven / Gradle / Ivy

/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2014 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/
package com.adobe.aem.formsndocuments.publish;

import java.util.List;
import java.util.Set;

import javax.jcr.Session;

import org.apache.sling.api.resource.ResourceResolver;

import com.adobe.aem.formsndocuments.transferobjects.AssetInfo;
import com.adobe.aemforms.fm.exception.FormsMgrException;

/**
 * Exposes publish related operations.
 *
 */
public interface PublishService {

	/**
	 * Publish the list of assets.
     * @param session jcr session object
	 * @param assetPaths list of asset paths's to be published.
	 * @throws FormsManagerException
	 */
	public void publish(Session session, List assetPaths) throws FormsMgrException;
	
    /**
     * Deactivates the list of assets.
     * @param session jcr session object
     * @param assetPaths list of asset paths's to be deactivated.
     * @throws FormsManagerException
     */
	public void deactivate(Session session, List assetPaths) throws FormsMgrException;
	
	/**
	 * Fetch the list of related assets to be published.
	 * @param resolver resource resolver
     * @param session jcr session object
	 * @param path path of the asset for which list is required to be retrieved.
	 * @return
	 * @throws FormsMgrException
	 */
	public Set getRelatedAssetsToPublish(ResourceResolver resolver, String path) throws FormsMgrException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy