Class AbstractProcessSession
- java.lang.Object
-
- org.silverpeas.core.process.session.AbstractProcessSession
-
- All Implemented Interfaces:
ProcessSession
- Direct Known Subclasses:
DefaultProcessSession
public abstract class AbstractProcessSession extends Object implements ProcessSession
The abstract root implementation ofSession
interface. All methods of the interface are implemented.- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractProcessSession()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
buildSessionId
protected String buildSessionId()
Builds an unique identifier.- Returns:
- a string that represents an unique identifier.
-
getId
public String getId()
- Specified by:
getId
in interfaceProcessSession
- Returns:
- the sessionId
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttribute
in interfaceProcessSession
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interfaceProcessSession
-
getAttribute
public <C> C getAttribute(String name, Class<C> expectedReturnedClass)
- Specified by:
getAttribute
in interfaceProcessSession
-
-