Class MyLuteceUserFilter
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.users.business.MyLuteceUserFilter
- All Implemented Interfaces:
Serializable
Filter for the front-office users search engine (last name, first name, email).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()voidinit()Reset every criterion to an empty string.voidvoidsetFirstName(String strFirstName) voidsetLastName(String strLastName) booleansetMyLuteceUserFilter(jakarta.servlet.http.HttpServletRequest request) Populate the filter from the given HTTP request.voidsetUrlAttributes(fr.paris.lutece.util.url.UrlItem url) Append the filter parameters to the given URL.
-
Constructor Details
-
MyLuteceUserFilter
public MyLuteceUserFilter()
-
-
Method Details
-
init
public void init()Reset every criterion to an empty string. -
getLastName
- Returns:
- the last name criterion
-
setLastName
- Parameters:
strLastName- the last name criterion
-
getFirstName
- Returns:
- the first name criterion
-
setFirstName
- Parameters:
strFirstName- the first name criterion
-
getEmail
- Returns:
- the email criterion
-
setEmail
- Parameters:
strEmail- the email criterion
-
setMyLuteceUserFilter
public boolean setMyLuteceUserFilter(jakarta.servlet.http.HttpServletRequest request) Populate the filter from the given HTTP request. Reset all criteria when the search sentinel parameter is absent.- Parameters:
request- the HTTP request- Returns:
- true if the request triggered a search (sentinel parameter present), false otherwise
-
setUrlAttributes
public void setUrlAttributes(fr.paris.lutece.util.url.UrlItem url) Append the filter parameters to the given URL.- Parameters:
url- the URL to enrich
-
getUrlAttributes
- Returns:
- the filter parameters as an URL-encoded query string
-