public class FilteringJcrPropertyStatementListener extends JcrPropertyStatementListener
Constructor and Description |
---|
FilteringJcrPropertyStatementListener(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator,
javax.jcr.Session session,
org.apache.jena.graph.Node topic)
Construct a statement listener within the given session that filters out changes to
any relaxed server managed triples.
|
Modifier and Type | Method and Description |
---|---|
void |
addedStatement(org.apache.jena.rdf.model.Statement input)
When a statement is added to the graph, serialize it to a JCR property
|
String |
getAddedCreatedBy()
Gets the created by user (if any) that was specified to be applied as part of the statements
made to the model to which this StatementListener is listening.
|
Calendar |
getAddedCreatedDate()
Gets the created date (if any) that was specified to be applied as part of the statements
made to the model to which this StatementListener is listening.
|
String |
getAddedModifiedBy()
Gets the modified by user (if any) that was specified to be applied as part of the statements
made to the model to which this StatementListener is listening.
|
Calendar |
getAddedModifiedDate()
Gets the modified date (if any) that was specified to be applied as part of the statements
made to the model to which this StatementListener is listening.
|
void |
removedStatement(org.apache.jena.rdf.model.Statement input)
When a statement is removed, remove it from the JCR properties
|
assertNoExceptions
public FilteringJcrPropertyStatementListener(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, javax.jcr.Session session, org.apache.jena.graph.Node topic)
idTranslator
- the id translatorsession
- the sessiontopic
- the topic of the RDF statementpublic void addedStatement(org.apache.jena.rdf.model.Statement input)
JcrPropertyStatementListener
addedStatement
in interface org.apache.jena.rdf.model.ModelChangedListener
addedStatement
in class JcrPropertyStatementListener
input
- the input statementpublic void removedStatement(org.apache.jena.rdf.model.Statement input)
JcrPropertyStatementListener
removedStatement
in interface org.apache.jena.rdf.model.ModelChangedListener
removedStatement
in class JcrPropertyStatementListener
input
- the given statementpublic Calendar getAddedCreatedDate()
public String getAddedCreatedBy()
public Calendar getAddedModifiedDate()
public String getAddedModifiedBy()
Copyright © 2013–2018 DuraSpace, Inc.. All rights reserved.