|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.SessionInfoImpl
public class SessionInfoImpl
SessionInfoImpl
is a searializable bean based implementation of
SessionInfo
.
Constructor Summary | |
---|---|
SessionInfoImpl()
Default constructor |
Method Summary | |
---|---|
void |
addLockToken(String s)
Add the given lock token to this SessionInfo . |
String[] |
getLockTokens()
Returns the lock tokens present on this SessionInfo . |
String |
getUserID()
Returns the user id. |
String |
getWorkspaceName()
Returns the workspace name. |
void |
removeLockToken(String s)
Removes the given lock token from this SessionInfo . |
void |
setUserData(String userData)
Sets the user data used for Event.getUserData() . |
void |
setUserID(String userId)
Sets the userId. |
void |
setWorkspacename(String workspaceName)
Sets the name of the workspace to connect to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionInfoImpl()
Method Detail |
---|
public void setUserID(String userId)
userId
- the userId or null
if unknown.public void setWorkspacename(String workspaceName)
workspaceName
- the name of the workspace or null
if
this session info refers to the default workspace.public String getUserID()
getUserID
in interface SessionInfo
RepositoryService.obtain(javax.jcr.Credentials, String)
public String getWorkspaceName()
getWorkspaceName
in interface SessionInfo
workspace
this
SessionInfo has been built for.RepositoryService.obtain(javax.jcr.Credentials, String)
,
Workspace.getName()
public String[] getLockTokens()
SessionInfo
.
getLockTokens
in interface SessionInfo
SessionInfo
.public void addLockToken(String s)
SessionInfo
. The token will
enable the SessionInfo to operate on Items that are affected by the
lock identified by the given token.
addLockToken
in interface SessionInfo
s
- to be added.public void removeLockToken(String s)
SessionInfo
.
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 SessionInfo
s
- to be removed.public void setUserData(String userData) throws RepositoryException
Event.getUserData()
.
setUserData
in interface SessionInfo
RepositoryException
ObservationManager.setUserData(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |