Esempio n. 1
0
 /** {@inheritDoc} */
 @Override
 @GET
 @Path("{" + PROJECT_ID + "}/virtual-clusters")
 public VirtualClusters listVirtualClusters(@PathParam(PROJECT_ID) Long projectId)
     throws VcmsObjectNotFoundException {
   return projectsApi.listVirtualClusters(projectId);
 }
Esempio n. 2
0
 /** {@inheritDoc} */
 @Override
 @DELETE
 @Path("{" + PROJECT_ID + "}/users/{" + USER_ID + "}")
 public void removeUser(@PathParam(PROJECT_ID) Long projectId, @PathParam(USER_ID) Long userId)
     throws VcmsObjectNotFoundException {
   projectsApi.removeUser(projectId, userId);
 }
Esempio n. 3
0
 /** {@inheritDoc} */
 @Override
 @POST
 @Path("{" + PROJECT_ID + "}/users")
 public User createUser(@PathParam(PROJECT_ID) Long projectId, User user)
     throws VcmsObjectNotFoundException, VcmsValidationException {
   return projectsApi.createUser(projectId, user);
 }
Esempio n. 4
0
 /** {@inheritDoc} */
 @Override
 @POST
 @Path("{" + PROJECT_ID + "}/virtual-clusters")
 public VirtualCluster createVirtualCluster(
     @PathParam(PROJECT_ID) Long projectId, VirtualCluster vc)
     throws VcmsDuplicatedEntityException, VcmsValidationException, VcmsObjectNotFoundException {
   return projectsApi.createVirtualCluster(projectId, vc);
 }
Esempio n. 5
0
 /** {@inheritDoc} */
 @Override
 @GET
 @Path("{" + PROJECT_ID + "}/users")
 public Users listUsers(@PathParam(PROJECT_ID) Long projectId) throws VcmsObjectNotFoundException {
   return projectsApi.listUsers(projectId);
 }
Esempio n. 6
0
 /** {@inheritDoc} */
 @Override
 @GET
 @Path("{" + PROJECT_ID + "}")
 public Project get(@PathParam(PROJECT_ID) Long projectId) throws VcmsObjectNotFoundException {
   return projectsApi.get(projectId);
 }
Esempio n. 7
0
 /** {@inheritDoc} */
 @Override
 @GET
 public Projects list() {
   return projectsApi.list();
 }