Class FirmAttorneyAndServiceService
java.lang.Object
edu.suffolk.litlab.efspserver.services.FirmAttorneyAndServiceService
Service that handles the Firm, Attorney, and Service Endpoints.
- Author:
- litlab
-
Constructor Summary
ConstructorsConstructorDescriptionFirmAttorneyAndServiceService
(String jurisdiction, String env, DataSource userDs, Supplier<CodeDatabase> cdSupplier) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
attachServiceContact
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId, String json) jakarta.ws.rs.core.Response
createAttorney
(jakarta.ws.rs.core.HttpHeaders httpHeaders, AttorneyType attorney) jakarta.ws.rs.core.Response
createServiceContact
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String strInput) jakarta.ws.rs.core.Response
detachServiceContact
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId, String caseId, String casePartyId) jakarta.ws.rs.core.Response
getAll()
jakarta.ws.rs.core.Response
getAttorney
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String attorneyId) jakarta.ws.rs.core.Response
getAttorneyList
(jakarta.ws.rs.core.HttpHeaders httpHeaders) jakarta.ws.rs.core.Response
getPublicList
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String json) jakarta.ws.rs.core.Response
getSelfFirm
(jakarta.ws.rs.core.HttpHeaders httpHeaders) jakarta.ws.rs.core.Response
getServiceContact
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId) jakarta.ws.rs.core.Response
getServiceContactList
(jakarta.ws.rs.core.HttpHeaders httpHeaders) jakarta.ws.rs.core.Response
removeAttorney
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String attorneyId) jakarta.ws.rs.core.Response
removeServiceContact
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId) jakarta.ws.rs.core.Response
updateAttorney
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String attorneyId, String json) jakarta.ws.rs.core.Response
updateFirm
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String json) jakarta.ws.rs.core.Response
updateServiceContact
(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId, String json)
-
Constructor Details
-
FirmAttorneyAndServiceService
public FirmAttorneyAndServiceService(String jurisdiction, String env, DataSource userDs, Supplier<CodeDatabase> cdSupplier)
-
-
Method Details
-
getAll
@GET @Path("/") public jakarta.ws.rs.core.Response getAll() -
getSelfFirm
@GET @Path("/firm") public jakarta.ws.rs.core.Response getSelfFirm(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders) -
updateFirm
@PATCH @Path("/firm") public jakarta.ws.rs.core.Response updateFirm(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, String json) -
getAttorneyList
@GET @Path("/attorneys") public jakarta.ws.rs.core.Response getAttorneyList(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders) -
getAttorney
@GET @Path("/attorneys/{attorney_id}") public jakarta.ws.rs.core.Response getAttorney(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @PathParam("attorney_id") String attorneyId) -
createAttorney
@POST @Path("/attorneys") public jakarta.ws.rs.core.Response createAttorney(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, AttorneyType attorney) -
updateAttorney
-
removeAttorney
@DELETE @Path("/attorneys/{attorney_id}") public jakarta.ws.rs.core.Response removeAttorney(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @PathParam("attorney_id") String attorneyId) -
getServiceContactList
@GET @Path("/service-contacts") public jakarta.ws.rs.core.Response getServiceContactList(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders) -
getServiceContact
@GET @Path("/service-contacts/{contact_id}") public jakarta.ws.rs.core.Response getServiceContact(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @PathParam("contact_id") String contactId) -
removeServiceContact
@DELETE @Path("/service-contacts/{contact_id}") public jakarta.ws.rs.core.Response removeServiceContact(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @PathParam("contact_id") String contactId) -
createServiceContact
@POST @Path("/service-contacts") public jakarta.ws.rs.core.Response createServiceContact(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, String strInput) -
attachServiceContact
@PUT @Path("/service-contacts/{contact_id}/cases") public jakarta.ws.rs.core.Response attachServiceContact(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @PathParam("contact_id") String contactId, String json) - Parameters:
json
- should be a JSON object with a "caseId" and "casePartyId" keys, both with string values
-
detachServiceContact
@DELETE @Path("/service-contacts/{contact_id}/cases/{case_id}") public jakarta.ws.rs.core.Response detachServiceContact(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @PathParam("contact_id") String contactId, @PathParam("case_id") String caseId, @QueryParam("case_party_id") String casePartyId) -
updateServiceContact
-
getPublicList
@GET @Path("/service-contacts/public") public jakarta.ws.rs.core.Response getPublicList(@Context jakarta.ws.rs.core.HttpHeaders httpHeaders, String json)
-