Class TenantServices


  • @Singleton
    @Path("tenants")
    public class TenantServices
    extends step.core.deployment.AbstractServices
    • Constructor Detail

      • TenantServices

        public TenantServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class step.core.deployment.AbstractServices
        Throws:
        java.lang.Exception
      • getAllAvailableTenants

        @GET
        @Path("/")
        @Consumes("application/json")
        @Produces("application/json")
        public java.util.List<Tenant> getAllAvailableTenants()
      • selectTenant

        @POST
        @Consumes("application/json")
        @Path("/current")
        public void selectTenant​(java.lang.String tenantName)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getCurrentTenant

        @GET
        @Consumes("application/json")
        @Produces("application/json")
        @Path("/current")
        public Tenant getCurrentTenant()
      • saveProject

        @POST
        @Path("/project")
        @Consumes("application/json")
        @Produces("application/json")
        public Project saveProject​(Project project)
      • updateProject

        @POST
        @Path("/project/{id}")
        @Consumes("application/json")
        @Produces("application/json")
        public Project updateProject​(@PathParam("id")
                                     java.lang.String id,
                                     Project project)
      • getProject

        @GET
        @Path("/project/{id}")
        @Consumes("application/json")
        @Produces("application/json")
        public Project getProject​(@PathParam("id")
                                  java.lang.String id)
      • deleteProject

        @DELETE
        @Path("/project/{id}")
        @Consumes("application/json")
        @Produces("application/json")
        public void deleteProject​(@PathParam("id")
                                  java.lang.String id,
                                  Project project)
      • getAllProjects

        @GET
        @Path("/projects")
        @Consumes("application/json")
        @Produces("application/json")
        public java.util.List<Project> getAllProjects()
      • searchProjectByAttributes

        @POST
        @Path("/project/search")
        @Consumes("application/json")
        @Produces("application/json")
        public Project searchProjectByAttributes​(java.util.Map<java.lang.String,​java.lang.String> attributes)
      • readProject

        @GET
        @Path("/project")
        @Consumes("application/json")
        @Produces("application/json")
        public Project readProject​(Project project)
      • getProjectMembers

        @GET
        @Path("/project/{id}/members")
        @Consumes("application/json")
        @Produces("application/json")
        public java.util.List<TenantServices.ProjectMemberResponse> getProjectMembers​(@PathParam("id")
                                                                                      java.lang.String projectId)
      • addMemberToProject

        @POST
        @Path("/project/{id}/members/{userid}")
        @Consumes("application/json")
        public void addMemberToProject​(@PathParam("id")
                                       java.lang.String projectId,
                                       @PathParam("userid")
                                       java.lang.String userid,
                                       java.lang.String roleInProject)
      • removeMemberFromProject

        @DELETE
        @Path("/project/{id}/members/{userid}")
        @Consumes("application/json")
        @Produces("application/json")
        public void removeMemberFromProject​(@PathParam("id")
                                            java.lang.String projectId,
                                            @PathParam("userid")
                                            java.lang.String userid)