@PermitAll public class OrganizationJoinRequestServiceImpl extends BaseServiceImpl<OrganizationJoinRequest> implements OrganizationJoinRequestService
| Constructor and Description |
|---|
OrganizationJoinRequestServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
OrganizationJoinRequest |
accept(OrganizationJoinRequest request,
Role role)
Accepts a previously created join request
|
OrganizationJoinRequest |
create(Organization organization,
Persona persona)
Creates a new Join Request on the given Organization by the given Persona
|
List<OrganizationJoinRequest> |
getAllRequestsForOrganization(Organization organization)
Lists all join requests for the given organization, no matter the status
|
List<OrganizationJoinRequest> |
getAllRequestsForPersona(Persona persona)
Lists all join requests for the given persona, no matter the status
|
OrganizationJoinRequest |
getById(UUID uuid)
Retrieve a specific Join Request based on its ID
|
List<OrganizationJoinRequest> |
getPendingRequestsForOrganization(Organization organization)
Lists the PENDING join requests for the given organization
|
OrganizationJoinRequest |
reject(OrganizationJoinRequest request)
Rejects a previously created join request
|
void |
remove(OrganizationJoinRequest request)
Removes a join request from the permanent storage
|
getByIdpublic OrganizationJoinRequest getById(UUID uuid)
OrganizationJoinRequestServicegetById in interface OrganizationJoinRequestServicepublic OrganizationJoinRequest create(Organization organization, Persona persona)
OrganizationJoinRequestServicecreate in interface OrganizationJoinRequestServiceorganization - the organization the persona wants to joinpersona - the persona who wants to join the organizationpublic OrganizationJoinRequest accept(OrganizationJoinRequest request, Role role)
OrganizationJoinRequestServiceaccept in interface OrganizationJoinRequestServicerequest - the join request that is being acceptedpublic OrganizationJoinRequest reject(OrganizationJoinRequest request)
OrganizationJoinRequestServicereject in interface OrganizationJoinRequestServicerequest - the join request that is being rejectedpublic void remove(OrganizationJoinRequest request)
OrganizationJoinRequestServiceremove in interface OrganizationJoinRequestServicerequest - the join request to removepublic List<OrganizationJoinRequest> getPendingRequestsForOrganization(Organization organization)
OrganizationJoinRequestServicegetPendingRequestsForOrganization in interface OrganizationJoinRequestServiceorganization - the organization to list the pending requestspublic List<OrganizationJoinRequest> getAllRequestsForOrganization(Organization organization)
OrganizationJoinRequestServicegetAllRequestsForOrganization in interface OrganizationJoinRequestServiceorganization - the organization to list the requestspublic List<OrganizationJoinRequest> getAllRequestsForPersona(Persona persona)
OrganizationJoinRequestServicegetAllRequestsForPersona in interface OrganizationJoinRequestServicepersona - the personaCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.