Class Invitation
java.lang.Object
com.auth0.json.mgmt.organizations.Invitation
Represents the Invitation object for an organization.
- See Also:
-
Constructor Summary
ConstructorDescriptionInvitation
(Inviter inviter, Invitee invitee, String clientId) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getRoles()
void
setAppMetadata
(Map<String, Object> appMetadata) Sets the app metadata associated with this invitation.void
setConnectionId
(String connectionId) Sets the ID of the connection for the inviter to authenticate with.void
Sets the roles to be associated with the user invited.void
setSendInvitationEmail
(Boolean sendInvitationEmail) Whether the user will receive an invitation email (true) or no email (false).void
setTtlInSeconds
(Integer ttlInSeconds) Sets the number of seconds before this invitation expires.void
setUserMetadata
(Map<String, Object> userMetadata) Sets the user metadata associated with this invitation.
-
Constructor Details
-
Method Details
-
getId
- Returns:
- the ID of this invitation.
-
getInviter
- Returns:
- the Inviter of this invitation.
-
getInvitee
- Returns:
- the Invitee of this invitation.
-
getTtlInSeconds
- Returns:
- the number of seconds before this invitation expires.
-
setTtlInSeconds
Sets the number of seconds before this invitation expires. If unspecified or set to 0, this value defaults to 604800 seconds (7 days). Max value: 2592000 seconds (30 days).- Parameters:
ttlInSeconds
- the number of seconds before this invitation expires.
-
getClientId
- Returns:
- the client ID of this invitation.
-
getConnectionId
- Returns:
- the connection ID of this invitation.
-
setConnectionId
Sets the ID of the connection for the inviter to authenticate with.- Parameters:
connectionId
- the ID of the connection.
-
getAppMetadata
- Returns:
- the app metadata of this invitation.
-
setAppMetadata
Sets the app metadata associated with this invitation.- Parameters:
appMetadata
- the app metadata.
-
getUserMetadata
- Returns:
- the user metadata of this invitation.
-
setUserMetadata
Sets the user metadata associated with this invitation.- Parameters:
userMetadata
- the user metadata.
-
isSendInvitationEmail
- Returns:
- whether the user will receive an invitation email (true) or no email (false).
-
setSendInvitationEmail
Whether the user will receive an invitation email (true) or no email (false). If not specified, default value is true.- Parameters:
sendInvitationEmail
- whether to send the user an invitation email or not.
-
getCreatedAt
- Returns:
- the date this invitation was created at.
-
getExpiresAt
- Returns:
- the date this invitation expires.
-
getTicketId
- Returns:
- the ID of the invitation ticket.
-
getRoles
- Returns:
- the roles associated with the user invited.
-
setRoles
Sets the roles to be associated with the user invited.- Parameters:
roles
- the Roles to associated with the user invited.
-
getInvitationUrl
- Returns:
- the invitation url to be send to the invitee.
-
getOrganizationId
- Returns:
- the ID of the organization for this invitation.
-