Class Roles
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.user.Roles
Validation, utility and serialization methods for roles used in user management.
- Author:
- jonmv
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 RoleReturns theRolethe given tenant, application and role names correspond to.static RoleReturns theRolethe given value represents.static StringReturns a serialised representation the given role.
-
Method Details
-
tenantRoles
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
Returns theRolethe given value represents. -
toRole
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. -
valueOf
Returns a serialised representation the given role.
-