Changeset 6860 for ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/model/AuthenticationInfo.java
- Timestamp:
- 12/01/15 08:08:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/model/AuthenticationInfo.java
r5972 r6860 18 18 @XmlElement 19 19 private String displayName; 20 @XmlElement 21 private boolean isAdmin; 20 22 21 23 public AuthenticationInfo() { … … 26 28 } 27 29 28 public AuthenticationInfo(UserCredentials userInfo ) {30 public AuthenticationInfo(UserCredentials userInfo, boolean isAdmin) { 29 31 this.authenticated = (userInfo != null); 30 32 if (userInfo != null) { 31 33 this.username = userInfo.getPrincipalName(); 32 34 this.displayName = userInfo.getDisplayName(); 35 this.isAdmin = isAdmin; 33 36 } 34 37 } … … 46 49 } 47 50 51 public boolean isIsAdmin() { 52 return isAdmin; 53 } 54 48 55 }
Note: See TracChangeset
for help on using the changeset viewer.