Class TylerEcf4Helper

java.lang.Object
edu.suffolk.litlab.efsp.server.utils.TylerEcf4Helper

public class TylerEcf4Helper extends Object
Helper class that easily converts Java native types to Cumbersome XML Schema types, particularly those from Oasis's ECF standard, and the National Information Exchange Model (NIEM).

Some information about NIEM: Many of the types here all include the "SimpleObjectAttributeGroup", which, "provides a collection of attributes which are appropriate for definition of object types", including an ID attribute, a Metadata attribute, and a Link Metadata attribute that directly reference objects via IDs instead of including the object as an element. TBH, I'm not sure what the design decisions that dictate the use of them are, but they exist.

Author:
Bryce Willey
  • Constructor Details

    • TylerEcf4Helper

      public TylerEcf4Helper()
  • Method Details

    • prep

      public static <T extends QueryMessageType> T prep(T newMsg, String courtId)
    • makeResponse

      public static jakarta.ws.rs.core.Response makeResponse(QueryResponseMessageType resp, Supplier<jakarta.ws.rs.core.Response> defaultRespFunc)
    • mapTylerCodesToHttp

      public static jakarta.ws.rs.core.Response mapTylerCodesToHttp(List<ServiceHelpers.EcfError> err, Supplier<jakarta.ws.rs.core.Response> defaultResp)
    • setupReplys

      public static void setupReplys(CaseFilingType reply)
    • setupServicePort

      public static void setupServicePort(jakarta.xml.ws.BindingProvider bp)
      Sets up a connection to Tyler's SOAP API WITHOUT any Auth headers, but does handle the X.509 certificate and signing parameters.

      Can be used to make an Auth request, or can have the header inserted later.

    • setupServicePort

      public static void setupServicePort(jakarta.xml.ws.BindingProvider bp, UserCreds creds)
    • setupServicePort

      public static void setupServicePort(jakarta.xml.ws.BindingProvider bp, List<org.apache.cxf.headers.Header> headerList)
    • getIsIndividual

      public static boolean getIsIndividual(TylerFirmFactory firmFactory, UserCreds userCreds)
    • setupFirmPort

      public static Optional<TylerFirmClient> setupFirmPort(TylerFirmFactory firmFactory, UserCreds userCreds)
    • setupFirmPort

      public static Optional<TylerFirmClient> setupFirmPort(TylerFirmFactory firmFactory, UserCreds creds, boolean needsSoapHeader)
    • checkError

      public static Optional<ServiceHelpers.EcfError> checkError(ErrorType error)
      Returns the error type on errors from the ECF side of the API. They work the same as the Tyler ones.
    • checkErrors

      public static List<ServiceHelpers.EcfError> checkErrors(List<ErrorType> errors)