Package pl.edu.icm.unity.engine.api
Interface InvitationManagement
-
public interface InvitationManagementInvitations to fill registration form management- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringaddInvitation(pl.edu.icm.unity.types.registration.invite.InvitationParam invitation)Associates a new invitation with a form.pl.edu.icm.unity.types.registration.invite.InvitationWithCodegetInvitation(java.lang.String code)Retrieves an invitation by codejava.util.List<pl.edu.icm.unity.types.registration.invite.InvitationWithCode>getInvitations()voidremoveInvitation(java.lang.String code)Removes a single invitationvoidsendInvitation(java.lang.String code)Sends an invitation message to the invitation specified by the code.voidupdateInvitation(java.lang.String code, pl.edu.icm.unity.types.registration.invite.InvitationParam invitation)Updates existing invitation.
-
-
-
Method Detail
-
addInvitation
java.lang.String addInvitation(pl.edu.icm.unity.types.registration.invite.InvitationParam invitation) throws pl.edu.icm.unity.exceptions.EngineExceptionAssociates a new invitation with a form. The invitation code is auto generated and returned- Parameters:
invitation- invitation to be added- Returns:
- code assigned to the invitation
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
updateInvitation
void updateInvitation(java.lang.String code, pl.edu.icm.unity.types.registration.invite.InvitationParam invitation) throws pl.edu.icm.unity.exceptions.EngineExceptionUpdates existing invitation. The email address and registration form can not be changed.- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
sendInvitation
void sendInvitation(java.lang.String code) throws pl.edu.icm.unity.exceptions.EngineExceptionSends an invitation message to the invitation specified by the code. In case when there is no such invitation, it has missing or invalid contact address or when the associated form has no message template for invitation this method throws exception.- Parameters:
code-- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
removeInvitation
void removeInvitation(java.lang.String code) throws pl.edu.icm.unity.exceptions.EngineExceptionRemoves a single invitation- Parameters:
code-- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getInvitations
java.util.List<pl.edu.icm.unity.types.registration.invite.InvitationWithCode> getInvitations() throws pl.edu.icm.unity.exceptions.EngineException- Returns:
- a list with all invitations
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getInvitation
pl.edu.icm.unity.types.registration.invite.InvitationWithCode getInvitation(java.lang.String code) throws pl.edu.icm.unity.exceptions.EngineExceptionRetrieves an invitation by code- Parameters:
code- invitation code- Returns:
- an invitation with the given code. Note that the returned invitation may happen to be expired.
- Throws:
pl.edu.icm.unity.exceptions.EngineException- More specificallyWrongArgumentExceptionis thrown when there is no invitation with such code.
-
-