public abstract class UnrestrictedSessionRunner extends Object
The caller must implement the run()
method, and call
runUnrestricted()
.
Modifier and Type | Field and Description |
---|---|
boolean |
isUnrestricted
True if a call to
runUnrestricted() is in progress. |
Modifier and Type | Method and Description |
---|---|
String |
getOriginatingUsername() |
abstract void |
run()
This method will be called by
runUnrestricted() with
session available as an unrestricted session. |
void |
runUnrestricted()
|
void |
setOriginatingUsername(String originatingUsername) |
public boolean isUnrestricted
runUnrestricted()
is in progress.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
Copyright © 2011 Nuxeo SA. All Rights Reserved.