|
Oracle Content Services Java API Reference Release 1 10.1.2 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Session management interface.
| Method Summary | |
long |
beginTransaction()
Begins a transaction on this session. |
void |
commitTransaction(long id)
Commits a transaction started by calling beginTransaction(). |
Item |
getCurrentUser(AttributeRequest[] attributes)
Returns the user as an Item for the current session. |
NamedValue[] |
getSessionProperties(java.lang.String[] properties)
Returns the requested session properties. |
void |
keepAlive()
Keeps a long running transaction that spans multiple requests alive. |
void |
rollbackTransaction(long id)
Rolls back a transaction started by calling beginTransaction()
. |
Item |
setSessionMode(int mode,
AttributeRequest[] attributes)
Switches the current session into one of the administration modes (currently only DOMAIN) or out of administration mode (NORMAL). |
| Method Detail |
public Item getCurrentUser(AttributeRequest[] attributes)
throws FdkException
attributes - Optional attributes to return. Can be null.
FdkException
public NamedValue[] getSessionProperties(java.lang.String[] properties)
throws FdkException
WebServicesConstants. Examples are
LOGIN_USER, SESSION_TIMEOUT, TRANSACTION_TIMEOUT. This
method only works for Web Services clients as it requires the proper
context. In-process clients have other means of getting the same values.
FdkException
public void keepAlive()
throws FdkException
FdkException
public long beginTransaction()
throws FdkException
commitTransaction() or it can be rolled back by
calling rollbackTransaction() on this session.
This method returns a transaction ID required to later reference this specific transaction.
Transactions can be nested but they need to be committed or rolled back in the proper order, most recent transaction first (stack model).
FdkException
public void commitTransaction(long id)
throws FdkException
beginTransaction().
id - The ID of the transaction (returned by
beginTransaction()).
FdkException
public void rollbackTransaction(long id)
throws FdkException
beginTransaction()
.
If the ID of the transaction is less than or equal to 0, then the entire transaction stack will be rolled back at once.
id - The ID of the transaction (returned by
beginTransaction()). If the ID is less than or
equal to 0, then the entire transaction stack will be rolled
back at once.
FdkException
public Item setSessionMode(int mode,
AttributeRequest[] attributes)
throws FdkException
mode - The mode to set, defined by one of the constants
FdkConstants.SESSION_MODE_attributes - Optional attributes that can be returned for the user
item.
FdkException
|
Oracle Content Services Java API Reference Release 1 10.1.2 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||