diff --git a/doc/src/user/en/16-ldap-authentication.rst b/doc/src/user/en/16-ldap-authentication.rst index 604951906..7e7810873 100644 --- a/doc/src/user/en/16-ldap-authentication.rst +++ b/doc/src/user/en/16-ldap-authentication.rst @@ -40,8 +40,8 @@ Authentication ============== Here can be configured the property in LDAP nodes where should be found the -given login name. The property *UserId* must be filled with the name of the -property where the login name is stored in LDAP. +given username. The property *UserId* must be filled with the name of the +property where the username is stored in LDAP. The checkbox *Save passwords in database* when it is checked, means that the password is stored also in LibrePlan database. In this way, if LDAP is offline diff --git a/libreplan-business/src/main/java/org/libreplan/business/users/daos/IUserDAO.java b/libreplan-business/src/main/java/org/libreplan/business/users/daos/IUserDAO.java index cf78cfb0b..ef2fca20b 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/users/daos/IUserDAO.java +++ b/libreplan-business/src/main/java/org/libreplan/business/users/daos/IUserDAO.java @@ -39,34 +39,36 @@ import org.libreplan.business.users.entities.User; public interface IUserDAO extends IGenericDAO{ /** - * NOTE: Login name comparison is case-insensitive. + * NOTE: Username comparison is case-insensitive. */ public User findByLoginName(String loginName) throws InstanceNotFoundException; /** - * NOTE: Login name comparison is case-insensitive, and the method is - * executed in another transaction. + * NOTE: Username comparison is case-insensitive, and the method is executed + * in another transaction. */ public User findByLoginNameAnotherTransaction(String loginName) throws InstanceNotFoundException; /** - * NOTE: Login name comparison is case-insensitive. + * NOTE: Username comparison is case-insensitive. */ public boolean existsByLoginName(String loginName); /** - * NOTE: Login name comparison is case-insensitive, and the method is - * executed in another transaction. + * NOTE: Username comparison is case-insensitive, and the method is executed + * in another transaction. */ public boolean existsByLoginNameAnotherTransaction(String loginName); /** * Finds a User entity by its loginName, among those with the disabled * attribute set to false. - * @param loginName loginName to perform the search. NOTE: Login name - * comparison is case-insensitive. + * + * @param loginName + * loginName to perform the search. NOTE: Username comparison is + * case-insensitive. * @return a {@link User} object. * @throws InstanceNotFoundException */ diff --git a/libreplan-business/src/main/java/org/libreplan/business/users/entities/User.java b/libreplan-business/src/main/java/org/libreplan/business/users/entities/User.java index 065d80a8c..85969ce1a 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/users/entities/User.java +++ b/libreplan-business/src/main/java/org/libreplan/business/users/entities/User.java @@ -110,7 +110,7 @@ public class User extends BaseEntity implements IHumanIdentifiable{ return create(new User(loginName, password, email)); } - @NotEmpty(message = "login name not specified") + @NotEmpty(message = "username not specified") public String getLoginName() { return loginName; } @@ -208,7 +208,7 @@ public class User extends BaseEntity implements IHumanIdentifiable{ return isInRole(UserRole.ROLE_ADMINISTRATION); } - @AssertTrue(message = "login name is already being used by another user") + @AssertTrue(message = "username is already being used by another user") public boolean checkConstraintUniqueLoginName() { IUserDAO userDAO = Registry.getUserDAO(); diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/common/components/finders/UserBandboxFinder.java b/libreplan-webapp/src/main/java/org/libreplan/web/common/components/finders/UserBandboxFinder.java index ecc165f7d..8f9070662 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/common/components/finders/UserBandboxFinder.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/common/components/finders/UserBandboxFinder.java @@ -44,7 +44,7 @@ public class UserBandboxFinder extends BandboxFinder implements IBandboxFinder { @Autowired private IUserDAO userDAO; - private final String headers[] = { _("Login name"), _("Full name") }; + private final String headers[] = { _("Username"), _("Full name") }; /** * Forces to mark the string as needing translation diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/users/bootstrap/MandatoryUser.java b/libreplan-webapp/src/main/java/org/libreplan/web/users/bootstrap/MandatoryUser.java index ff5bfcd4d..a2f5a7ef9 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/users/bootstrap/MandatoryUser.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/users/bootstrap/MandatoryUser.java @@ -34,7 +34,7 @@ import org.libreplan.business.common.exceptions.InstanceNotFoundException; import org.libreplan.business.users.entities.UserRole; /** - * It enumerates the mandatory users (login names) for running the application.
+ * It enumerates the mandatory users (usernames) for running the application.
* * ADMIN user will be always enabled, however USER, * WSREADER and WSWRITER could be disabled in diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/users/services/DBUserDetailsService.java b/libreplan-webapp/src/main/java/org/libreplan/web/users/services/DBUserDetailsService.java index 3ea8f0c9b..472e75fb5 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/users/services/DBUserDetailsService.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/users/services/DBUserDetailsService.java @@ -63,8 +63,8 @@ public class DBUserDetailsService implements UserDetailsService { try { user = userDAO.findByLoginName(loginName); } catch (InstanceNotFoundException e) { - throw new UsernameNotFoundException(_("User with login name " + - "'{0}': not found", loginName)); + throw new UsernameNotFoundException(_( + "User with username '{0}': not found", loginName)); } Scenario scenario = user.getLastConnectedScenario(); diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/users/services/IDBPasswordEncoderService.java b/libreplan-webapp/src/main/java/org/libreplan/web/users/services/IDBPasswordEncoderService.java index 852b973a1..911c94b6b 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/users/services/IDBPasswordEncoderService.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/users/services/IDBPasswordEncoderService.java @@ -36,7 +36,7 @@ public interface IDBPasswordEncoderService { /** * Encodes a clear password. The second parameter (which must be the - * login name) may be used as a salt. + * username) may be used as a salt. */ public String encodePassword(String clearPassword, String loginName); diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/users/services/LDAPUserDetailsService.java b/libreplan-webapp/src/main/java/org/libreplan/web/users/services/LDAPUserDetailsService.java index 7e784c8a1..83ebc325f 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/users/services/LDAPUserDetailsService.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/users/services/LDAPUserDetailsService.java @@ -62,7 +62,7 @@ public class LDAPUserDetailsService implements UserDetailsService { try { user = userDAO.findByLoginName(loginName); } catch (InstanceNotFoundException e) { - throw new UsernameNotFoundException(_("User with login name " + throw new UsernameNotFoundException(_("User with username " + "'{0}': not found", loginName)); } diff --git a/libreplan-webapp/src/main/webapp/resources/worker/_edition.zul b/libreplan-webapp/src/main/webapp/resources/worker/_edition.zul index 5f62c6eb2..18e0d5001 100644 --- a/libreplan-webapp/src/main/webapp/resources/worker/_edition.zul +++ b/libreplan-webapp/src/main/webapp/resources/worker/_edition.zul @@ -137,7 +137,7 @@ - diff --git a/libreplan-webapp/src/main/webapp/users/_editUser.zul b/libreplan-webapp/src/main/webapp/users/_editUser.zul index 1f3ffe10d..97bf9ceb9 100644 --- a/libreplan-webapp/src/main/webapp/users/_editUser.zul +++ b/libreplan-webapp/src/main/webapp/users/_editUser.zul @@ -44,7 +44,7 @@ -