org.apache.jackrabbit.spi.commons
Class SessionInfoImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.SessionInfoImpl
All Implemented Interfaces:
Serializable, SessionInfo

public class SessionInfoImpl
extends Object
implements SessionInfo, Serializable

SessionInfoImpl is a searializable bean based implementation of SessionInfo.

See Also:
Serialized Form

Constructor Summary
SessionInfoImpl()
          Default constructor
 
Method Summary
 void addLockToken(String s)
          
 String[] getLockTokens()
          
 String getUserID()
          
 String getWorkspaceName()
          
 void removeLockToken(String s)
          
 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

SessionInfoImpl

public SessionInfoImpl()
Default constructor

Method Detail

setUserID

public void setUserID(String userId)
Sets the userId.

Parameters:
userId - the userId or null if unknown.

setWorkspacename

public void setWorkspacename(String workspaceName)
Sets the name of the workspace to connect to.

Parameters:
workspaceName - the name of the workspace or null if this session info refers to the default workspace.

getUserID

public String getUserID()

Specified by:
getUserID in interface SessionInfo

getWorkspaceName

public String getWorkspaceName()

Specified by:
getWorkspaceName in interface SessionInfo

getLockTokens

public String[] getLockTokens()

Specified by:
getLockTokens in interface SessionInfo

addLockToken

public void addLockToken(String s)

Specified by:
addLockToken in interface SessionInfo

removeLockToken

public void removeLockToken(String s)

Specified by:
removeLockToken in interface SessionInfo


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.