Class WorkspaceNameResolver
- java.lang.Object
-
- org.uberfire.backend.server.cdi.workspace.WorkspaceNameResolver
-
@ApplicationScoped public class WorkspaceNameResolver extends Object
Resolves Workspace name. At this moment the workspace name is based on usernames, so exists a workspace per user. If there is no user session found the workspace name is called "global". This situation could happen during some Server Side executions.
-
-
Field Summary
Fields Modifier and Type Field Description static StringGLOBAL_WORKSPACE_NAME
-
Constructor Summary
Constructors Constructor Description WorkspaceNameResolver()WorkspaceNameResolver(javax.enterprise.inject.spi.BeanManager beanManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.uberfire.rpc.SessionInfogetSessionInfo()StringgetWorkspaceName()Resolves the workspace name based on the user session.
-
-
-
Field Detail
-
GLOBAL_WORKSPACE_NAME
public static final String GLOBAL_WORKSPACE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWorkspaceName
public String getWorkspaceName()
Resolves the workspace name based on the user session. If not session detected returns "global".- Returns:
- the workspace name or "global".
-
getSessionInfo
protected org.uberfire.rpc.SessionInfo getSessionInfo()
-
-