Class Roles
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.user.Roles
-
public class Roles extends Object
Validation, 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 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 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, String roleName)Returns theRolethe given tenant and role names correspond to.static RoletoRole(com.yahoo.config.provision.TenantName tenant, String roleName)Returns theRolethe given tenant, application and role names correspond to.static RoletoRole(String value)Returns theRolethe given value represents.static StringvalueOf(Role role)Returns a serialised representation the given role.
-
-
-
Method Detail
-
tenantRoles
public static List<TenantRole> tenantRoles(com.yahoo.config.provision.TenantName tenant)
Returns the list ofTenantRoles aUserIdmay be a member of.
-
applicationRoles
public static 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(com.yahoo.config.provision.TenantName tenant, 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, String roleName)
Returns theRolethe given tenant and role names correspond to.
-
-