public interface InvitationService
| Modifier and Type | Method and Description |
|---|---|
Invitation |
accept(Invitation invitation,
HawkularUser user)
Marks an invitation as accepted, converting the data from
Invitation into an
OrganizationMembership |
Invitation |
create(String email,
HawkularUser invitedBy,
Organization organization,
Role role)
Stores an invitation with the given parameters.
|
Invitation |
get(String id)
Deprecated.
Use
getById(UUID) instead. |
Invitation |
getById(UUID token)
Retrieves an
Invitation based on the token. |
Invitation |
getByToken(String token)
Deprecated.
Use
getById(UUID) instead. |
List<Invitation> |
getInvitationsForOrganization(Organization organization)
Retrieves all invitations for the given organization.
|
List<Invitation> |
getPendingInvitationsForOrganization(Organization organization)
Retrieves the pending invitations for the given organization.
|
void |
markAsDispatched(Invitation invitation)
Marks the given invitation as dispatched.
|
void |
remove(Invitation invitation)
Remove the invitation from the storage.
|
@Deprecated Invitation getByToken(String token)
getById(UUID) instead.Invitation based on the token.token - the token that was received by the invited userInvitation getById(UUID token)
Invitation based on the token.token - the token that was received by the invited user@Deprecated Invitation get(String id)
getById(UUID) instead.Invitation based on the ID.id - the invitation's IDList<Invitation> getPendingInvitationsForOrganization(Organization organization)
organization - the organization of which pending invitations are queried from.List<Invitation> getInvitationsForOrganization(Organization organization)
organization - the organization of the invitations are queried from.Invitation create(String email, HawkularUser invitedBy, Organization organization, Role role)
email - the user that has been invitedinvitedBy - the user who sent the invitationorganization - the organization for which the user was invited torole - the role on the organization for the invited userInvitation accept(Invitation invitation, HawkularUser user)
Invitation into an
OrganizationMembershipinvitation - the invitation to be accepteduser - the user that is accepting the invitationvoid remove(Invitation invitation)
invitation - the invitation to be removedvoid markAsDispatched(Invitation invitation)
invitation - the invitation to mark as dispatchedCopyright © 2015 Red Hat, Inc.. All rights reserved.