public static enum CKANUser.Role extends Enum<CKANUser.Role>
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,CKANUser.Role> |
ROLE_BY_CKAN_ROLE |
protected static Map<String,CKANUser.Role> |
ROLE_BY_PORTAL_ROLE |
| Modifier and Type | Method and Description |
|---|---|
String |
getCkanRole() |
static String |
getCkanRoleFromPortalRole(String portalRole) |
String |
getPortalRole() |
static String |
getPortalRoleFromCkanRole(String ckanRole) |
static CKANUser.Role |
getRoleFromCkanRole(String ckanRole) |
static CKANUser.Role |
getRoleFromPortalRole(String portalRole) |
static CKANUser.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CKANUser.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CKANUser.Role MEMBER
public static final CKANUser.Role EDITOR
public static final CKANUser.Role ADMIN
protected static final Map<String,CKANUser.Role> ROLE_BY_PORTAL_ROLE
protected static final Map<String,CKANUser.Role> ROLE_BY_CKAN_ROLE
public static CKANUser.Role[] values()
for (CKANUser.Role c : CKANUser.Role.values()) System.out.println(c);
public static CKANUser.Role valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getPortalRole()
public String getCkanRole()
public static CKANUser.Role getRoleFromPortalRole(String portalRole)
public static CKANUser.Role getRoleFromCkanRole(String ckanRole)
Copyright © 2020. All Rights Reserved.