|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.sword.SWORDContext
public class SWORDContext
This class holds information about authenticated users (both the depositing user and the on-behalf-of user), and their associated DSpace Context objects. Since this class will be used to make authentication requests on both user types, it may hold up to 2 active DSpace Context objects at any one time WARNING: failure to use the contexts used in this class in the appropriate way may result in exceptions or data loss. Unless you are performing authentication processes, you should always access the context under which to deposit content into the archive from: getContext() and not from any of the other context retrieval methods in this class
| Constructor Summary | |
|---|---|
SWORDContext()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SWORDContext()
| Method Detail |
|---|
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
DSpaceSWORDException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||