Interface OrganizationInvitationsResource
public interface OrganizationInvitationsResource
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseDelete an invitation permanently.Get invitation by ID.default List<OrganizationInvitationRepresentation>list()Return all invitations in the organization.default List<OrganizationInvitationRepresentation>Return invitations in the organization with pagination.default List<OrganizationInvitationRepresentation>Return invitations in the organization filtered by status.list(String status, String email, String search, String firstName, String lastName, Integer first, Integer max) Return invitations in the organization.jakarta.ws.rs.core.ResponseResend an invitation email.
-
Method Details
-
list
Return all invitations in the organization.- Returns:
- a list containing all organization invitations.
-
list
Return invitations in the organization with pagination.- Parameters:
first- index of the first element (pagination offset). If null, starts from 0.max- the maximum number of results. If null, returns all results.- Returns:
- a list containing organization invitations.
-
list
default List<OrganizationInvitationRepresentation> list(String status, String email, Integer first, Integer max) Return invitations in the organization filtered by status.- Parameters:
first- index of the first element (pagination offset). If null, starts from 0.max- the maximum number of results. If null, returns all results.status- filter by invitation status (PENDING, EXPIRED). If null, returns all statuses.email- filter by exact email match. If null, no email filtering is applied.- Returns:
- a list containing organization invitations matching the criteria.
-
list
@GET @Produces("application/json") List<OrganizationInvitationRepresentation> list(@QueryParam("status") String status, @QueryParam("email") String email, @QueryParam("search") String search, @QueryParam("firstName") String firstName, @QueryParam("lastName") String lastName, @QueryParam("first") Integer first, @QueryParam("max") Integer max) Return invitations in the organization.- Parameters:
first- index of the first element (pagination offset). If null, starts from 0.max- the maximum number of results. If null, returns all results.status- filter by invitation status (PENDING, EXPIRED). If null, returns all statuses.email- filter by exact email match. If null, no email filtering is applied.search- search text applied across email, firstName, and lastName fields. If null, no search filtering is applied.firstName- filter by exact first name match. If null, no firstName filtering is applied.lastName- filter by exact last name match. If null, no lastName filtering is applied.- Returns:
- a list containing organization invitations matching the criteria.
-
get
@GET @Path("/{id}") @Produces("application/json") OrganizationInvitationRepresentation get(@PathParam("id") String id) Get invitation by ID.- Parameters:
id- the invitation ID.- Returns:
- the invitation representation.
-
delete
Delete an invitation permanently. This action cannot be undone.- Parameters:
id- the invitation ID.- Returns:
- response indicating success or failure.
-
resend
Resend an invitation email. This generates a new invitation token with fresh expiration time.- Parameters:
id- the invitation ID.- Returns:
- response indicating success or failure.
-