@Component(value="RegistryService") @CrossOrigin(value="*") public class RegistryService extends Object
| Constructor and Description |
|---|
RegistryService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cancelManagerInvitations(String type,
String id,
String email)
Cancel invitation to user with email for managing a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
cancelMemberInvitations(String type,
String id,
String email)
Cancel invitation to user with email for being member of a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
createCuratorRole(String type)
Create a new curator role with the given type(Community, etc.).
|
javax.ws.rs.core.Response |
createMemberRole(String type,
String id)
Create a new role with the given type(Community, etc.) with id(ee, egi, etc.).
|
javax.ws.rs.core.Response |
deleteVerification(String id)
Delete the verification with a specific id.
|
javax.ws.rs.core.Response |
getCurators(String type)
Get infos of the curators of a type(Community, etc.)
|
javax.ws.rs.core.Response |
getInvitedManagers(String type,
String id)
Get the invited managers for a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
getInviteMembers(String type,
String id)
Get the invited members for a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
getManagers(String type,
String id)
Get infos of the managers of a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
getMembers(String type,
String id)
Get infos of the members of a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
getMembersCount(String type,
String id)
Get the number of the members of a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
getVerification(String id)
Get the verification with a specific id only if it refers to the logged in user
|
javax.ws.rs.core.Response |
inviteManager(String type,
String id,
String body)
Invite user with email to manage a type(Community, etc.) with id(ee, egi, etc.)
Auto generated link and code will be sent as response.
|
javax.ws.rs.core.Response |
inviteMember(String type,
String id,
String body)
Invite user with email to be a member of a type(Community, etc.) with id(ee, egi, etc.)
Auto generated link and code will be sent as response.
|
javax.ws.rs.core.Response |
removeManagerRole(String type,
String id,
String email)
Remove the manager role from user with email for a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
removeMemberRole(String type,
String id,
String email)
Remove the member role from user with email for a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
subscribe(String type,
String id,
javax.servlet.http.HttpServletRequest request)
Subscribe to a type(Community, etc.) with id(ee, egi, etc.)
|
javax.ws.rs.core.Response |
unsubscribe(String type,
String id,
javax.servlet.http.HttpServletRequest request)
Unsubscribe from type(Community, etc.) with id(ee, egi, etc.).
|
javax.ws.rs.core.Response |
verifyManager(String id,
String code,
javax.servlet.http.HttpServletRequest request)
Verify the verification with the specific id, if the code is correct and it refers to the logged in user.
|
javax.ws.rs.core.Response |
verifyMember(String id,
String code,
javax.servlet.http.HttpServletRequest request)
Verify the verification with the specific id, if the code is correct and it refers to the logged in user.
|
@PreAuthorize(value="isAuthenticated() and @AuthorizationService.isCommunity(#type)") public javax.ws.rs.core.Response subscribe(String type, String id, @Context javax.servlet.http.HttpServletRequest request)
@PreAuthorize(value="isAuthenticated() and @AuthorizationService.isCommunity(#type)") public javax.ws.rs.core.Response unsubscribe(String type, String id, @Context javax.servlet.http.HttpServletRequest request)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)") public javax.ws.rs.core.Response createCuratorRole(String type)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type))") public javax.ws.rs.core.Response createMemberRole(String type, String id)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response inviteManager(String type, String id, @RequestBody String body)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response inviteMember(String type, String id, @RequestBody String body)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response cancelManagerInvitations(String type, String id, String email)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response cancelMemberInvitations(String type, String id, String email)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response getInvitedManagers(String type, String id)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response getInviteMembers(String type, String id)
@PreAuthorize(value="isAuthenticated()") public javax.ws.rs.core.Response getVerification(String id)
@PreAuthorize(value="isAuthenticated() && @VerificationUtils.ownedVerification(#id)") public javax.ws.rs.core.Response deleteVerification(String id)
@PreAuthorize(value="isAuthenticated()") public javax.ws.rs.core.Response verifyManager(String id, @RequestBody String code, @Context javax.servlet.http.HttpServletRequest request)
@PreAuthorize(value="isAuthenticated()") public javax.ws.rs.core.Response verifyMember(String id, @RequestBody String code, @Context javax.servlet.http.HttpServletRequest request)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response removeManagerRole(String type, String id, String email)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response removeMemberRole(String type, String id, String email)
public javax.ws.rs.core.Response getMembersCount(String type, String id)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN,@AuthorizationService.curator(#type), @AuthorizationService.manager(#type, #id))") public javax.ws.rs.core.Response getMembers(String type, String id)
public javax.ws.rs.core.Response getManagers(String type, String id)
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(#type))") public javax.ws.rs.core.Response getCurators(String type)
Copyright © 2022. All rights reserved.