|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
public abstract class UnrestrictedSessionRunner
Helper class to run code with an unrestricted session.
The caller must implement the run()
method, and call
runUnrestricted()
.
Field Summary | |
---|---|
boolean |
isUnrestricted
True if a call to runUnrestricted() is in progress. |
Method Summary | |
---|---|
String |
getOriginatingUsername()
|
abstract void |
run()
This method will be called by runUnrestricted() with
session available as an unrestricted session. |
void |
runUnrestricted()
Calls the run() method with an unrestricted session . |
void |
setOriginatingUsername(String originatingUsername)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isUnrestricted
runUnrestricted()
is in progress.
Method Detail |
---|
public String getOriginatingUsername()
public void setOriginatingUsername(String originatingUsername)
public void runUnrestricted() throws ClientException
run()
method with an unrestricted session
.
During this call, isUnrestricted
is set to true
.
ClientException
public abstract void run() throws ClientException
runUnrestricted()
with
session
available as an unrestricted session.
It can also be called directly in which case the session
available will be the one passed to
#UnrestrictedSessionRunner(CoreSession)
.
ClientException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |