Search in sources :

Example 1 with ClientEntityAwareDTO

use of gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO in project api-core by ca-cwds.

the class R05814_1Test method dto.

public static ClientEntityAwareDTO dto(Client client, PlacementEpisode... placementEpisodes) {
    ClientEntityAwareDTO dto = new ClientEntityAwareDTO();
    dto.setEntity(client);
    dto.getPlacementEpisodes().addAll(Arrays.asList(placementEpisodes));
    return dto;
}
Also used : ClientEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO)

Example 2 with ClientEntityAwareDTO

use of gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO in project api-core by ca-cwds.

the class R05814_2Test method dto.

public static ClientEntityAwareDTO dto(Client client, PlacementEpisode... placementEpisodes) {
    ClientEntityAwareDTO dto = new ClientEntityAwareDTO();
    dto.setEntity(client);
    dto.getPlacementEpisodes().addAll(Arrays.asList(placementEpisodes));
    return dto;
}
Also used : ClientEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO)

Example 3 with ClientEntityAwareDTO

use of gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO in project api-core by ca-cwds.

the class R00736Test method dto.

private static ClientEntityAwareDTO dto(String driverLicenseNumber, short driverLicenseStateCode) {
    Client client = new Client();
    client.setDriverLicenseNumber(driverLicenseNumber);
    client.setDriverLicenseStateCode(driverLicenseStateCode);
    ClientEntityAwareDTO dto = new ClientEntityAwareDTO();
    dto.setEntity(client);
    return dto;
}
Also used : ClientEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO) Client(gov.ca.cwds.data.legacy.cms.entity.Client)

Example 4 with ClientEntityAwareDTO

use of gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO in project api-core by ca-cwds.

the class R06751Test method dto.

public static ClientEntityAwareDTO dto(Client client, ClientServiceProvider... clientServiceProviders) {
    ClientEntityAwareDTO dto = new ClientEntityAwareDTO();
    dto.setEntity(client);
    dto.getClientServiceProviders().addAll(Arrays.asList(clientServiceProviders));
    return dto;
}
Also used : ClientEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO)

Example 5 with ClientEntityAwareDTO

use of gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO in project api-core by ca-cwds.

the class R00756Test method dto.

private static ClientEntityAwareDTO dto(Client client, ClientRelationship... relationships) {
    ClientEntityAwareDTO dto = new ClientEntityAwareDTO();
    dto.setEntity(client);
    dto.getClientRelationships().addAll(Arrays.asList(relationships));
    return dto;
}
Also used : ClientEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO)

Aggregations

ClientEntityAwareDTO (gov.ca.cwds.cms.data.access.dto.ClientEntityAwareDTO)6 Client (gov.ca.cwds.data.legacy.cms.entity.Client)1