Class DatabaseUserFactory
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.DatabaseUserFactory
DatabaseUserFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseUserFactoryGet the instance of the factorybooleanCheck if the email is used as loginInstanciate a newDatabaseUserdefined in database_context.xmlvoidsetBeanDatabaseUser(String strBeanDatabaseUser) Set the bean database uservoidsetEmailUsedAsLogin(boolean bIsEmailUsedAsLogin) Set true if the email is used as login, false otherwise
-
Method Details
-
getFactory
Get the instance of the factory- Returns:
- the instance of the factory
-
setBeanDatabaseUser
Set the bean database user- Parameters:
strBeanDatabaseUser- the bean database user
-
setEmailUsedAsLogin
public void setEmailUsedAsLogin(boolean bIsEmailUsedAsLogin) Set true if the email is used as login, false otherwise- Parameters:
bIsEmailUsedAsLogin- true if the email is used as login, false otherwise
-
isEmailUsedAsLogin
public boolean isEmailUsedAsLogin()Check if the email is used as login- Returns:
- true if the email is used as login, false otherwise
-
newDatabaseUser
Instanciate a newDatabaseUserdefined in database_context.xml- Returns:
- a new instance of
DatabaseUser
-