Package org.ametys.web.usermanagement
Class SignupInvitationClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.web.usermanagement.SignupInvitationClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
public class SignupInvitationClientSideElement
extends StaticClientSideElement
implements Contextualizable
Client side element for sending invitations
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) getScripts
(boolean ignoreRights, Map<String, Object> contextParameters) This method return the scripts that will be used on client side.removeInvitation
(String siteName, List<String> emails) Delete invitationsresendInvitation
(String siteName, String email, String populationId, String udId) Resend an invitationsendInvitation
(String siteName, String popAndUserDirectory, String email, String lastname, String firstname) Send an invitationvoid
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
SignupInvitationClientSideElement
public SignupInvitationClientSideElement()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getScripts
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String, Object> contextParameters) Description copied from interface:ClientSideElement
This method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
getScripts
in interfaceClientSideElement
- Overrides:
getScripts
in classStaticFileImportsClientSideElement
- Parameters:
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
sendInvitation
public Map<String,Object> sendInvitation(String siteName, String popAndUserDirectory, String email, String lastname, String firstname) Send an invitation- Parameters:
siteName
- the site namepopAndUserDirectory
- the population and user directoryemail
- the emaillastname
- the last name. Can be null or emptyfirstname
- the first name. Can be null or empty- Returns:
- the result map
-
resendInvitation
public Map<String,Object> resendInvitation(String siteName, String email, String populationId, String udId) Resend an invitation- Parameters:
siteName
- the site nameemail
- the emailpopulationId
- the population idudId
- the user directory id- Returns:
- the result map
-
removeInvitation
Delete invitations- Parameters:
siteName
- the site nameemails
- the emails to delete- Returns:
- the result map
-