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
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatementAdder(List<Statement> statements) protectedStatementAdder(List<Statement> statements, CoreSession session) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidrun()This method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.protected DocumentModelsetRelationProperties(DocumentModel rel, Statement statement) Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
Field Details
-
statements
-
now
-
-
Constructor Details
-
StatementAdder
-
StatementAdder
-
-
Method Details
-
run
public void run()Description copied from class:UnrestrictedSessionRunnerThis method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.sessionavailable will be the one passed to#UnrestrictedSessionRunner(CoreSession).- Specified by:
runin classUnrestrictedSessionRunner
-
add
-
setRelationProperties
-