public class SwordContext extends Object
| Constructor and Description |
|---|
SwordContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort all of the contexts held by this class.
|
void |
commit()
Commit the primary context held by this class, and abort the authenticated
user's context if it is different.
|
EPerson |
getAuthenticated() |
Context |
getAuthenticatorContext()
Get the context of the user who authenticated.
|
Context |
getContext()
Returns the most appropriate context for operations on the
database.
|
EPerson |
getOnBehalfOf() |
Context |
getOnBehalfOfContext()
Get the context of the on-behalf-of user.
|
void |
setAuthenticated(EPerson authenticated) |
void |
setAuthenticatorContext(Context authenticatorContext) |
void |
setContext(Context context) |
void |
setOnBehalfOf(EPerson onBehalfOf) |
public EPerson getAuthenticated()
public void setAuthenticated(EPerson authenticated)
authenticated - the eperson to setpublic EPerson getOnBehalfOf()
public void setOnBehalfOf(EPerson onBehalfOf)
onBehalfOf - the eperson to setpublic Context getContext()
public void setContext(Context context)
public Context getAuthenticatorContext()
public void setAuthenticatorContext(Context authenticatorContext)
public Context getOnBehalfOfContext()
public void abort()
public void commit()
throws DSpaceSwordException
DSpaceSwordExceptionCopyright © 2013 DuraSpace. All Rights Reserved.