use of com.liferay.portal.ContactBirthdayException in project liferay-ide by liferay.
the class UserLocalServiceImpl method getBirthday.
protected Date getBirthday(int birthdayMonth, int birthdayDay, int birthdayYear) throws PortalException {
Date birthday = PortalUtil.getDate(birthdayMonth, birthdayDay, birthdayYear, ContactBirthdayException.class);
Date now = new Date();
if (birthday.after(now)) {
throw new ContactBirthdayException();
}
return birthday;
}
Aggregations