public static class DocumentModelStatusPersister.StatusFetcher extends DocumentStoreSessionRunner
Modifier and Type | Field and Description |
---|---|
protected List<String> |
allInstanceIds |
protected String |
instanceId |
protected String |
serviceId |
protected List<AdministrativeStatus> |
statuses |
repositoryName
isUnrestricted, originatingUsername, session, sessionIsAlreadyUnrestricted
Constructor and Description |
---|
StatusFetcher(String instanceId,
String serviceId) |
Modifier and Type | Method and Description |
---|---|
protected String |
errorMessage() |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with UnrestrictedSessionRunner.session available as an unrestricted
session. |
protected AdministrativeStatus |
wrap(DocumentModel doc) |
runSafe, setRepositoryName
getOriginatingUsername, isUnrestricted, runUnrestricted, setOriginatingUsername
protected final String instanceId
protected final List<String> allInstanceIds
protected final List<AdministrativeStatus> statuses
public StatusFetcher(String instanceId, String serviceId)
protected String errorMessage()
errorMessage
in class DocumentStoreSessionRunner
public void run()
UnrestrictedSessionRunner
UnrestrictedSessionRunner.runUnrestricted()
with UnrestrictedSessionRunner.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)
.
run
in class UnrestrictedSessionRunner
protected AdministrativeStatus wrap(DocumentModel doc)
Copyright © 2016 Nuxeo SA. All rights reserved.