Package org.ametys.web.usermanagement
Class SendInvitationsRunnable
java.lang.Object
org.ametys.web.usermanagement.SendInvitationsRunnable
- All Implemented Interfaces:
Runnable
A
Runnable which schedules a SendInvitationsSchedulable for sending invitations emails-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.schedule.Runnable
Runnable.FireProcess, Runnable.MisfirePolicy -
Constructor Summary
ConstructorsConstructorDescriptionSendInvitationsRunnable(List<String> guestLines, String siteName, String populationId, String userDirectoryId, boolean resendInvitation, UserIdentity userIdentity) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the cron expression to base the schedule on.Returns the descriptionGets the process of firing, i.e.getId()Returns the idgetLabel()Returns the labelGets the misfire policy, i.e.Gets the values of the parameters (from the linkedSchedulable)Gets the identifier ofSchedulableto executeGets the user which should be used to launch the runnable task.booleanDetermines if this runnable can be activate or deactivatebooleanDetermines if this runnable can be modifiedbooleanDetermines if this runnable can be removedbooleanDetermines if the runnable must not survive to a server restart
-
Constructor Details
-
SendInvitationsRunnable
public SendInvitationsRunnable(List<String> guestLines, String siteName, String populationId, String userDirectoryId, boolean resendInvitation, UserIdentity userIdentity) Constructor- Parameters:
guestLines- the user to invit such as email;lastname;firstname (extract from CVS file)siteName- the site namepopulationId- the id of populationuserDirectoryId- the id of user directoryresendInvitation- true to resend invitationsuserIdentity- the user identity who launch the job
-
-
Method Details
-
getId
Description copied from interface:RunnableReturns the id -
getLabel
Description copied from interface:RunnableReturns the label -
getDescription
Description copied from interface:RunnableReturns the description- Specified by:
getDescriptionin interfaceRunnable- Returns:
- the i18n description
-
getFireProcess
Description copied from interface:RunnableGets the process of firing, i.e. the way the task will be scheduled (fire now, fire at next stratup, schedule it based on a cron expression...).- Specified by:
getFireProcessin interfaceRunnable- Returns:
- the fire process
-
getCronExpression
Description copied from interface:RunnableReturns the cron expression to base the schedule on. Ignored ifRunnable.getFireProcess()is different fromRunnable.FireProcess.CRON.- Specified by:
getCronExpressionin interfaceRunnable- Returns:
- the cron expression
-
getSchedulableId
Description copied from interface:RunnableGets the identifier ofSchedulableto execute- Specified by:
getSchedulableIdin interfaceRunnable- Returns:
- the identifier of
Schedulable
-
isRemovable
Description copied from interface:RunnableDetermines if this runnable can be removed- Specified by:
isRemovablein interfaceRunnable- Returns:
trueif this runnable is removable
-
isModifiable
Description copied from interface:RunnableDetermines if this runnable can be modified- Specified by:
isModifiablein interfaceRunnable- Returns:
trueif this runnable is modifiable
-
isDeactivatable
Description copied from interface:RunnableDetermines if this runnable can be activate or deactivate- Specified by:
isDeactivatablein interfaceRunnable- Returns:
trueif this runnable is deactivatable
-
getMisfirePolicy
Description copied from interface:RunnableGets the misfire policy, i.e. what the runnable must do if it missed a trigger. Ignored ifRunnable.getFireProcess()is different fromRunnable.FireProcess.CRON.- Specified by:
getMisfirePolicyin interfaceRunnable- Returns:
- The misfire policy
-
isVolatile
Description copied from interface:RunnableDetermines if the runnable must not survive to a server restart- Specified by:
isVolatilein interfaceRunnable- Returns:
- true if the runnable must not survive to a server restart
-
getParameterValues
Description copied from interface:RunnableGets the values of the parameters (from the linkedSchedulable)- Specified by:
getParameterValuesin interfaceRunnable- Returns:
- the parameter values
-
getUserIdentity
Description copied from interface:RunnableGets the user which should be used to launch the runnable task.- Specified by:
getUserIdentityin interfaceRunnable- Returns:
- the
UserIdentityof the user
-