Skip to content

Commit

Permalink
MAT-7913 update models
Browse files Browse the repository at this point in the history
  • Loading branch information
adongare committed Nov 20, 2024
1 parent eb036cb commit 5b86675
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>gov.cms.madie</groupId>
<artifactId>madie-java-models</artifactId>
<version>0.6.70-SNAPSHOT</version>
<version>0.6.71-SNAPSHOT</version>
<name>madie-java-models</name>
<description>Java based models for MADiE microservices</description>
<properties>
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/gov/cms/madie/models/access/AclOperation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package gov.cms.madie.models.access;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class AclOperation {
@NotEmpty private List<AclSpecification> acls;
@NotNull private AclAction operation;

public enum AclAction {
GRANT,
REVOKE
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package gov.cms.madie.models.access;

import java.util.List;
import java.util.Set;

import lombok.Data;

@Data
public class AclSpecification {

private String userId;
private List<RoleEnum> roles;
private Set<RoleEnum> roles;
}

0 comments on commit 5b86675

Please sign in to comment.