Package org.nuxeo.ecm.platform.relations
Class CoreGraph.StatementAdder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.relations.CoreGraph.StatementAdder
-
- Enclosing class:
- CoreGraph
protected class CoreGraph.StatementAdder extends UnrestrictedSessionRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected Date
now
protected List<Statement>
statements
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StatementAdder(List<Statement> statements)
protected
StatementAdder(List<Statement> statements, CoreSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(Statement statement)
void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.protected DocumentModel
setRelationProperties(DocumentModel rel, Statement statement)
-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
-
-
-
Constructor Detail
-
StatementAdder
protected StatementAdder(List<Statement> statements, CoreSession session)
-
-
Method Detail
-
run
public void run()
Description copied from class:UnrestrictedSessionRunner
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.session
available will be the one passed to#UnrestrictedSessionRunner(CoreSession)
.- Specified by:
run
in classUnrestrictedSessionRunner
-
add
protected void add(Statement statement)
-
setRelationProperties
protected DocumentModel setRelationProperties(DocumentModel rel, Statement statement)
-
-