Package com.auth0.json.mgmt.guardian
Class EnrollmentTicket
java.lang.Object
com.auth0.json.mgmt.guardian.EnrollmentTicket
Class that represents an Auth0 Guardian Enrollment Ticket object. Related to the
GuardianEntity
entity.-
Constructor Summary
ConstructorsConstructorDescriptionEnrollmentTicket
(String userId) Creates a new instance of the Enrollment Ticket for a given User.EnrollmentTicket
(String userId, Boolean sendEmail) Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the user by email.EnrollmentTicket
(String userId, Boolean sendEmail, String email) Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the specified email address. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
Getter for the email to which the ticket will be sent.Getter for the ticket id.Getter for the ticket url.Getter for the id of the User this ticket was made for.void
Deprecated.use the constructor insteadvoid
setSendEmail
(Boolean sendEmail) Deprecated.use the constructor insteadvoid
Deprecated.use the constructor insteadWhether to send and email for enrollment or not.
-
Constructor Details
-
EnrollmentTicket
Creates a new instance of the Enrollment Ticket for a given User.- Parameters:
userId
- the user id
-
EnrollmentTicket
Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the user by email.- Parameters:
userId
- the user idsendEmail
- whether the ticket should also be sent to the user by email
-
EnrollmentTicket
Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the specified email address.- Parameters:
userId
- the user idsendEmail
- whether the ticket should also be sent to the user by emailemail
- the email where the ticket will be sent.
-
-
Method Details
-
getUserId
Getter for the id of the User this ticket was made for.- Returns:
- the user id.
-
setUserId
Deprecated.use the constructor insteadSetter for the id of the user this ticket is meant to.- Parameters:
userId
- the user id to set.
-
willSendEmail
Whether to send and email for enrollment or not.- Returns:
- true is this ticket will send an email upon enrollment, false otherwise.
-
setSendEmail
Deprecated.use the constructor insteadSets whether to send and email for enrollment or not.- Parameters:
sendEmail
- whether this ticket will send an email upon enrollment or not.
-
getEmail
Getter for the email to which the ticket will be sent.- Returns:
- the email.
-
setEmail
Deprecated.use the constructor insteadSetter for the email to which the ticket will be sent.- Parameters:
email
- the email to sent the ticket to.
-
getTicketId
Getter for the ticket id.- Returns:
- the ticket id.
-
getTicketUrl
Getter for the ticket url.- Returns:
- the ticket url.
-