Define search criteria properties

First, you must define the properties that store the search criteria.

The base configuration includes a class where search criteria properties are to be defined. It is called RecoverNewJobsWrapperExt, and it is declared in the gw.rest.ext.pc.job.v1.security package. The base configuration version is an empty class that looks similar to this:
package gw.rest.ext.pc.job.v1.security

uses gw.rest.core.pc.job.v1.security.RecoverNewJobsWrapper

@Export
class RecoverNewJobsWrapperExt extends RecoverNewJobsWrapper {
}

To enable new job recovery, define the required search criteria in this class.

Sample RecoverNewJobsWrapperExt class

The sample implementation supports new job recovery search on the following values:

  • Account number
  • Job number
  • First name (of the primary insured)
  • Last name (of the primary insured)
  • Postal code (of the primary insured)

This is what the class looks like after configuration.

package gw.rest.ext.pc.job.v1.security

uses gw.rest.core.pc.job.v1.security.RecoverNewJobsWrapper

/*
 This class has recovery extension properties used for the Recover New Jobs endpoint. These recovery properties are examples only and have not gone through Risk Acceptance.
 */

@Export
class RecoverNewJobsWrapperExt extends RecoverNewJobsWrapper {
  var _accountNumber : String as AccountNumber
  var _firstName : String as FirstName
  var _jobNumber : String as JobNumber
  var _lastName : String as LastName
  var _postalCode : String as PostalCode
}