-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto purge expired role/group members based on server/domain config (#…
…1941) Signed-off-by: mshneorson <[email protected]> Co-authored-by: mshneorson <[email protected]>
- Loading branch information
Showing
26 changed files
with
2,042 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
core/zms/src/main/java/com/yahoo/athenz/zms/ExpiredMembers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// This file generated by rdl 1.5.2. Do not modify! | ||
// | ||
|
||
package com.yahoo.athenz.zms; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import java.util.List; | ||
import com.yahoo.rdl.*; | ||
|
||
// | ||
// ExpiredMembers - | ||
// | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class ExpiredMembers { | ||
public List<ExpiryMember> expiredRoleMembers; | ||
public List<ExpiryMember> expiredGroupMembers; | ||
|
||
public ExpiredMembers setExpiredRoleMembers(List<ExpiryMember> expiredRoleMembers) { | ||
this.expiredRoleMembers = expiredRoleMembers; | ||
return this; | ||
} | ||
public List<ExpiryMember> getExpiredRoleMembers() { | ||
return expiredRoleMembers; | ||
} | ||
public ExpiredMembers setExpiredGroupMembers(List<ExpiryMember> expiredGroupMembers) { | ||
this.expiredGroupMembers = expiredGroupMembers; | ||
return this; | ||
} | ||
public List<ExpiryMember> getExpiredGroupMembers() { | ||
return expiredGroupMembers; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object another) { | ||
if (this != another) { | ||
if (another == null || another.getClass() != ExpiredMembers.class) { | ||
return false; | ||
} | ||
ExpiredMembers a = (ExpiredMembers) another; | ||
if (expiredRoleMembers == null ? a.expiredRoleMembers != null : !expiredRoleMembers.equals(a.expiredRoleMembers)) { | ||
return false; | ||
} | ||
if (expiredGroupMembers == null ? a.expiredGroupMembers != null : !expiredGroupMembers.equals(a.expiredGroupMembers)) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
} |
Oops, something went wrong.