コード例 #1
0
 public EmergencyContactBean(Person loggedUser) {
   EmergencyContact emergencyContact =
       (loggedUser.getProfile() == null) ? null : loggedUser.getProfile().getEmergencyContact();
   if (emergencyContact != null) {
     setContact(emergencyContact.getContact());
   }
 }
コード例 #2
0
 public EmergencyContactBean(EmergencyContact emergencyContact) {
   setContact(emergencyContact.getContact());
 }