public class HRImportServiceImpl extends Object implements HRImportService
IdentityService,
legacyDataAdapter,
UnitService, and
CacheManagerRegistry
Processing starts in the startImport method.| Constructor and Description |
|---|
HRImportServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String importId) |
protected <T,Z> List<T> |
adaptAndSortList(String entityId,
List<Z> toImport,
PersistableBoMergeAdapter<T,Z> adapter)
This converts an incoming set of JAXB objects into their corresponding KIM entity objects.
|
protected void |
deactivatePeople(List<String> ids) |
protected void |
delete(org.kuali.rice.kim.impl.identity.entity.EntityBo entity)
Deletes and entity and all its dependent entities.
|
void |
deletePerson(String entityId)
Removes a single person and his/her dependent entities
|
protected boolean |
equals(org.kuali.coeus.common.framework.person.attr.KcPersonExtendedAttributes oldAttrs,
KCExtendedAttributes newAttrs) |
org.kuali.coeus.sys.framework.auth.AuthServicePushService |
getAuthServicePushService() |
protected void |
handleRecord(HRImportRecord record) |
protected <T,Z> boolean |
mergeImportedBOs(List<Z> objsToMerge,
List<T> existingBOs,
PersistableBoMergeAdapter<T,Z> adapter,
String entityId)
This merges an incoming list of JAXB objects into a list of existing business objects
for a single Entity.
|
protected org.kuali.rice.kim.impl.identity.entity.EntityBo |
newEntityBo(HRImportRecord record) |
protected boolean |
nullSafeEquals(Object obj0,
Object obj1) |
void |
setAuthServicePushService(org.kuali.coeus.sys.framework.auth.AuthServicePushService authServicePushService) |
void |
setCacheManagerRegistry(org.kuali.rice.core.api.cache.CacheManagerRegistry registry) |
void |
setIdentityService(org.kuali.rice.kim.api.identity.IdentityService identityService) |
void |
setImportStatusService(ImportStatusService svc) |
void |
setLegacyDataAdapter(org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter) |
void |
setUnitService(org.kuali.coeus.common.framework.unit.UnitService unitService) |
void |
startImport(String importId,
HRImport toImport)
This is the workhorse of HRImportServiceImpl.
|
protected org.kuali.rice.kim.impl.identity.principal.PrincipalBo |
updateEntityBo(org.kuali.rice.kim.impl.identity.entity.EntityBo entity,
HRImportRecord record)
This handles each of the KIM dependent entity business object collections connected to a single
Entity.
|
protected boolean |
updateExtendedAttributes(String principalId,
HRImportRecord record) |
protected org.kuali.rice.kim.impl.identity.principal.PrincipalBo |
updatePrincipal(org.kuali.rice.kim.impl.identity.entity.EntityBo entity,
HRImportRecord record)
Set the principal name and Id.
|
protected Set<javax.validation.ConstraintViolation<HRImportRecord>> |
validateRecord(HRImportRecord record) |
public void setImportStatusService(ImportStatusService svc)
setImportStatusService in interface HRImportServiceprotected Set<javax.validation.ConstraintViolation<HRImportRecord>> validateRecord(HRImportRecord record)
protected void handleRecord(HRImportRecord record) throws Exception
Exceptionpublic void startImport(String importId, HRImport toImport)
startImport in interface HRImportServiceprotected final <T,Z> List<T> adaptAndSortList(String entityId, List<Z> toImport, PersistableBoMergeAdapter<T,Z> adapter)
entityId - toImport - adapter - protected <T,Z> boolean mergeImportedBOs(List<Z> objsToMerge, List<T> existingBOs, PersistableBoMergeAdapter<T,Z> adapter, String entityId)
objsToMerge - existingBOs - adapter - entityId - protected org.kuali.rice.kim.impl.identity.principal.PrincipalBo updateEntityBo(org.kuali.rice.kim.impl.identity.entity.EntityBo entity,
HRImportRecord record)
entity - record - public void deletePerson(String entityId)
deletePerson in interface HRImportServiceprotected void delete(org.kuali.rice.kim.impl.identity.entity.EntityBo entity)
entity - protected org.kuali.rice.kim.impl.identity.principal.PrincipalBo updatePrincipal(org.kuali.rice.kim.impl.identity.entity.EntityBo entity,
HRImportRecord record)
entity - record - protected org.kuali.rice.kim.impl.identity.entity.EntityBo newEntityBo(HRImportRecord record)
protected final boolean equals(org.kuali.coeus.common.framework.person.attr.KcPersonExtendedAttributes oldAttrs,
KCExtendedAttributes newAttrs)
protected boolean updateExtendedAttributes(String principalId, HRImportRecord record)
public void setIdentityService(org.kuali.rice.kim.api.identity.IdentityService identityService)
public void setLegacyDataAdapter(org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter)
public void setUnitService(org.kuali.coeus.common.framework.unit.UnitService unitService)
public void setCacheManagerRegistry(org.kuali.rice.core.api.cache.CacheManagerRegistry registry)
public void abort(String importId)
abort in interface HRImportServicepublic org.kuali.coeus.sys.framework.auth.AuthServicePushService getAuthServicePushService()
public void setAuthServicePushService(org.kuali.coeus.sys.framework.auth.AuthServicePushService authServicePushService)
Copyright © 2018 KualiCo. All rights reserved.