fr.paris.lutece.plugins.mylutece.modules.database.authentication.service
Class DatabaseService

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.database.authentication.service.DatabaseService

public class DatabaseService
extends java.lang.Object

DatabaseService


Constructor Summary
DatabaseService()
           
 
Method Summary
 void doModifyPassword(DatabaseUser user, java.lang.String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Do modify the password
 java.util.List<DatabaseUser> getAuthorizedUsers(fr.paris.lutece.portal.business.user.AdminUser adminUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get authorized users list
 java.util.List<DatabaseUser> getFilteredUsersInterface(java.util.List<DatabaseUser> listUsers, javax.servlet.http.HttpServletRequest request, java.util.Map<java.lang.String,java.lang.Object> model, fr.paris.lutece.util.url.UrlItem url)
          Get the filtered list of database users
 java.util.Map<java.lang.String,java.lang.Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
          Build the advanced parameters management
static DatabaseService getService()
          Returns the instance of the singleton
 void init()
          Initialize the Database service
 boolean isAuthorized(DatabaseUser user, fr.paris.lutece.portal.business.user.AdminUser adminUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if an Lutece user should be visible to the user according its workgroup
 boolean isPluginJcaptchaEnable()
          Check if the plugin jcaptcha is activated or not
 boolean isUserActive(java.lang.String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if the user is active or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseService

public DatabaseService()
Method Detail

init

public void init()
Initialize the Database service


getService

public static DatabaseService getService()
Returns the instance of the singleton

Returns:
The instance of the singleton

getManageAdvancedParameters

public java.util.Map<java.lang.String,java.lang.Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
Build the advanced parameters management

Parameters:
user - the admin user
Returns:
The model for the advanced parameters

isAuthorized

public boolean isAuthorized(DatabaseUser user,
                            fr.paris.lutece.portal.business.user.AdminUser adminUser,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if an Lutece user should be visible to the user according its workgroup

Parameters:
user - the Lutece user
adminUser - the admin user
plugin - the plugin
Returns:
true if the Lutece user should be visible, false otherwise

getAuthorizedUsers

public java.util.List<DatabaseUser> getAuthorizedUsers(fr.paris.lutece.portal.business.user.AdminUser adminUser,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get authorized users list

Parameters:
adminUser - the admin user
plugin - the plugin
Returns:
a list of users

getFilteredUsersInterface

public java.util.List<DatabaseUser> getFilteredUsersInterface(java.util.List<DatabaseUser> listUsers,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              java.util.Map<java.lang.String,java.lang.Object> model,
                                                              fr.paris.lutece.util.url.UrlItem url)
Get the filtered list of database users

Parameters:
listUsers - the initial list to filter
request - HttpServletRequest
model - Map
url - UrlItem
Returns:
the filtered list

doModifyPassword

public void doModifyPassword(DatabaseUser user,
                             java.lang.String strPassword,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Do modify the password

Parameters:
user - the DatabaseUser
strPassword - the new password
plugin - the plugin

isUserActive

public boolean isUserActive(java.lang.String strUserName,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the user is active or not

Parameters:
strUserName - the user name
plugin - the plugin
Returns:
true if it is active, false otherwise

isPluginJcaptchaEnable

public boolean isPluginJcaptchaEnable()
Check if the plugin jcaptcha is activated or not

Returns:
true if it is activated, false otherwise


Copyright © 2011 Mairie de Paris. All Rights Reserved.