Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
added Action interface
Browse files Browse the repository at this point in the history
  • Loading branch information
violetd12 committed Apr 15, 2022
1 parent 1a35a2e commit ed49de2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions server/src/main/java/keywhiz/service/permissions/Action.java
@@ -0,0 +1,23 @@
package keywhiz.service.permissions;

/**
* Action class defines the set of actions that can be performed on an object
* */
public final class Action {
private Action() {}

// add clients to groups or add secrets to groups
public static final String ADD = "ADD";

public static final String CREATE = "CREATE";

// for secrets and permissions, it will be a soft deletion
public static final String DELETE = "DELETE";

public static final String READ = "READ";

// remove clients to groups or remove secrets to groups
public static final String REMOVE = "REMOVE";

public static final String UPDATE = "UPDATE";
}

0 comments on commit ed49de2

Please sign in to comment.