Class RoleManagement


  • @Service
    public class RoleManagement
    extends Object
    • Method Detail

      • assignMemberRole

        public com.google.gson.JsonElement assignMemberRole​(String type,
                                                            String id,
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • assignManagerRole

        public com.google.gson.JsonElement assignManagerRole​(String type,
                                                             String id,
                                                             javax.servlet.http.HttpServletRequest request)
                                                      throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • removeMemberRole

        public com.google.gson.JsonElement removeMemberRole​(String type,
                                                            String id,
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • removeMemberRole

        public com.google.gson.JsonElement removeMemberRole​(String type,
                                                            String id,
                                                            String email)
                                                     throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • removeManagerRole

        public com.google.gson.JsonElement removeManagerRole​(String type,
                                                             String id,
                                                             javax.servlet.http.HttpServletRequest request)
                                                      throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • removeManagerRole

        public com.google.gson.JsonElement removeManagerRole​(String type,
                                                             String id,
                                                             String email)
                                                      throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • getAllMembers

        public com.google.gson.JsonElement getAllMembers​(String type,
                                                         String id)
                                                  throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • getAllMembersCount

        public int getAllMembersCount​(String type,
                                      String id)
                               throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • getAllManagers

        public com.google.gson.JsonElement getAllManagers​(String type,
                                                          String id)
                                                   throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • getAllCurators

        public com.google.gson.JsonElement getAllCurators​(String type)
                                                   throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • isMember

        public boolean isMember​(String type,
                                String id,
                                String email)
                         throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • isManager

        public boolean isManager​(String type,
                                 String id,
                                 String email)
                          throws org.springframework.web.client.HttpClientErrorException
        Throws:
        org.springframework.web.client.HttpClientErrorException
      • createMemberRole

        public com.google.gson.JsonElement createMemberRole​(String type,
                                                            String id)
      • createCuratorRole

        public com.google.gson.JsonElement createCuratorRole​(String type)
      • createRole

        public com.google.gson.JsonElement createRole​(String name,
                                                      String description)