Coverage Report - org.kuali.rice.kim.bo.impl.PersonImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonImpl
0%
0/262
0%
0/86
1.792
 
 1  
 /*
 2  
  * Copyright 2007-2008 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.bo.impl;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.HashMap;
 20  
 import java.util.LinkedHashMap;
 21  
 import java.util.List;
 22  
 import java.util.Map;
 23  
 
 24  
 import org.kuali.rice.kim.bo.Person;
 25  
 import org.kuali.rice.kim.bo.entity.KimEntityAddress;
 26  
 import org.kuali.rice.kim.bo.entity.KimEntityAffiliation;
 27  
 import org.kuali.rice.kim.bo.entity.KimEntityEmail;
 28  
 import org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation;
 29  
 import org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier;
 30  
 import org.kuali.rice.kim.bo.entity.KimEntityName;
 31  
 import org.kuali.rice.kim.bo.entity.KimEntityPhone;
 32  
 import org.kuali.rice.kim.bo.entity.KimPrincipal;
 33  
 import org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo;
 34  
 import org.kuali.rice.kim.bo.entity.dto.KimEntityEntityTypeDefaultInfo;
 35  
 import org.kuali.rice.kim.bo.entity.impl.KimEntityDefaultInfoCacheImpl;
 36  
 import org.kuali.rice.kim.bo.reference.impl.EmploymentStatusImpl;
 37  
 import org.kuali.rice.kim.bo.reference.impl.EmploymentTypeImpl;
 38  
 import org.kuali.rice.kim.service.IdentityManagementService;
 39  
 import org.kuali.rice.kim.service.KIMServiceLocator;
 40  
 import org.kuali.rice.kim.service.PersonService;
 41  
 import org.kuali.rice.kim.util.KimCommonUtils;
 42  
 import org.kuali.rice.kim.util.KimConstants;
 43  
 import org.kuali.rice.kns.bo.Campus;
 44  
 import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
 45  
 import org.kuali.rice.kns.util.KualiDecimal;
 46  
 
 47  
 /**
 48  
  * This is a description of what this class does - jonathan don't forget to fill this in. 
 49  
  * 
 50  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 51  
  *
 52  
  */
 53  
 public class PersonImpl extends TransientBusinessObjectBase implements Person {
 54  
 
 55  
         private static final long serialVersionUID = 1L;
 56  
         
 57  
         protected static PersonService<Person> personService;
 58  
         protected static IdentityManagementService identityManagementService;
 59  
 
 60  
         private String lookupRoleNamespaceCode;
 61  
         private String lookupRoleName;
 62  
         
 63  
         // principal data
 64  
         protected String principalId;
 65  
         protected String principalName;
 66  
         protected String entityId;
 67  
         protected String entityTypeCode;
 68  
         // name data
 69  0
         protected String firstName = "";
 70  0
         protected String middleName = "";
 71  0
         protected String lastName = "";
 72  
         
 73  0
         protected String name = "";
 74  
         // address data
 75  0
         protected String addressLine1 = "";
 76  0
         protected String addressLine2 = "";
 77  0
         protected String addressLine3 = "";
 78  0
         protected String addressCityName = "";
 79  0
         protected String addressStateCode = "";
 80  0
         protected String addressPostalCode = "";
 81  0
         protected String addressCountryCode = "";
 82  
         // email data
 83  0
         protected String emailAddress = "";
 84  
         // phone data
 85  0
         protected String phoneNumber = "";
 86  
         // privacy preferences data
 87  0
         protected boolean suppressName = false;
 88  0
         protected boolean suppressAddress = false;
 89  0
         protected boolean suppressPhone = false;
 90  0
         protected boolean suppressPersonal = false;
 91  0
         protected boolean suppressEmail = false;
 92  
         // affiliation data
 93  
         protected List<? extends KimEntityAffiliation> affiliations;
 94  
         
 95  0
         protected String campusCode = "";
 96  
         protected Campus campus;
 97  
         // external identifier data
 98  0
         protected Map<String,String> externalIdentifiers = null;
 99  
         // employment data
 100  0
         protected String employeeStatusCode = "";
 101  
         protected EmploymentStatusImpl employeeStatus;
 102  0
         protected String employeeTypeCode = "";
 103  
         protected EmploymentTypeImpl employeeType;
 104  0
         protected String primaryDepartmentCode = "";
 105  0
         protected String employeeId = "";
 106  
         
 107  0
         protected KualiDecimal baseSalaryAmount = KualiDecimal.ZERO;
 108  0
         protected boolean active = true;
 109  
         
 110  0
         public PersonImpl() {}
 111  
         
 112  
         public PersonImpl( KimPrincipal principal, String personEntityTypeCode ) {
 113  0
                 this( principal, null, personEntityTypeCode );
 114  0
         }
 115  
 
 116  0
         public PersonImpl( KimPrincipal principal, KimEntityDefaultInfo entity, String personEntityTypeCode ) {
 117  0
                 setPrincipal( principal, entity, personEntityTypeCode );
 118  0
         }
 119  
         
 120  
         public PersonImpl( String principalId, String personEntityTypeCode ) {
 121  0
                 this( getIdentityManagementService().getPrincipal(principalId), personEntityTypeCode );
 122  0
         }
 123  
         
 124  0
         public PersonImpl( KimEntityDefaultInfoCacheImpl p ) {
 125  0
                 entityId = p.getEntityId();
 126  0
                 principalId = p.getPrincipalId();
 127  0
                 principalName = p.getPrincipalName();
 128  0
                 entityTypeCode = p.getEntityTypeCode();
 129  0
                 firstName = p.getFirstName();
 130  0
                 middleName = p.getMiddleName();
 131  0
                 lastName = p.getLastName();
 132  0
                 name = p.getName();
 133  0
                 campusCode = p.getCampusCode();
 134  0
                 primaryDepartmentCode = p.getPrimaryDepartmentCode();
 135  0
                 employeeId = p.getEmployeeId();
 136  0
                 affiliations = new ArrayList<KimEntityAffiliation>( 0 );
 137  0
                 externalIdentifiers = new HashMap<String,String>( 0 );
 138  0
         }
 139  
 
 140  
         /**
 141  
          * Sets the principal object and populates the person object from that. 
 142  
          */
 143  
         public void setPrincipal(KimPrincipal principal, KimEntityDefaultInfo entity, String personEntityTypeCode) {
 144  0
                 populatePrincipalInfo( principal );
 145  0
                 if ( entity == null ) {
 146  0
                         entity = getIdentityManagementService().getEntityDefaultInfo( principal.getEntityId() );
 147  
                 }
 148  0
                 populateEntityInfo( entity, principal, personEntityTypeCode );
 149  0
         }
 150  
 
 151  
         
 152  
         protected void populatePrincipalInfo( KimPrincipal principal ) {
 153  0
                 entityId = principal.getEntityId();
 154  0
                 principalId = principal.getPrincipalId();
 155  0
                 principalName = principal.getPrincipalName();
 156  0
                 active = principal.isActive();
 157  0
         }
 158  
         
 159  
         protected void populateEntityInfo( KimEntityDefaultInfo entity, KimPrincipal principal, String personEntityTypeCode ) {
 160  0
                 if(entity!=null){
 161  0
                     populatePrivacyInfo (entity );
 162  0
                         KimEntityEntityTypeDefaultInfo entityEntityType = entity.getEntityType( personEntityTypeCode );  
 163  0
                         entityTypeCode = personEntityTypeCode;
 164  0
                         populateNameInfo( personEntityTypeCode, entity, principal );
 165  0
                         populateAddressInfo( entityEntityType );
 166  0
                         populateEmailInfo( entityEntityType );
 167  0
                         populatePhoneInfo( entityEntityType );
 168  0
                         populateAffiliationInfo( entity );
 169  0
                         populateEmploymentInfo( entity );
 170  0
                         populateExternalIdentifiers( entity );
 171  
                 }
 172  0
         }
 173  
         
 174  
         protected void populateNameInfo( String entityTypeCode, KimEntityDefaultInfo entity, KimPrincipal principal ) {
 175  0
                 if(entity!=null){
 176  0
                         KimEntityName entityName = entity.getDefaultName();
 177  0
                         if ( entityName != null ) {
 178  0
                                 firstName = unNullify( entityName.getFirstName());
 179  0
                                 middleName = unNullify( entityName.getMiddleName() );
 180  0
                                 lastName = unNullify( entityName.getLastName() );
 181  0
                                 if ( entityTypeCode.equals( KimConstants.EntityTypes.SYSTEM ) ) {
 182  0
                                         name = principal.getPrincipalName().toUpperCase();
 183  
                                 } else {
 184  0
                                         name = unNullify( entityName.getFormattedName() );
 185  0
                                         if(name.equals("") || name == null){
 186  0
                                                 name = lastName + ", " + firstName;                                        
 187  
                                         }
 188  
                                 }
 189  
                         } else {
 190  0
                                 firstName = "";
 191  0
                                 middleName = "";
 192  0
                                 if ( entityTypeCode.equals( KimConstants.EntityTypes.SYSTEM ) ) {
 193  0
                                         name = principal.getPrincipalName().toUpperCase();
 194  0
                                         lastName = principal.getPrincipalName().toUpperCase();
 195  
                                 } else {
 196  0
                                         name = "";
 197  0
                                         lastName = "";
 198  
                                 }
 199  
                         }
 200  
                 }
 201  0
         }
 202  
         
 203  
         protected void populatePrivacyInfo (KimEntityDefaultInfo entity) {
 204  0
             if(entity!=null) {
 205  0
                 if (entity.getPrivacyPreferences() != null) {
 206  0
                     suppressName = entity.getPrivacyPreferences().isSuppressName();
 207  0
                     suppressAddress = entity.getPrivacyPreferences().isSuppressAddress();
 208  0
                     suppressPhone = entity.getPrivacyPreferences().isSuppressPhone();
 209  0
                     suppressPersonal = entity.getPrivacyPreferences().isSuppressPersonal();
 210  0
                     suppressEmail = entity.getPrivacyPreferences().isSuppressEmail();
 211  
                 }
 212  
             }
 213  0
         }
 214  
         
 215  
         protected void populateAddressInfo( KimEntityEntityTypeDefaultInfo entityEntityType ) {
 216  0
                 if(entityEntityType!=null){
 217  0
                         KimEntityAddress defaultAddress = entityEntityType.getDefaultAddress();
 218  0
                         if ( defaultAddress != null ) {                        
 219  0
                                 addressLine1 = unNullify( defaultAddress.getLine1Unmasked() );
 220  0
                                 addressLine2 = unNullify( defaultAddress.getLine2Unmasked() );
 221  0
                                 addressLine3 = unNullify( defaultAddress.getLine3Unmasked() );
 222  0
                                 addressCityName = unNullify( defaultAddress.getCityNameUnmasked() );
 223  0
                                 addressStateCode = unNullify( defaultAddress.getStateCodeUnmasked() );
 224  0
                                 addressPostalCode = unNullify( defaultAddress.getPostalCodeUnmasked() );
 225  0
                                 addressCountryCode = unNullify( defaultAddress.getCountryCodeUnmasked() );
 226  
                         } else {
 227  0
                                 addressLine1 = "";
 228  0
                                 addressLine2 = "";
 229  0
                                 addressLine3 = "";
 230  0
                                 addressCityName = "";
 231  0
                                 addressStateCode = "";
 232  0
                                 addressPostalCode = "";
 233  0
                                 addressCountryCode = "";
 234  
                         }
 235  
                 }
 236  0
         }
 237  
         
 238  
         protected void populateEmailInfo( KimEntityEntityTypeDefaultInfo entityEntityType ) {
 239  0
                 if(entityEntityType!=null){
 240  0
                         KimEntityEmail entityEmail = entityEntityType.getDefaultEmailAddress();
 241  0
                         if ( entityEmail != null ) {
 242  0
                                 emailAddress = unNullify( entityEmail.getEmailAddressUnmasked() );
 243  
                         } else {
 244  0
                                 emailAddress = "";
 245  
                         }
 246  
                 }
 247  0
         }
 248  
         
 249  
         protected void populatePhoneInfo( KimEntityEntityTypeDefaultInfo entityEntityType ) {
 250  0
                 if(entityEntityType!=null){
 251  0
                         KimEntityPhone entityPhone = entityEntityType.getDefaultPhoneNumber();
 252  0
                         if ( entityPhone != null ) {
 253  0
                                 phoneNumber = unNullify( entityPhone.getFormattedPhoneNumberUnmasked() );
 254  
                         } else {
 255  0
                                 phoneNumber = "";
 256  
                         }
 257  
                 }
 258  0
         }
 259  
         
 260  
         protected void populateAffiliationInfo( KimEntityDefaultInfo entity ) {
 261  0
                 if(entity!=null){
 262  0
                         affiliations = entity.getAffiliations();
 263  0
                         KimEntityAffiliation defaultAffiliation = entity.getDefaultAffiliation();
 264  0
                         if ( defaultAffiliation != null  ) {
 265  0
                                 campusCode = unNullify( defaultAffiliation.getCampusCode() );
 266  
                         } else {
 267  0
                                 campusCode = "";
 268  
                         }
 269  
                 }
 270  0
         }
 271  
         
 272  
         protected void populateEmploymentInfo( KimEntityDefaultInfo entity ) {
 273  0
                 if(entity!=null){
 274  0
                         KimEntityEmploymentInformation employmentInformation = entity.getPrimaryEmployment();
 275  0
                         if ( employmentInformation != null ) {
 276  0
                                 employeeStatusCode = unNullify( employmentInformation.getEmployeeStatusCode() );
 277  0
                                 employeeTypeCode = unNullify( employmentInformation.getEmployeeTypeCode() );
 278  0
                                 primaryDepartmentCode = unNullify( employmentInformation.getPrimaryDepartmentCode() );
 279  0
                                 employeeId = unNullify( employmentInformation.getEmployeeId() );
 280  0
                                 if ( employmentInformation.getBaseSalaryAmount() != null ) {
 281  0
                                         baseSalaryAmount = employmentInformation.getBaseSalaryAmount();
 282  
                                 } else {
 283  0
                                         baseSalaryAmount = KualiDecimal.ZERO;
 284  
                                 }
 285  
                         } else {
 286  0
                                 employeeStatusCode = "";
 287  0
                                 employeeTypeCode = "";
 288  0
                                 primaryDepartmentCode = "";
 289  0
                                 employeeId = "";
 290  0
                                 baseSalaryAmount = KualiDecimal.ZERO;
 291  
                         }
 292  
                 }
 293  0
         }
 294  
         
 295  
         protected void populateExternalIdentifiers( KimEntityDefaultInfo entity ) {
 296  0
                 if(entity!=null){
 297  0
                         List<? extends KimEntityExternalIdentifier> externalIds = entity.getExternalIdentifiers();
 298  0
                         externalIdentifiers = new HashMap<String,String>( externalIds.size() );
 299  0
                         for ( KimEntityExternalIdentifier eei : externalIds ) {
 300  0
                                 externalIdentifiers.put( eei.getExternalIdentifierTypeCode(), eei.getExternalId() );
 301  
                         }
 302  
                 }
 303  0
         }
 304  
         
 305  
         /** So users of this class don't need to program around nulls. */
 306  
         private String unNullify( String str ) {
 307  0
                 if ( str == null ) {
 308  0
                         return "";
 309  
                 }
 310  0
                 return str;
 311  
         }
 312  
         
 313  
         /**
 314  
          * @see org.kuali.rice.kim.bo.Person#getEntityId()
 315  
          */
 316  
         public String getEntityId() {
 317  0
                 return entityId;
 318  
         }
 319  
         
 320  
         /**
 321  
          * @see org.kuali.rice.kim.bo.Person#getPrincipalId()
 322  
          */
 323  
         public String getPrincipalId() {
 324  0
                 return principalId;
 325  
         }
 326  
         
 327  
         /**
 328  
          * This overridden method ...
 329  
          * 
 330  
          * @see org.kuali.rice.kim.bo.Person#getPrincipalName()
 331  
          */
 332  
         public String getPrincipalName() {
 333  0
                 return principalName;
 334  
         }
 335  
         
 336  
         /**
 337  
          * @see org.kuali.rice.kim.bo.Person#getFirstName()
 338  
          */
 339  
         public String getFirstName() {
 340  0
             if (KimCommonUtils.isSuppressName(getEntityId())){
 341  0
                 return KimConstants.RESTRICTED_DATA_MASK;
 342  
             }
 343  0
                 return firstName;
 344  
         }
 345  
         
 346  
         /**
 347  
      * @see org.kuali.rice.kim.bo.Person#getFirstNameUnmasked()
 348  
      */
 349  
     public String getFirstNameUnmasked() {
 350  0
         return firstName;
 351  
     }
 352  
 
 353  
         /**
 354  
          * @see org.kuali.rice.kim.bo.Person#getMiddleName()
 355  
          */
 356  
         public String getMiddleName() {
 357  0
             if (KimCommonUtils.isSuppressName(getEntityId())){
 358  0
             return KimConstants.RESTRICTED_DATA_MASK;
 359  
         }
 360  0
                 return middleName;
 361  
         }
 362  
         
 363  
         /**
 364  
      * @see org.kuali.rice.kim.bo.Person#getMiddleNameUnmasked()
 365  
      */
 366  
         public String getMiddleNameUnmasked() {
 367  0
             return middleName;
 368  
         }
 369  
         
 370  
         /**
 371  
          * @see org.kuali.rice.kim.bo.Person#getLastName()
 372  
          */
 373  
         public String getLastName() {
 374  0
             if (KimCommonUtils.isSuppressName(getEntityId())){
 375  0
             return KimConstants.RESTRICTED_DATA_MASK;
 376  
         }
 377  0
                 return lastName;
 378  
         }
 379  
         
 380  
         /**
 381  
      * @see org.kuali.rice.kim.bo.Person#getLastNameUnmasked()
 382  
      */
 383  
     public String getLastNameUnmasked() {
 384  0
         return lastName;
 385  
     }
 386  
         
 387  
         /**
 388  
          * @see org.kuali.rice.kim.bo.Person#getName()
 389  
          */
 390  
         public String getName() {
 391  0
             if (KimCommonUtils.isSuppressName(getEntityId())){
 392  0
             return KimConstants.RESTRICTED_DATA_MASK;
 393  
         }
 394  0
             return name;
 395  
         }
 396  
         
 397  
         public String getNameUnmasked() {
 398  0
             return this.name;
 399  
         }
 400  
         
 401  
         /**
 402  
          * @see org.kuali.rice.kim.bo.Person#getPhoneNumber()
 403  
          */
 404  
         public String getPhoneNumber() {
 405  0
             if (KimCommonUtils.isSuppressPhone(getEntityId())){
 406  0
             return KimConstants.RESTRICTED_DATA_MASK;
 407  
         }
 408  0
                 return phoneNumber;
 409  
         }
 410  
         
 411  
            /**
 412  
      * @see org.kuali.rice.kim.bo.Person#getPhoneNumberUnmasked()
 413  
      */
 414  
     public String getPhoneNumberUnmasked() {
 415  0
         return phoneNumber;
 416  
     }
 417  
 
 418  
         /**
 419  
          * @see org.kuali.rice.kim.bo.Person#getEmailAddress()
 420  
          */
 421  
         public String getEmailAddress() {
 422  0
             if (KimCommonUtils.isSuppressEmail(getEntityId())){
 423  0
             return KimConstants.RESTRICTED_DATA_MASK;
 424  
         }
 425  0
                 return emailAddress;
 426  
         }
 427  
         
 428  
         public String getEmailAddressUnmasked() {
 429  0
             return emailAddress;
 430  
         }
 431  
         
 432  
         public List<? extends KimEntityAffiliation> getAffiliations() {
 433  0
                 return affiliations;
 434  
         }
 435  
         
 436  
         /**
 437  
          * This overridden method ...
 438  
          * 
 439  
          * @see org.kuali.rice.kim.bo.Person#hasAffiliationOfType(java.lang.String)
 440  
          */
 441  
         public boolean hasAffiliationOfType(String affiliationTypeCode) {
 442  0
                 return getCampusCodesForAffiliationOfType(affiliationTypeCode).size() > 0;
 443  
         }
 444  
         
 445  
         
 446  
         public List<String> getCampusCodesForAffiliationOfType(String affiliationTypeCode) {
 447  0
                 ArrayList<String> campusCodes = new ArrayList<String>( 3 );
 448  0
                 if ( affiliationTypeCode == null ) {
 449  0
                         return campusCodes;
 450  
                 }
 451  0
                 for ( KimEntityAffiliation a : getAffiliations() ) {
 452  0
                         if ( a.getAffiliationTypeCode().equals(affiliationTypeCode)  ) {
 453  0
                                 campusCodes.add( a.getCampusCode() );
 454  
                         }
 455  
                 }
 456  0
                 return campusCodes;
 457  
         }
 458  
         
 459  
         /**
 460  
          * @see org.kuali.rice.kim.bo.Person#getExternalId(java.lang.String)
 461  
          */
 462  
         public String getExternalId(String externalIdentifierTypeCode) {
 463  0
                 return externalIdentifiers.get( externalIdentifierTypeCode );
 464  
         }
 465  
         
 466  
         /**
 467  
          * Pulls the campus code from the default affiliation for the entity.
 468  
          * Returns null if no default affiliation is set.
 469  
          * @see org.kuali.rice.kim.bo.Person#getCampusCode()
 470  
          */
 471  
         public String getCampusCode() {
 472  0
                 return campusCode;
 473  
         }
 474  
         /**
 475  
          * This overridden method ...
 476  
          * 
 477  
          * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
 478  
          */
 479  
         @SuppressWarnings("unchecked")
 480  
         @Override
 481  
         protected LinkedHashMap toStringMapper() {
 482  0
                 LinkedHashMap m = new LinkedHashMap();
 483  0
                 m.put("principalId", getPrincipalId());
 484  0
                 m.put("principalName", getPrincipalName());
 485  0
                 m.put("name", getName());
 486  0
                 m.put("emailAddress", getEmailAddress());
 487  0
                 m.put("campusCode", getCampusCode());
 488  0
                 return m;
 489  
         }
 490  
 
 491  
         /**
 492  
          * @return the personService
 493  
          */
 494  
         @SuppressWarnings("unchecked")
 495  
         public static PersonService<Person> getPersonService() {
 496  0
                 if ( personService == null ) {
 497  0
                         personService = KIMServiceLocator.getPersonService();
 498  
                 }
 499  0
                 return personService;
 500  
         }
 501  
 
 502  
         /**
 503  
          * @return the identityManagementService
 504  
          */
 505  
         public static IdentityManagementService getIdentityManagementService() {
 506  0
                 if ( identityManagementService == null ) {
 507  0
                         identityManagementService = KIMServiceLocator.getIdentityManagementService();
 508  
                 }
 509  0
                 return identityManagementService;
 510  
         }
 511  
 
 512  
         /**
 513  
          * @see org.kuali.rice.kim.bo.Person#getExternalIdentifiers()
 514  
          */
 515  
         public Map<String,String> getExternalIdentifiers() {
 516  0
                 return externalIdentifiers;
 517  
         }
 518  
 
 519  
         public String getAddressLine1() {
 520  0
             if (KimCommonUtils.isSuppressAddress(getEntityId())){
 521  0
             return KimConstants.RESTRICTED_DATA_MASK;
 522  
         }
 523  0
                 return this.addressLine1;
 524  
         }
 525  
         
 526  
         public String getAddressLine1Unmasked() {
 527  0
             return this.addressLine1;
 528  
         }
 529  
 
 530  
         public String getAddressLine2() {
 531  0
             if (KimCommonUtils.isSuppressAddress(getEntityId())){
 532  0
             return KimConstants.RESTRICTED_DATA_MASK;
 533  
         }
 534  0
                 return this.addressLine2;
 535  
         }
 536  
         
 537  
         public String getAddressLine2Unmasked() {
 538  0
         return this.addressLine2;
 539  
     }
 540  
 
 541  
         public String getAddressLine3() {
 542  0
             if (KimCommonUtils.isSuppressAddress(getEntityId())){
 543  0
             return KimConstants.RESTRICTED_DATA_MASK;
 544  
         }
 545  0
                 return this.addressLine3;
 546  
         }
 547  
         
 548  
         public String getAddressLine3Unmasked() {
 549  0
         return this.addressLine3;
 550  
     }
 551  
 
 552  
         public String getAddressCityName() {
 553  0
             if (KimCommonUtils.isSuppressAddress(getEntityId())){
 554  0
             return KimConstants.RESTRICTED_DATA_MASK;
 555  
         }
 556  0
                 return this.addressCityName;
 557  
         }
 558  
         
 559  
         public String getAddressCityNameUnmasked() {
 560  0
         return this.addressCityName;
 561  
     }
 562  
 
 563  
         public String getAddressStateCode() {
 564  0
             if (KimCommonUtils.isSuppressAddress(getEntityId())){
 565  0
             return KimConstants.RESTRICTED_DATA_MASK;
 566  
         }
 567  0
                 return this.addressStateCode;
 568  
         }
 569  
         
 570  
         public String getAddressStateCodeUnmasked() {
 571  0
         return this.addressStateCode;
 572  
     }
 573  
 
 574  
         public String getAddressPostalCode() {
 575  0
             if (KimCommonUtils.isSuppressAddress(getEntityId())){
 576  0
             return KimConstants.RESTRICTED_DATA_MASK;
 577  
         }
 578  0
                 return this.addressPostalCode;
 579  
         }
 580  
         
 581  
         public String getAddressPostalCodeUnmasked() {
 582  0
         return this.addressPostalCode;
 583  
     }
 584  
 
 585  
         public String getAddressCountryCode() {
 586  0
             if (KimCommonUtils.isSuppressAddress(getEntityId())){
 587  0
             return KimConstants.RESTRICTED_DATA_MASK;
 588  
         }
 589  0
                 return this.addressCountryCode;
 590  
         }
 591  
         
 592  
         public String getAddressCountryCodeUnmasked() {
 593  0
         return this.addressCountryCode;
 594  
     }
 595  
 
 596  
         public String getEmployeeStatusCode() {
 597  0
                 return this.employeeStatusCode;
 598  
         }
 599  
 
 600  
         public String getEmployeeTypeCode() {
 601  0
                 return this.employeeTypeCode;
 602  
         }
 603  
 
 604  
         public KualiDecimal getBaseSalaryAmount() {
 605  0
                 return this.baseSalaryAmount;
 606  
         }
 607  
 
 608  
         public String getEmployeeId() {
 609  0
                 return this.employeeId;
 610  
         }
 611  
 
 612  
         public String getPrimaryDepartmentCode() {
 613  0
                 return this.primaryDepartmentCode;
 614  
         }
 615  
 
 616  
         public String getEntityTypeCode() {
 617  0
                 return this.entityTypeCode;
 618  
         }
 619  
 
 620  
         public boolean isActive() {
 621  0
                 return this.active;
 622  
         }
 623  
 
 624  
         public void setActive(boolean active) {
 625  0
                 this.active = active;
 626  0
         }
 627  
 
 628  
         /**
 629  
          * @return the lookupRoleNamespaceCode
 630  
          */
 631  
         public String getLookupRoleNamespaceCode() {
 632  0
                 return this.lookupRoleNamespaceCode;
 633  
         }
 634  
 
 635  
         /**
 636  
          * @param lookupRoleNamespaceCode the lookupRoleNamespaceCode to set
 637  
          */
 638  
         public void setLookupRoleNamespaceCode(String lookupRoleNamespaceCode) {
 639  0
                 this.lookupRoleNamespaceCode = lookupRoleNamespaceCode;
 640  0
         }
 641  
 
 642  
         /**
 643  
          * @return the lookupRoleName
 644  
          */
 645  
         public String getLookupRoleName() {
 646  0
                 return this.lookupRoleName;
 647  
         }
 648  
 
 649  
         /**
 650  
          * @param lookupRoleName the lookupRoleName to set
 651  
          */
 652  
         public void setLookupRoleName(String lookupRoleName) {
 653  0
                 this.lookupRoleName = lookupRoleName;
 654  0
         }
 655  
 
 656  
         /**
 657  
          * @param principalName the principalName to set
 658  
          */
 659  
         public void setPrincipalName(String principalName) {
 660  0
                 this.principalName = principalName;
 661  0
         }
 662  
 
 663  
         /**
 664  
          * @param name the name to set
 665  
          */
 666  
         public void setName(String name) {
 667  0
                 this.name = name;
 668  0
         }
 669  
 
 670  
         public Campus getCampus() {
 671  0
                 return this.campus;
 672  
         }
 673  
 
 674  
         public EmploymentStatusImpl getEmployeeStatus() {
 675  0
                 return this.employeeStatus;
 676  
         }
 677  
 
 678  
         public EmploymentTypeImpl getEmployeeType() {
 679  0
                 return this.employeeType;
 680  
         }
 681  
 }