public View(Role role) { this.name = role.name; this.source = role.getSource(); } }
public Role(String name) { this.setName(name); }
public void makeBootstrappingAccount(ArtifactSourcesConfig artifactSourcesConfig) { permissions.clear(); requiredGroupMembership.clear(); }
public Builder add(Authorization a, List<String> groups) { groups.forEach(group -> add(a, group)); return this; }
public View(Account account, Set<Role> userRoles, boolean isAdmin) { this.name = account.name; if (isAdmin) { this.authorizations = Sets.newHashSet(Authorization.READ, Authorization.WRITE); } else { this.authorizations = account.permissions.getAuthorizations(userRoles); } } }
@JsonIgnore public View getView(Set<Role> userRoles, boolean isAdmin) { return new View(this, userRoles, isAdmin); }
@JsonIgnore public View getView(Set<Role> ignored, boolean isAdmin) { return new View(this); }
public String keySuffix() { return this.toString().toLowerCase() + "s"; } }
@JsonIgnore public View getView(Set<Role> userRoles, boolean isAdmin) { return new View(this, userRoles, isAdmin); }
public Role(String name) { this.setName(name); }
public void makeBootstrappingAccount(ArtifactSourcesConfig artifactSourcesConfig) { permissions.clear(); requiredGroupMembership.clear(); }
public View(Role role) { this.name = role.name; this.source = role.getSource(); } }
public View(Account account, Set<Role> userRoles, boolean isAdmin) { this.name = account.name; if (isAdmin) { this.authorizations = Sets.newHashSet(Authorization.READ, Authorization.WRITE); } else { this.authorizations = account.permissions.getAuthorizations(userRoles); } } }
public View(Application application, Set<Role> userRoles, boolean isAdmin) { this.name = application.name; if (isAdmin) { this.authorizations = Sets.newHashSet(Authorization.READ, Authorization.WRITE); } else { this.authorizations = application.permissions.getAuthorizations(userRoles); } } }
public View(Application application, Set<Role> userRoles, boolean isAdmin) { this.name = application.name; if (isAdmin) { this.authorizations = Sets.newHashSet(Authorization.READ, Authorization.WRITE); } else { this.authorizations = application.permissions.getAuthorizations(userRoles); } } }