|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.logging.AbstractLogger
org.apache.jackrabbit.spi.commons.logging.SessionInfoLogger
public class SessionInfoLogger
Log wrapper for a SessionInfo.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger |
|---|
AbstractLogger.Callable, AbstractLogger.SafeCallable |
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger |
|---|
writer |
| Constructor Summary | |
|---|---|
SessionInfoLogger(SessionInfo sessionInfo,
LogWriter writer)
Create a new instance for the given sessionInfo which uses
writer for persisting log messages. |
|
| Method Summary | |
|---|---|
void |
addLockToken(String lockToken)
Add the given lock token to this SessionInfo. |
String[] |
getLockTokens()
Returns the lock tokens present on this SessionInfo. |
SessionInfo |
getSessionInfo()
|
String |
getUserID()
Returns the user id. |
String |
getWorkspaceName()
Returns the workspace name. |
void |
removeLockToken(String lockToken)
Removes the given lock token from this SessionInfo. |
void |
setUserData(String userData)
Sets the user data used for Event.getUserData(). |
| Methods inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger |
|---|
execute, execute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionInfoLogger(SessionInfo sessionInfo,
LogWriter writer)
sessionInfo which uses
writer for persisting log messages.
sessionInfo - writer - | Method Detail |
|---|
public SessionInfo getSessionInfo()
public String getUserID()
SessionInfo
getUserID in interface SessionInfoRepositoryService.obtain(javax.jcr.Credentials, String)public String getWorkspaceName()
SessionInfo
getWorkspaceName in interface SessionInfoworkspace this
SessionInfo has been built for.RepositoryService.obtain(javax.jcr.Credentials, String),
Workspace.getName()
public String[] getLockTokens()
throws RepositoryException
SessionInfoSessionInfo.
getLockTokens in interface SessionInfoSessionInfo.
UnsupportedRepositoryOperationException - If locking is not supported.
RepositoryException - If another error occurs.
public void addLockToken(String lockToken)
throws RepositoryException
SessionInfoSessionInfo. The token will
enable the SessionInfo to operate on Items that are affected by the
lock identified by the given token.
addLockToken in interface SessionInfolockToken - to be added.
UnsupportedRepositoryOperationException - If locking is not supported.
LockException - If the token cannot be added.
RepositoryException - If another error occurs.
public void removeLockToken(String lockToken)
throws RepositoryException
SessionInfoSessionInfo.
This must happen if the associated Session successfully removes the Lock
from a Node or if the token is removed from the Session itself by calling
Session.removeLockToken(String). Consequently all
RepositoryService operations affected by a lock will fail
with LockException provided the lock hasn't been released.
removeLockToken in interface SessionInfolockToken - to be removed.
UnsupportedRepositoryOperationException - If locking is not supported.
LockException - If the token cannot be removed.
RepositoryException - If another error occurs.
public void setUserData(String userData)
throws RepositoryException
SessionInfoEvent.getUserData().
setUserData in interface SessionInfoRepositoryExceptionObservationManager.setUserData(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||