Author: fdesbois Date: 2010-04-10 01:38:58 +0200 (Sat, 10 Apr 2010) New Revision: 2970 Log: improve javadoc Modified: trunk/pollen-business/src/main/java/org/chorem/pollen/PollenBusinessException.java trunk/pollen-business/src/main/java/org/chorem/pollen/service/ServiceUserImpl.java Modified: trunk/pollen-business/src/main/java/org/chorem/pollen/PollenBusinessException.java =================================================================== --- trunk/pollen-business/src/main/java/org/chorem/pollen/PollenBusinessException.java 2010-04-09 23:28:55 UTC (rev 2969) +++ trunk/pollen-business/src/main/java/org/chorem/pollen/PollenBusinessException.java 2010-04-09 23:38:58 UTC (rev 2970) @@ -33,12 +33,17 @@ } public enum PollenExceptionType { - //LOAD_CONFIGURATION(n_("pollen.exception.load_configuration")), + /** Exception when poll is not found in data **/ POLL_NOT_EXIST(n_("pollen.exception.poll_not_exist")), + /** Exception when user login exists in data **/ USER_LOGIN_EXIST(n_("pollen.exception.user_login_exist")), + /** Exception when user email exists in data **/ USER_EMAIL_EXIST(n_("pollen.exception.user_email_exist")), + /** Exception when user is not found in data **/ USER_NOT_EXIST(n_("pollen.exception.user_not_exist")), + /** Exception when password is not valid for some user **/ USER_WRONG_PASSWORD(n_("pollen.exception.user_wrong_password")), + /** Exception when stmp server is not available **/ SMTP_NOT_AVAILABLE(n_("pollen.exception.smtp_not_available")); private String message; Modified: trunk/pollen-business/src/main/java/org/chorem/pollen/service/ServiceUserImpl.java =================================================================== --- trunk/pollen-business/src/main/java/org/chorem/pollen/service/ServiceUserImpl.java 2010-04-09 23:28:55 UTC (rev 2969) +++ trunk/pollen-business/src/main/java/org/chorem/pollen/service/ServiceUserImpl.java 2010-04-09 23:38:58 UTC (rev 2970) @@ -86,7 +86,7 @@ * @param login to check * @param password to check * @throws TopiaException for ToPIA errors - * @throws PollenBusinessException USER_WRONG_PASSWORD + * @throws PollenBusinessException {@link PollenExceptionType#USER_WRONG_PASSWORD} */ protected void checkPassword(UserAccountDAO dao, String login, String password) throws TopiaException, PollenBusinessException { @@ -107,7 +107,7 @@ * @param dao used to execute the query * @param login to check * @throws TopiaException for ToPIA errors - * @throws PollenBusinessException USER_LOGIN_EXIST + * @throws PollenBusinessException {@link PollenExceptionType#USER_LOGIN_EXIST} */ protected void checkLoginNotExist(UserAccountDAO dao, String login) throws PollenBusinessException, TopiaException { @@ -129,7 +129,7 @@ * @param query existing query to execute. A new one will be created if this * param is null. * @throws TopiaException for ToPIA errors - * @throws PollenBusinessException USER_EMAIL_EXIST + * @throws PollenBusinessException {@link PollenExceptionType#USER_EMAIL_EXIST} */ protected void checkEmailNotExist(UserAccountDAO dao, String email, TopiaQuery query) throws PollenBusinessException, TopiaException {