public class ServerRolesManager extends org.wso2.carbon.core.AbstractAdmin implements ServerRolesManagerService
| Constructor and Description |
|---|
ServerRolesManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addServerRoles(String[] serverRolesArray,
String serverRoleType)
put server role to the registry
|
String[] |
readServerRoles(String serverRoleType)
read server roles from registry
|
boolean |
removeServerRoles(String[] serverRolesArray,
String serverRoleType)
delete server role from the registry
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic String[] readServerRoles(String serverRoleType) throws ServerRolesException
readServerRoles in interface ServerRolesManagerServiceserverRoleType - - custom or defaultServerRolesException - - if operation failspublic boolean removeServerRoles(String[] serverRolesArray, String serverRoleType) throws ServerRolesException
removeServerRoles in interface ServerRolesManagerServiceserverRolesArray - - names of the server rolesserverRoleType - - custom or defaultServerRolesException - - if operation failspublic boolean addServerRoles(String[] serverRolesArray, String serverRoleType) throws ServerRolesException
addServerRoles in interface ServerRolesManagerServiceserverRolesArray - - names of the server roleserverRoleType - - custom or default TODO: this is always custom, refactorServerRolesException - - if operation failsCopyright © 2018 WSO2 Inc. All rights reserved.