org.silverpeas.process.session
Class AbstractProcessSession

java.lang.Object
  extended by org.silverpeas.process.session.AbstractProcessSession
All Implemented Interfaces:
ProcessSession
Direct Known Subclasses:
DefaultProcessSession

public abstract class AbstractProcessSession
extends Object
implements ProcessSession

The abstract root implementation of Session interface. All methods of the interface are implemented.

Author:
Yohann Chastagnier

Constructor Summary
protected AbstractProcessSession()
          Default constructor
 
Method Summary
protected  String buildSessionId()
          Builds an unique identifier
 Object getAttribute(String name)
           
<C> C
getAttribute(String name, Class<C> expectedReturnedClass)
           
 String getId()
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProcessSession

protected AbstractProcessSession()
Default constructor

Parameters:
userId -
userDetail -
componentInstanceId -
Method Detail

buildSessionId

protected String buildSessionId()
Builds an unique identifier

Returns:

getId

public String getId()
Specified by:
getId in interface ProcessSession
Returns:
the sessionId

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface ProcessSession

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface ProcessSession

getAttribute

public <C> C getAttribute(String name,
                          Class<C> expectedReturnedClass)
Specified by:
getAttribute in interface ProcessSession


Copyright © 2016 Silverpeas. All Rights Reserved.