Class AbstractUserWorkspaceImpl.UnrestrictedUserWorkspaceFinder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.userworkspace.core.service.AbstractUserWorkspaceImpl.UnrestrictedUserWorkspaceFinder
-
- Enclosing class:
- AbstractUserWorkspaceImpl
protected class AbstractUserWorkspaceImpl.UnrestrictedUserWorkspaceFinder extends UnrestrictedSessionRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected String
userName
protected DocumentModel
userWorkspace
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnrestrictedUserWorkspaceFinder(String userName, DocumentModel context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
getDetachedUserWorkspace()
void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
-
-
-
Field Detail
-
userWorkspace
protected DocumentModel userWorkspace
-
userName
protected String userName
-
-
Constructor Detail
-
UnrestrictedUserWorkspaceFinder
protected UnrestrictedUserWorkspaceFinder(String userName, DocumentModel context)
-
-
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
-
getDetachedUserWorkspace
public DocumentModel getDetachedUserWorkspace()
-
-