Class DocumentModelStatusPersister.StatusFetcher
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.core.management.storage.DocumentStoreSessionRunner
-
- org.nuxeo.ecm.core.management.storage.DocumentModelStatusPersister.StatusFetcher
-
- Enclosing class:
- DocumentModelStatusPersister
public static class DocumentModelStatusPersister.StatusFetcher extends DocumentStoreSessionRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>allInstanceIdsprotected StringinstanceIdprotected StringserviceIdprotected List<AdministrativeStatus>statuses-
Fields inherited from class org.nuxeo.ecm.core.management.storage.DocumentStoreSessionRunner
repositoryName
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description StatusFetcher(String instanceId, String serviceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringerrorMessage()voidrun()This method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.protected AdministrativeStatuswrap(DocumentModel doc)-
Methods inherited from class org.nuxeo.ecm.core.management.storage.DocumentStoreSessionRunner
runSafe, setRepositoryName
-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
-
-
-
Method Detail
-
errorMessage
protected String errorMessage()
- Overrides:
errorMessagein classDocumentStoreSessionRunner
-
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
-
wrap
protected AdministrativeStatus wrap(DocumentModel doc)
-
-