Skip to content

Commit

Permalink
35399 Move AgentRoles from transaction-api to dina-base (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgendreau authored Dec 13, 2024
1 parent 1082a54 commit 7ef60a1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions dina-base-api/src/main/java/ca/gc/aafc/dina/entity/AgentRoles.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package ca.gc.aafc.dina.entity;

import java.util.List;
import java.util.UUID;
import javax.validation.constraints.Size;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;

/**
* Generic representation of an agent with one or multiple roles.
* The agent must have at least 1 role.
*/
@Data
@Builder
public class AgentRoles {

@NotNull
private UUID agent;

@NotEmpty
private List<@NotBlank String> roles;

@Size(max = 1000)
private String remarks;

}

0 comments on commit 7ef60a1

Please sign in to comment.