Class FirmAttorneyAndServiceService
java.lang.Object
edu.suffolk.litlab.efsp.server.services.FirmAttorneyAndServiceService
Service that handles the Firm, Attorney, and Service Endpoints.
- Author:
- litlab
-
Constructor Summary
ConstructorsConstructorDescriptionFirmAttorneyAndServiceService(TylerDomain domain, Supplier<LoginDatabase> ldSupplier, Supplier<CodeDatabase> cdSupplier) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseattachServiceContact(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId, String json) jakarta.ws.rs.core.ResponsecreateAttorney(jakarta.ws.rs.core.HttpHeaders httpHeaders, AttorneyType attorney) jakarta.ws.rs.core.ResponsecreateServiceContact(jakarta.ws.rs.core.HttpHeaders httpHeaders, String strInput) jakarta.ws.rs.core.ResponsedetachServiceContact(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId, String caseId, String casePartyId) jakarta.ws.rs.core.ResponsegetAll()jakarta.ws.rs.core.ResponsegetAttorney(jakarta.ws.rs.core.HttpHeaders httpHeaders, String attorneyId) jakarta.ws.rs.core.ResponsegetAttorneyList(jakarta.ws.rs.core.HttpHeaders httpHeaders) jakarta.ws.rs.core.ResponsegetPublicList(jakarta.ws.rs.core.HttpHeaders httpHeaders, String json) jakarta.ws.rs.core.ResponsegetSelfFirm(jakarta.ws.rs.core.HttpHeaders httpHeaders) jakarta.ws.rs.core.ResponsegetServiceContact(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId) jakarta.ws.rs.core.ResponsegetServiceContactList(jakarta.ws.rs.core.HttpHeaders httpHeaders) jakarta.ws.rs.core.ResponseremoveAttorney(jakarta.ws.rs.core.HttpHeaders httpHeaders, String attorneyId) jakarta.ws.rs.core.ResponseremoveServiceContact(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId) jakarta.ws.rs.core.ResponseupdateAttorney(jakarta.ws.rs.core.HttpHeaders httpHeaders, String attorneyId, String json) jakarta.ws.rs.core.ResponseupdateFirm(jakarta.ws.rs.core.HttpHeaders httpHeaders, String json) jakarta.ws.rs.core.ResponseupdateServiceContact(jakarta.ws.rs.core.HttpHeaders httpHeaders, String contactId, String json)
-
Constructor Details
-
FirmAttorneyAndServiceService
public FirmAttorneyAndServiceService(TylerDomain domain, Supplier<LoginDatabase> ldSupplier, 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)
-