Class 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.
    • Constructor Detail

      • WorkspaceNameResolver

        public WorkspaceNameResolver()
      • WorkspaceNameResolver

        @Inject
        public WorkspaceNameResolver​(javax.enterprise.inject.spi.BeanManager beanManager)
    • 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()