|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.rendition.RenditionDefinitionPersisterImpl
public class RenditionDefinitionPersisterImpl
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.
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 RenditionDefinition s that have been
stored in the repository using the save() method. |
java.util.List |
loadRenditionDefinitions(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.alfresco.service.cmr.repository.NodeRef RENDERING_ACTION_ROOT_NODE_REF
Constructor Detail |
---|
public RenditionDefinitionPersisterImpl()
Method Detail |
---|
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 java.util.List 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 java.util.List loadRenditionDefinitions(java.lang.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |