Class Roles
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.user.Roles
-
public class Roles extends java.lang.ObjectValidation, utility and serialization methods for roles used in user management.- Author:
- jonmv
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<ApplicationRole>applicationRoles(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application)Returns the list ofApplicationRoles aUserIdmay be a member of.static java.util.List<TenantRole>tenantRoles(com.yahoo.config.provision.TenantName tenant)Returns the list ofTenantRoles aUserIdmay be a member of.static RoletoRole(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application, java.lang.String roleName)Returns theRolethe given tenant and role names correspond to.static RoletoRole(com.yahoo.config.provision.TenantName tenant, java.lang.String roleName)Returns theRolethe given tenant, application and role names correspond to.static RoletoRole(java.lang.String value)Returns theRolethe given value represents.static java.lang.StringvalueOf(Role role)Returns a serialised representation the given role.
-
-
-
Method Detail
-
tenantRoles
public static java.util.List<TenantRole> tenantRoles(com.yahoo.config.provision.TenantName tenant)
Returns the list ofTenantRoles aUserIdmay be a member of.
-
applicationRoles
public static java.util.List<ApplicationRole> applicationRoles(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application)
Returns the list ofApplicationRoles aUserIdmay be a member of.
-
toRole
public static Role toRole(java.lang.String value)
Returns theRolethe given value represents.
-
toRole
public static Role toRole(com.yahoo.config.provision.TenantName tenant, java.lang.String roleName)
Returns theRolethe given tenant, application and role names correspond to.
-
toRole
public static Role toRole(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application, java.lang.String roleName)
Returns theRolethe given tenant and role names correspond to.
-
valueOf
public static java.lang.String valueOf(Role role)
Returns a serialised representation the given role.
-
-