org.apache.jackrabbit.spi.commons
Class SessionInfoImpl

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

public class SessionInfoImpl
extends Object
implements org.apache.jackrabbit.spi.SessionInfo, Serializable

SessionInfoImpl is a serializable bean based implementation of SessionInfo.

See Also:
Serialized Form

Constructor Summary
SessionInfoImpl()
          Default constructor
 
Method Summary
 void addLockToken(String s)
          
 String[] getLockTokens()
          
 String getUserData()
          Return the user data set via setUserData(String)
 String getUserID()
          
 String getWorkspaceName()
          
 void removeLockToken(String s)
          
 void setUserData(String userData)
          
 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 org.apache.jackrabbit.spi.SessionInfo

getWorkspaceName

public String getWorkspaceName()

Specified by:
getWorkspaceName in interface org.apache.jackrabbit.spi.SessionInfo

getLockTokens

public String[] getLockTokens()

Specified by:
getLockTokens in interface org.apache.jackrabbit.spi.SessionInfo

addLockToken

public void addLockToken(String s)

Specified by:
addLockToken in interface org.apache.jackrabbit.spi.SessionInfo

removeLockToken

public void removeLockToken(String s)

Specified by:
removeLockToken in interface org.apache.jackrabbit.spi.SessionInfo

setUserData

public void setUserData(String userData)
                 throws RepositoryException

Specified by:
setUserData in interface org.apache.jackrabbit.spi.SessionInfo
Throws:
RepositoryException

getUserData

public String getUserData()
Return the user data set via setUserData(String)

Returns:
userData


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