public class EntityEmploymentBoAdapter extends PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>
Affiliation
objects from import into the list of EntityEmploymentBo
objects already attached to an Entity.
Note that this class is not bound to Employment JAXB
objects. This is because KIM implements EntityEmploymentBo as a dependent object on an EntityAffiliationBo
object. When updating an employment record we must update both an EntityEmploymentBo and an EntityAffiliationBo.
This requires special handling in HRImportServiceImpl.updateEntityBo(org.kuali.rice.kim.impl.identity.entity.EntityBo, com.rsmart.kuali.coeus.hr.rest.model.HRImportRecord)
to handle Affiliations with no employment record and Affiliations with an employment record separately.boIsDefaultable, boIsInactivatable| Constructor and Description |
|---|
EntityEmploymentBoAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
compareAppointment(org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo aff0,
org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo aff1) |
int |
compareBOProperties(org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo emp0,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo emp1)
Implements comparison logic to allow sorting of BusinessObjects.
|
void |
delete(org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo)
save(...) is overridden here in order to handle the dependency between employment and
affiliation records
|
Class<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo> |
getBusinessObjectClass()
This is a method which allows
HRImportService
to determine the specific type of business object handled by this class. |
Class<Employment> |
getIncomingClass()
This is a method which allows
HRImportService
to determine the specific type of incoming JAXB object handled by this class. |
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo |
newBO(String entityId)
This is a factory method for the business object.
|
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo |
save(int index,
org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo)
save(...) is overridden here in order to handle the dependency between employment and
affiliation records
|
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo |
setFields(org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo,
Employment source)
This is the method which translates the incoming JAXB object to the business object.
|
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo |
setFields(int index,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo,
Employment source)
Provides a new default interface that provides the index of the business object within its collection.
|
compare, isBoDefaultable, isBoInactivatable, nullSafeCompare, nullSafeCompareIgnoreCaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected int compareAppointment(org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo aff0,
org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo aff1)
public int compareBOProperties(org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo emp0,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo emp1)
PersistableBoMergeAdaptercompareBOProperties in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>public org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo newBO(String entityId)
PersistableBoMergeAdapternewBO in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>public Class<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo> getBusinessObjectClass()
PersistableBoMergeAdapterHRImportService
to determine the specific type of business object handled by this class. Type erasure prevents
determining the type of the generic parameter T at runtime, so this explicit method is
necessary.getBusinessObjectClass in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>public Class<Employment> getIncomingClass()
PersistableBoMergeAdapterHRImportService
to determine the specific type of incoming JAXB object handled by this class. Type erasure prevents
determining the type of the generic parameter X at runtime, so this explicit method is
necessary.getIncomingClass in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>public org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo setFields(org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo,
Employment source)
PersistableBoMergeAdaptersetFields in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>public org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo setFields(int index,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo,
Employment source)
PersistableBoMergeAdaptersetFields in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>public org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo save(int index,
org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo)
save in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>index - order of the business object in its collectionpublic void delete(org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter,
org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo bo)
delete in class PersistableBoMergeAdapter<org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo,Employment>Copyright © 2018 KualiCo. All rights reserved.