Class ServerUtilities
- Namespace
- ESRI.Server.SOESupport
- Assembly
- ESRI.Server.SOESupport.dll
Utility class for SOEs and SOIs.
public static class ServerUtilities
- Inheritance
-
ServerUtilities
- Inherited Members
Methods
GetGroupInfo(IServerEnvironment2)
Returns list of groups for user making the request.
public static HashSet<string> GetGroupInfo(IServerEnvironment2 serverEnvironment)
Parameters
serverEnvironmentIServerEnvironment2Optional reference to IServerEnvironment2. Specify null to get current server environment.
Returns
- HashSet<string>
In case of federated server, returns set of group names for current user. Returns set of roles for current user when server is not federated.
GetRoleInformation(IServerUserInfo)
Get allowed roles for the user making a request.
public static HashSet<string> GetRoleInformation(IServerUserInfo userInfo)
Parameters
userInfoIServerUserInfoReference to IServerUserInfo instance.
Returns
GetServerEnvironment()
The GetServerEnvironment method obtains reference to IServerEnvironment2 for current server environment. This method does not cache any references. If you want to get cached IServerEnvironment2 reference for better performance, use SOIBase.ServerEnvironment property.
public static IServerEnvironment2 GetServerEnvironment()
Returns
QueryConfigurationProperties(string, string)
Retrieves service configuration properties using local admin connection.
public static IPropertySet QueryConfigurationProperties(string servicename, string typename)