Class MultitenancyManager


  • public class MultitenancyManager
    extends Object
    • Constructor Detail

      • MultitenancyManager

        public MultitenancyManager​(step.core.access.UserAccessor userAccessor,
                                   ProjectAccessor projectAccessor,
                                   step.framework.server.access.AuthorizationManager authorizationManager)
    • Method Detail

      • accessAllProjects

        public boolean accessAllProjects​(step.core.access.User user)
      • viewAllProjects

        public boolean viewAllProjects​(step.core.access.User user)
      • getTenantsInSession

        public List<Tenant> getTenantsInSession​(step.framework.server.Session<step.core.access.User> session)
      • getAllAvailableTenants

        public List<Tenant> getAllAvailableTenants()
      • selectDefaultTenantIfNoTenantIsSelected

        public void selectDefaultTenantIfNoTenantIsSelected​(@NotNull
                                                            @NotNull step.framework.server.Session<step.core.access.User> session)
      • selectTenant

        public void selectTenant​(@NotNull
                                 @NotNull step.framework.server.Session<step.core.access.User> session,
                                 String tenantName)
                          throws Exception
        Throws:
        Exception
      • getCurrentTenant

        public Tenant getCurrentTenant​(step.core.AbstractContext session)
      • getObjectHook

        public step.core.objectenricher.ObjectHook getObjectHook()
      • importHookFactory

        public BiConsumer<Object,​step.core.imports.ImportContext> importHookFactory()
      • addMemberToProject

        public void addMemberToProject​(String projectId,
                                       String userid,
                                       String roleInProject)
      • getOQLFilterForTenant

        protected String getOQLFilterForTenant​(step.controller.multitenancy.TenantContext tenantContext)
      • getGlobalProjects

        protected List<Project> getGlobalProjects()
      • removeMemberFromProject

        public void removeMemberFromProject​(String id,
                                            String userid)