org.alfresco.repo.rendition
Class RenditionDefinitionPersisterImpl

java.lang.Object
  extended by org.alfresco.repo.rendition.RenditionDefinitionPersisterImpl
All Implemented Interfaces:
RenditionDefinitionPersister

public class RenditionDefinitionPersisterImpl
extends java.lang.Object
implements RenditionDefinitionPersister

This class provides the implementation of RenditionDefinition persistence.

N.B. Rendition definitions are stored within the Data Dictionary in the Alfresco Repository & therefore calls to load or save definitions will be subject to the normal authorisation checks for those nodes. In particular this means that if the Data Dictionary has been given restricted access control (it is Consumer for Group ALL by default), it may not be possible for normal users to load rendition definitions.

Since:
3.3

Field Summary
protected static org.alfresco.service.cmr.repository.NodeRef RENDERING_ACTION_ROOT_NODE_REF
           
 
Constructor Summary
RenditionDefinitionPersisterImpl()
           
 
Method Summary
 void deleteRenditionDefinition(RenditionDefinition renderingAction)
           
 RenditionDefinition loadRenditionDefinition(org.alfresco.service.namespace.QName renditionDefinitionName)
          This method retrieves a RenditionDefinition that has been stored in the repository using the save() method.
 java.util.List loadRenditionDefinitions()
          This method retrieves the RenditionDefinitions that have been stored in the repository using the save() method.
 java.util.List loadRenditionDefinitions(java.lang.String renditionEngineName)
          This method retrieves the stored RenditionDefinitions that have been registered for the specified rendering engine name.
 void saveRenditionDefinition(RenditionDefinition renderingAction)
          This method serializes the RenditionDefinition and stores it in the repository.
 void setBehaviourFilter(BehaviourFilter behaviourFilter)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Injects the NodeService bean.
 void setRuntimeActionService(RuntimeActionService runtimeActionService)
          Injects the RuntimeActionService bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RENDERING_ACTION_ROOT_NODE_REF

protected static final org.alfresco.service.cmr.repository.NodeRef RENDERING_ACTION_ROOT_NODE_REF
Constructor Detail

RenditionDefinitionPersisterImpl

public RenditionDefinitionPersisterImpl()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Injects the NodeService bean.

Parameters:
nodeService - the NodeService.

setRuntimeActionService

public void setRuntimeActionService(RuntimeActionService runtimeActionService)
Injects the RuntimeActionService bean.

Parameters:
runtimeActionService - the RuntimeActionService.

setBehaviourFilter

public void setBehaviourFilter(BehaviourFilter behaviourFilter)

loadRenditionDefinitions

public java.util.List loadRenditionDefinitions()
Description copied from interface: RenditionDefinitionPersister
This method retrieves the RenditionDefinitions that have been stored in the repository using the save() method.

If there are no such RenditionDefinitions, an empty list is returned.

Specified by:
loadRenditionDefinitions in interface RenditionDefinitionPersister
Returns:
The RenditionDefinitions.

loadRenditionDefinitions

public java.util.List loadRenditionDefinitions(java.lang.String renditionEngineName)
Description copied from interface: RenditionDefinitionPersister
This method retrieves the stored RenditionDefinitions that have been registered for the specified rendering engine name.

If there are no such rendering RenditionDefinitions, an empty list is returned.

Specified by:
loadRenditionDefinitions in interface RenditionDefinitionPersister
Parameters:
renditionEngineName - the name of a rendering engine. This is usually the spring bean name.
Returns:
The RenditionDefinitions.
See Also:
RenditionDefinitionPersister.saveRenditionDefinition(RenditionDefinition)

loadRenditionDefinition

public RenditionDefinition loadRenditionDefinition(org.alfresco.service.namespace.QName renditionDefinitionName)
Description copied from interface: RenditionDefinitionPersister
This method retrieves a RenditionDefinition that has been stored in the repository using the save() method. If no RenditionDefinition exists in the repository with the specified rendition name then this method returns null.

Specified by:
loadRenditionDefinition in interface RenditionDefinitionPersister
Parameters:
renditionDefinitionName - The unique identifier used to specify the RenditionDefinition to retrieve.
Returns:
The specified RenditionDefinition or null.

saveRenditionDefinition

public void saveRenditionDefinition(RenditionDefinition renderingAction)
Description copied from interface: RenditionDefinitionPersister
This method serializes the RenditionDefinition and stores it in the repository. RenditionDefinitions saved in this way may be retrieved using the load() method.

Specified by:
saveRenditionDefinition in interface RenditionDefinitionPersister
Parameters:
renderingAction - The RenditionDefinition to be persisted.

deleteRenditionDefinition

public void deleteRenditionDefinition(RenditionDefinition renderingAction)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.