public class RenditionDefinitionPersisterImpl extends Object implements RenditionDefinitionPersister
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.Modifier and Type | Field and Description |
---|---|
protected static org.alfresco.service.cmr.repository.NodeRef |
RENDERING_ACTION_ROOT_NODE_REF |
Constructor and Description |
---|
RenditionDefinitionPersisterImpl() |
Modifier and Type | Method and Description |
---|---|
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. |
List<RenditionDefinition> |
loadRenditionDefinitions()
This method retrieves the
RenditionDefinition s that have been
stored in the repository using the save() method. |
List<RenditionDefinition> |
loadRenditionDefinitions(String renditionEngineName)
This method retrieves the stored
RenditionDefinition s 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.
|
protected static final org.alfresco.service.cmr.repository.NodeRef RENDERING_ACTION_ROOT_NODE_REF
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the NodeService.public void setRuntimeActionService(RuntimeActionService runtimeActionService)
runtimeActionService
- the RuntimeActionService.public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public List<RenditionDefinition> loadRenditionDefinitions()
RenditionDefinitionPersister
RenditionDefinition
s that have been
stored in the repository using the save()
method.
If there are no such RenditionDefinition
s, an empty list is
returned.loadRenditionDefinitions
in interface RenditionDefinitionPersister
RenditionDefinition
s.public List<RenditionDefinition> loadRenditionDefinitions(String renditionEngineName)
RenditionDefinitionPersister
RenditionDefinition
s that have
been registered for the specified rendering engine name.
If there are no such rendering RenditionDefinition
s, an empty
list is returned.loadRenditionDefinitions
in interface RenditionDefinitionPersister
renditionEngineName
- the name of a rendering engine. This is
usually the spring bean name.RenditionDefinition
s.RenditionDefinitionPersister.saveRenditionDefinition(RenditionDefinition)
public RenditionDefinition loadRenditionDefinition(org.alfresco.service.namespace.QName renditionDefinitionName)
RenditionDefinitionPersister
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.loadRenditionDefinition
in interface RenditionDefinitionPersister
renditionDefinitionName
- The unique identifier used to specify the
RenditionDefinition
to retrieve.RenditionDefinition
or null.public void saveRenditionDefinition(RenditionDefinition renderingAction)
RenditionDefinitionPersister
RenditionDefinition
and stores it in
the repository. RenditionDefinition
s saved in this way may be
retrieved using the load()
method.saveRenditionDefinition
in interface RenditionDefinitionPersister
renderingAction
- The RenditionDefinition
to be
persisted.public void deleteRenditionDefinition(RenditionDefinition renderingAction)
Copyright © 2005–2017 Alfresco Software. All rights reserved.