Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAT-7913 update models to support ACL operations #253

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
adongare marked this conversation as resolved.
Show resolved Hide resolved

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;
}
Loading