Files
alfresco-community-repo/source/java/org/alfresco/service/cmr/rendition/RenditionDefinition.java
Raluca Munteanu 8674e2bfc8 Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2)
      125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-04-26 12:48:49 +00:00

87 lines
3.0 KiB
Java

package org.alfresco.service.cmr.rendition;
import java.io.Serializable;
import org.alfresco.api.AlfrescoPublicApi;
import org.alfresco.service.cmr.action.Action;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName;
/**
* This class is used to fully specify a type of rendition. It specifies which
* rendering engine will be used as well as the parameters that will be given to
* that engine.
* <P/>
* Every RenditionDefinition has a <code>renditionName</code> attribute which
* uniquely identifies it.
*
* @author Nick Smith
* @author Neil McErlean
*/
@AlfrescoPublicApi
public interface RenditionDefinition extends Action, Serializable
{
/**
* @return the name which uniquely identifies this rendition definition.
*/
QName getRenditionName();
/**
* Returns the node to which the rendition is linked when it is first
* created. Typically this location is only temporary temporary as the
* rendition will be moved to a different location by the
* {@link RenditionService} shortly after its creation.
*
* @return the renditionParent
*/
NodeRef getRenditionParent();
/**
* Sets the node to which the rendition is linked when it is first created.
* Typically this location is only temporary temporary as the rendition will
* be moved to a different location by the {@link RenditionService} shortly
* after its creation.
*
* @param renditionParent the renditionParent to set
*/
void setRenditionParent(NodeRef renditionParent);
/**
* Returns the association type used to link the rendition to its parent
* node after it has been newly created. Typically this association is only
* temporary as the rendition will be moved to a different location by the
* {@link RenditionService} shortly after its creation.
*
* @return the renditionAssociationType
*/
QName getRenditionAssociationType();
/**
* Sets the association type used to link the rendition to its parent node
* after it has been newly created. Typically this association is only
* temporary as the rendition will be moved to a different location by the
* {@link RenditionService} shortly after its creation.
*
* @param renditionAssociationType the renditionAssociationType to set
*/
void setRenditionAssociationType(QName renditionAssociationType);
/**
* This method sets a callback object for use in asynchronous renditions. It is
* this object that will be notified of the successful or unsuccessful completion
* of these renditions.
*
* @param callback a callback object, which may be null.
*/
void setCallback(RenderCallback callback);
/**
* This method gets the registered callback object for use with asynchronous
* renditions.
*
* @return the callback object
*/
RenderCallback getCallback();
}