|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.server.ServerObjectManager
public class ServerObjectManager
The ServerObjectManager object which creates ServerContext, ServerObjectConfigurationInfo and ServerObjectTypeInfo objects.
The ServerObjectManager object provides access to information about the GIS server to non-administrators, and creates ServerContexts for use by applications. Any application that runs as a user account in the agsusers user group on the ArcGIS Server can use the IGISServerConnection interface to connect to the ArcGIS Server and to get a reference to the ServerObjectManager.
A ServerContext is a reserved space within the server dedicated to a set of running objects. GIS server objects also live in a server context. When developing applications with ArcGIS server, all ArcObjects that your application creates and uses live within a server context.
ServerObjectManager
,
ServerObjectType
,
IAGSServerConnectionAdmin
,
AGSServerConnectionName
,
IEnumServerObjectType
,
IEnumServerDirectory
,
AGSServerConnection
,
IServerConnection
,
ServerObjectTypeInfo
,
IEnumServerObjectTypeInfo
,
IAGSServerObject
,
ServerDirectoryInfo
,
ServerObjectConfiguration
,
ServerContext
,
ServerObjectConfigurationStatus
,
IAGSServerObjectName
,
ServerConnection
,
IAGSServerConnectionName
,
IAGSEnumServerObjectName
,
ServerObject
,
IServerObjectConfigurationInfo
,
IServerObjectAdmin
,
AGSServerConnectionFactory
,
IAGSServerConnectionFactory
,
IEnumServerObjectConfigurationInfo
,
IGISServerConnection
,
IAGSServerConnection
,
IServerContext
,
ServerDirectory
,
ServerObjectConfigurationInfo
,
IEnumServerMachine
,
ServerMachine
,
IServerObjectConfiguration
,
IServerObjectManager
,
IServerObjectTypeInfo
,
IServerMachine
,
IServerObject
,
IServerObjectType
,
GISServerConnection
,
AGSServerObjectName
,
ServerObjectAdmin
,
IEnumServerObjectConfiguration
,
Serialized FormConstructor Summary | |
---|---|
ServerObjectManager(Object obj)
Construct a ServerObjectManager using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
checkForDescendentsWithDifferentPermissions(String principal,
String resource,
String operation)
Checks whether the specified principal has different permissions among the descendents of the specified parent resource/operation combination. |
boolean |
checkPermission(String principal,
String resource,
String operation)
Checks whether the specified principal has permission to perform the given operation on the indicated resource. |
IServerContext |
createServerContext(String configName,
String typeName)
Gets a reference to a server context. |
IServiceCatalog2 |
createServiceCatalog()
Gets the ServiceCatalog for the services running on the server. |
boolean |
equals(Object o)
Compare this object with another |
IServerObjectConfigurationInfo |
getConfigurationInfo(String name,
String typeName)
Gets the ServerObjectConfigurationInfo for the specified Name and TypeName. |
IEnumServerObjectConfigurationInfo |
getConfigurationInfos()
An enumerator over all the GIS server's ServerObjectConfigurationInfos. |
IEnumServerObjectConfigurationInfo |
getConfigurationInfosEx(String folderName)
An enumerator over all the ArcGIS server's ServerObjectExtensionInfos in a given folder. |
IEnumServerObjectConfigurationInfo |
getConfigurationInfosEx2(String folderName,
int stat)
An enumerator over the ArcGIS server's ServerObjectExtensionInfos in a given folder. |
IServerObjectConfigurationStatus |
getConfigurationStatus(String name,
String typeName)
Get the configuration status for a server object configuration with the specified Name and TypeName. |
IEnumServerObjectExtensionTypeInfo |
getExtensionTypeInfos(String sOTypeName)
An enumerator over all the ArcGIS server's ServerObjectExtensionTypeInfos. |
IPropertySet |
getFolderInfo(String folderName)
Properties associated with a server configuration folder. |
IEnumBSTR |
getFolders(String folderName)
An array of folder names in the server configuration folder. |
IEnumBSTR |
getPrincipalsWithPermissionOnResource(String resource,
String operation)
Enumerates all principals having permission to perform the specified operation on the given resource. |
IEnumServerDirectoryInfo |
getServerDirectoryInfos()
An enumerator over all the GIS server's ServerDirectoryInfos. |
IPropertySet |
getSystemInfo()
The properties of the underlying system hardware and software. |
IEnumServerObjectTypeInfo |
getTypeInfos()
An enumerator over all the GIS server's ServerObjectTypeInfos. |
int |
hashCode()
the hashcode for this object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public ServerObjectManager(Object obj) throws IOException
obj
to ServerObjectManager
. *
ServerObjectManager o = (ServerObjectManager)obj; // will not work
ServerObjectManager o = new ServerObjectManager(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
ServerObjectManager theServerObjectManager = (ServerObjectManager) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IServerContext createServerContext(String configName, String typeName) throws IOException, AutomationException
The CreateServerContext method on IServerObjectManager is used to get a reference to a context on the server. A context is a process managed by the server within which a server object runs. You can use CreateServerContext to create a context based on a server object configuration, or you can create empty contexts soley for the purpose of creating ArcObjects on the fly within the server.
When using CreateServerContext to create a context based on a server object configuration, if the server object configuration is pooled, you may get a reference to a context that is already created and running in the server. When you have completed using that context, it is important to released it explicitly by calling the ReleaseContext method on IServerContext to return it to the pool. When using CreateServerContext to create a context based on a non-pooled server object configuration, or when creating an empty context, a new context is created on the server. You still need to call ReleaseContext when you are finished using it, and the context is destroyed on the server.
As of 9.3 some of the possible values for typeName are:
createServerContext
in interface IServerObjectManager
configName
- The configName (in)typeName
- The typeName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectConfigurationInfo getConfigurationInfo(String name, String typeName) throws IOException, AutomationException
Returns the server configuration with the specified Name and Type as a ServerObjectConfigurationInfo object. The Info object provides information about the server object configuration required to make use of them in an application. This method will only return a ServerObjectConfigurationInfo for configurations which are started. If you call this method and specify a configuration which is not started, it will return an error.
Additional information about started server object configurations, and configurations that are not started can be accessed using the IServerObjectAdmin interface.
getConfigurationInfo
in interface IServerObjectManager
name
- The name (in)typeName
- The typeName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumServerObjectConfigurationInfo getConfigurationInfos() throws IOException, AutomationException
GetConfigurationInfos returns an enumeration (IEnumServerObjectConfigurationInfo) of IServerObjectConfigurationInfo for configurations of any esriConfigurationStatus from all folders.
These Info objects provide information about the server object configurations and types that are required to make use of them in an application. Additional information about server object configurations can be accessed using the IServerObjectAdmin interface.
getConfigurationInfos
in interface IServerObjectManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumServerObjectTypeInfo getTypeInfos() throws IOException, AutomationException
Returns and enumeration of server object types in the server as ServerObjectTypeInfo objects. These Info objects provide information about the server object types required to make use of them in an application. Additional information about server object types in the server can be accessed using the IServerObjectAdmin interface.
getTypeInfos
in interface IServerObjectManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumServerDirectoryInfo getServerDirectoryInfos() throws IOException, AutomationException
Returns an enumeration of server directories configured in the server as ServerDirectoryInfo objects. These Info objects provide information about the server directories required to make use of them in an application. Additional information about server directories configured in the server can be accessed using the IServerObjectAdmin interface.
getServerDirectoryInfos
in interface IServerObjectManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getSystemInfo() throws IOException, AutomationException
The SystemInfo property returns a PropertySet containing properties indicating the operating system name and messaeg version of the GIS server.
getSystemInfo
in interface IServerObjectManager2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumServerObjectExtensionTypeInfo getExtensionTypeInfos(String sOTypeName) throws IOException, AutomationException
Retrieves an enumeration of IServerObjectTypeInfos from the ArcGIS Server system configuration (Server.cfg). The IServerObjectTypeInfo interface provides the name and description of a server object type.
getExtensionTypeInfos
in interface IServerObjectManager2
sOTypeName
- The sOTypeName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumServerObjectConfigurationInfo getConfigurationInfosEx(String folderName) throws IOException, AutomationException
GetConfigurationInfosEx returns an enumeration (IEnumServerObjectConfigurationInfo) of IServerObjectConfigurationInfo for configurations of any esriConfigurationStatus from the folder specified.
Some folderNames have special significance:
folderName == “” means “root”.
folderName == “NULL” means “all folders and root”
getConfigurationInfosEx
in interface IServerObjectManager2
folderName
- The folderName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getFolders(String folderName) throws IOException, AutomationException
getFolders
in interface IServerObjectManager2
folderName
- The folderName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getFolderInfo(String folderName) throws IOException, AutomationException
getFolderInfo
in interface IServerObjectManager2
folderName
- The folderName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectConfigurationStatus getConfigurationStatus(String name, String typeName) throws IOException, AutomationException
getConfigurationStatus
in interface IServerObjectManager2
name
- The name (in)typeName
- The typeName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumServerObjectConfigurationInfo getConfigurationInfosEx2(String folderName, int stat) throws IOException, AutomationException
GetConfigurationInfosEx2 returns an enumeration (IEnumServerObjectConfigurationInfo) of IServerObjectConfigurationInfo for configurations of a specific esriConfigurationStatus from the folder specified.
Some folderNames have special significance:
folderName == “” means “root”.
folderName == “NULL” means “all folders and root”
getConfigurationInfosEx2
in interface IServerObjectManager3
folderName
- The folderName (in)stat
- A com.esri.arcgis.server.esriConfigurationStatus constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServiceCatalog2 createServiceCatalog() throws IOException, AutomationException
createServiceCatalog
in interface IServerObjectManager4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean checkPermission(String principal, String resource, String operation) throws IOException, AutomationException
Use the CheckPermissions method to query the server object manager for whether the given roles have permissions to perform all operations on an indicated resource.
checkPermission
in interface IPermissionsManager
principal
- The principal (in)resource
- The resource (in)operation
- The operation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getPrincipalsWithPermissionOnResource(String resource, String operation) throws IOException, AutomationException
Use the GetPrincipalsWithPermissionsOnResource method to query the server object manager for the roles that have permissions for all operations on the indicated resource.
getPrincipalsWithPermissionOnResource
in interface IPermissionsManager
resource
- The resource (in)operation
- The operation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean checkForDescendentsWithDifferentPermissions(String principal, String resource, String operation) throws IOException, AutomationException
Use the CheckForDescendentsWithDifferentPermissions method to query the server object manager as to whether the indicated resource has children that have permissions with different permissions.
checkForDescendentsWithDifferentPermissions
in interface IPermissionsManager
principal
- The principal (in)resource
- The resource (in)operation
- The operation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |