public class PublishRelationsListener extends Object implements EventListener
Modifier and Type | Field and Description |
---|---|
protected List<String> |
graphNamesForCopyFromReplacedProxy |
protected List<String> |
graphNamesForCopyFromWork |
static String |
RENDITION_PROXY_PUBLISHED |
protected RelationManager |
rmanager |
Constructor and Description |
---|
PublishRelationsListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyRelationsFromReplacedProxy(RelationManager rmanager,
Resource replacedResource,
Resource publishedResource,
Resource sourceResource) |
protected void |
copyRelationsFromWorkingCopy(RelationManager rmanager,
Resource sourceResource,
Resource publishedResource) |
List<String> |
getGraphNamesForCopyFromReplacedProxy() |
List<String> |
getGraphNamesForCopyFromWork() |
RelationManager |
getRelationManager() |
void |
handleEvent(Event event)
Handle the given event.
|
protected boolean |
isCopyFromSource(Statement stmt,
Resource sourceResource) |
public static final String RENDITION_PROXY_PUBLISHED
protected RelationManager rmanager
protected List<String> graphNamesForCopyFromWork
protected List<String> graphNamesForCopyFromReplacedProxy
public PublishRelationsListener()
public RelationManager getRelationManager()
public List<String> getGraphNamesForCopyFromWork()
public List<String> getGraphNamesForCopyFromReplacedProxy()
public void handleEvent(Event event)
EventListener
Event.cancel()
handleEvent
in interface EventListener
event
- the eventprotected void copyRelationsFromReplacedProxy(RelationManager rmanager, Resource replacedResource, Resource publishedResource, Resource sourceResource)
protected boolean isCopyFromSource(Statement stmt, Resource sourceResource)
protected void copyRelationsFromWorkingCopy(RelationManager rmanager, Resource sourceResource, Resource publishedResource)
Copyright © 2015 Nuxeo SA. All rights reserved.