@Path(value="hrimport") public class HRImportResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HR_IMPORT_IN_MEMORY |
protected Schema |
hrImportSchema
The schema for validation.
|
protected Unmarshaller |
hrImportUnmarshaller
Parses the incoming XML document
|
static String |
IMPORT_SERVICE_NAME |
protected ImportRunner |
importRunner |
protected HRImportService |
importService
HRImportService implements the business logic to preform the import.
|
protected JAXBContext |
jaxbContext
JAXB innards
|
static String |
SCHEMA_PATH |
protected ImportStatusService |
statusService |
| Constructor and Description |
|---|
HRImportResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
abort(String importId) |
javax.ws.rs.core.Response |
deleteRecord(String entityId)
Deletes a single person by his/her entity ID
|
ImportRunner |
getImportRunner() |
HRImportService |
getImportService()
If an instance of HRImportService has been provided via setImportService(...) it will be returned
here.
|
ImportStatusService |
getStatusService() |
javax.ws.rs.core.Response |
processImport(InputStream uploadedInputStream)
Processes an incoming multipart form with a "file" argument.
|
protected boolean |
runInMemory() |
void |
setImportRunner(ImportRunner runner) |
void |
setImportService(HRImportService importService) |
void |
setStatusService(ImportStatusService svc) |
javax.ws.rs.core.Response |
status(String importId) |
String |
statusToJson(ImportStatus status) |
javax.ws.rs.core.Response |
unmanagedPrincipals() |
public static final String SCHEMA_PATH
public static final String IMPORT_SERVICE_NAME
public static final String HR_IMPORT_IN_MEMORY
protected transient HRImportService importService
protected transient ImportRunner importRunner
protected transient ImportStatusService statusService
protected transient JAXBContext jaxbContext
protected transient Schema hrImportSchema
protected transient Unmarshaller hrImportUnmarshaller
public String statusToJson(ImportStatus status)
protected final boolean runInMemory()
@POST @Path(value="/import") @Consumes(value="multipart/form-data") public javax.ws.rs.core.Response processImport(InputStream uploadedInputStream) throws Exception
uploadedInputStream - Exception@DELETE
@Path(value="/import/{importId}")
public javax.ws.rs.core.Response abort(@PathParam(value="importId")
String importId)
@GET
@Path(value="/import/{importId}")
public javax.ws.rs.core.Response status(@PathParam(value="importId")
String importId)
@DELETE
@Path(value="/delete/{entityId}")
public javax.ws.rs.core.Response deleteRecord(@PathParam(value="entityId")
String entityId)
entityId - @GET @Path(value="/principals/unmanaged") public javax.ws.rs.core.Response unmanagedPrincipals()
public HRImportService getImportService()
public void setImportService(HRImportService importService)
public ImportStatusService getStatusService()
public void setStatusService(ImportStatusService svc)
public ImportRunner getImportRunner()
public void setImportRunner(ImportRunner runner)
Copyright © 2018 KualiCo. All rights reserved.