|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectIdentificationService
Interface to the service that identifies the currently selected project. Since projects are selected a per-thread basis, this service is independent of request and response.
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
JNDI name of this service |
Method Summary | |
---|---|
PocServerContext |
createServerContext(ObjectID aProjectID,
PocServerContext aContext)
Generates a ServerContext that represents the specified project. |
ServerContext |
createServerContext(ObjectID aProjectID,
ServerContext aContext)
Generates a ServerContext that represents the specified project. |
ObjectID |
getProjectID()
Returns the ObjectID of the currently selected project |
java.lang.String |
getProjectUUID()
Returns the UUID of the currently selected project |
Field Detail |
---|
static final java.lang.String JNDI_NAME
Method Detail |
---|
PocServerContext createServerContext(ObjectID aProjectID, PocServerContext aContext) throws SerializationException
ServerContext
that represents the specified project.
This context can be used to create URLs in project scope. If the input
server context already contains a project ID, it will be replaced by the
new project ID (to support project switching). If the selected project ID
is null
the project identifier will be removed from the
context.
aProjectID
- the project identifier, may be null
aContext
- the base server context, not null
SerializationException
- if the project ID could not be serialized into the contextPocService.getServerContext()
ServerContext createServerContext(ObjectID aProjectID, ServerContext aContext) throws SerializationException
ServerContext
that represents the specified project.
This context can be used to create URLs in project scope. If the input
server context already contains a project ID, it will be replaced by the
new project ID (to support project switching). If the selected project ID
is null
the project identifier will be removed from the
context.
aProjectID
- the project identifier, may be null
aContext
- the base server context, not null
SerializationException
- if the project ID could not be serialized into the contextStateManagerService.getServerContext()
ObjectID getProjectID()
ObjectID
of the currently selected project
getProjectID
in interface com.ibm.portal.project.ProjectContext
null
java.lang.String getProjectUUID()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |