public final class AdminUserFieldService extends Object
Modifier and Type | Method and Description |
---|---|
static String |
checkUserFields(javax.servlet.http.HttpServletRequest request,
Locale locale)
Check if the user fields are correctly filled
|
static void |
doCreateUserFields(AdminUser user,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Create the user fields
|
static void |
doModifyUserFields(AdminUser user,
javax.servlet.http.HttpServletRequest request,
Locale locale,
AdminUser currentUser)
Modify the user fields
|
static void |
doRemoveUserFields(AdminUser user,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Remove the user fields
|
static void |
doRemoveUserFieldsByIdAttribute(int nIdAttribute)
Remove the user fields from a given ID attribute
|
static void |
doRemoveUserFieldsByIdField(int nIdAttributeField)
Remove the user fields from a given ID attribute field
|
Object |
getAdminUserField(IAttribute attribute,
int nUserId,
Locale locale)
Get the admin user field from a given attribute and a given user ID
|
static Map<String,Object> |
getAdminUserFields(int nUserId,
Locale locale)
Get the user attribute fields
|
static Map<String,Object> |
getAdminUserFields(List<IAttribute> listAttributes,
int nUserId,
Locale locale)
Get the user attribute fields
|
public static String checkUserFields(javax.servlet.http.HttpServletRequest request, Locale locale)
request
- HttpServletRequestlocale
- localepublic static void doCreateUserFields(AdminUser user, javax.servlet.http.HttpServletRequest request, Locale locale)
user
- Adminuserrequest
- HttpServletRequestlocale
- localepublic static void doModifyUserFields(AdminUser user, javax.servlet.http.HttpServletRequest request, Locale locale, AdminUser currentUser)
user
- AdminUserrequest
- HttpServletRequestlocale
- localecurrentUser
- current userpublic static void doRemoveUserFields(AdminUser user, javax.servlet.http.HttpServletRequest request, Locale locale)
user
- Adminuserrequest
- HttpServletRequestlocale
- localepublic static void doRemoveUserFieldsByIdAttribute(int nIdAttribute)
nIdAttribute
- the ID attributepublic static void doRemoveUserFieldsByIdField(int nIdAttributeField)
nIdAttributeField
- the attribute field IDpublic static Map<String,Object> getAdminUserFields(int nUserId, Locale locale)
nUserId
- the user IDlocale
- the Locale
AdminUserField
public static Map<String,Object> getAdminUserFields(List<IAttribute> listAttributes, int nUserId, Locale locale)
listAttributes
- the list of attributesnUserId
- the user IDlocale
- the Locale
AdminUserField
public Object getAdminUserField(IAttribute attribute, int nUserId, Locale locale)
attribute
- a IAttribute
nUserId
- the user IDlocale
- the Locale
AdminUserField
Copyright © 2020 City of Paris. All rights reserved.