-
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.
Merge pull request #23 from yahoo/rolemember
Support for temporary role members
- Loading branch information
Showing
39 changed files
with
2,248 additions
and
1,101 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
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
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/RoleMember.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.4.10. Do not modify! | ||
// | ||
|
||
package com.yahoo.athenz.zms; | ||
import com.yahoo.rdl.*; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
|
||
// | ||
// RoleMember - | ||
// | ||
@JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT) | ||
public class RoleMember { | ||
public String memberName; | ||
@RdlOptional | ||
public Timestamp expiration; | ||
|
||
public RoleMember setMemberName(String memberName) { | ||
this.memberName = memberName; | ||
return this; | ||
} | ||
public String getMemberName() { | ||
return memberName; | ||
} | ||
public RoleMember setExpiration(Timestamp expiration) { | ||
this.expiration = expiration; | ||
return this; | ||
} | ||
public Timestamp getExpiration() { | ||
return expiration; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object another) { | ||
if (this != another) { | ||
if (another == null || another.getClass() != RoleMember.class) { | ||
return false; | ||
} | ||
RoleMember a = (RoleMember) another; | ||
if (memberName == null ? a.memberName != null : !memberName.equals(a.memberName)) { | ||
return false; | ||
} | ||
if (expiration == null ? a.expiration != null : !expiration.equals(a.expiration)) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
} |
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
Oops, something went wrong.