@Service public class RoleManagement extends Object
| Modifier and Type | Field and Description |
|---|---|
AuthorizationService |
authorizationService |
HttpUtils |
httpUtils |
| Constructor and Description |
|---|
RoleManagement(HttpUtils httpUtils,
AuthorizationService authorizationService) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
assignManagerRole(String type,
String id,
javax.servlet.http.HttpServletRequest request) |
com.google.gson.JsonElement |
assignMemberRole(String type,
String id,
javax.servlet.http.HttpServletRequest request) |
com.google.gson.JsonElement |
createCuratorRole(String type) |
com.google.gson.JsonElement |
createMemberRole(String type,
String id) |
com.google.gson.JsonElement |
createRole(String name,
String description) |
com.google.gson.JsonElement |
getAllCurators(String type) |
com.google.gson.JsonElement |
getAllManagers(String type,
String id) |
com.google.gson.JsonElement |
getAllMembers(String type,
String id) |
int |
getAllMembersCount(String type,
String id) |
boolean |
isManager(String type,
String id,
String email) |
boolean |
isMember(String type,
String id,
String email) |
com.google.gson.JsonElement |
removeManagerRole(String type,
String id,
javax.servlet.http.HttpServletRequest request) |
com.google.gson.JsonElement |
removeManagerRole(String type,
String id,
String email) |
com.google.gson.JsonElement |
removeMemberRole(String type,
String id,
javax.servlet.http.HttpServletRequest request) |
com.google.gson.JsonElement |
removeMemberRole(String type,
String id,
String email) |
public HttpUtils httpUtils
public AuthorizationService authorizationService
@Autowired public RoleManagement(HttpUtils httpUtils, AuthorizationService authorizationService)
public com.google.gson.JsonElement assignMemberRole(String type, String id, javax.servlet.http.HttpServletRequest request) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement assignManagerRole(String type, String id, javax.servlet.http.HttpServletRequest request) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement removeMemberRole(String type, String id, javax.servlet.http.HttpServletRequest request) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement removeMemberRole(String type, String id, String email) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement removeManagerRole(String type, String id, javax.servlet.http.HttpServletRequest request) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement removeManagerRole(String type, String id, String email) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement getAllMembers(String type, String id) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic int getAllMembersCount(String type, String id) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement getAllManagers(String type, String id) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement getAllCurators(String type) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic boolean isMember(String type, String id, String email) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic boolean isManager(String type, String id, String email) throws org.springframework.web.client.HttpClientErrorException
org.springframework.web.client.HttpClientErrorExceptionpublic com.google.gson.JsonElement createCuratorRole(String type)
Copyright © 2022. All rights reserved.