com.esri.arcgis.server
Class IPermissionsAdmin2Proxy
java.lang.Object
com.esri.arcgis.interop.Dispatch
com.esri.arcgis.server.IPermissionsAdminProxy
com.esri.arcgis.server.IPermissionsAdmin2Proxy
- All Implemented Interfaces:
- IPermissionsAdmin, IPermissionsAdmin2, Externalizable, Serializable
public class IPermissionsAdmin2Proxy
- extends IPermissionsAdminProxy
- implements IPermissionsAdmin2, Serializable
Provides administrative access to the Permissions Store.
Description
IPermissionsAdmin2 provides methods to Allow and Deny operations on ArcGIS for Server resources and to retrieve all principals with access to resources. Additionally, it provides a method to remove all permissions on all resources for a particular principal.
The IPermissionsAdmin2 interface can be obtained by a query interface with the IServerObjectAdmin interface.
Remarks
The following administration functionality of the ArcGIS Server is exposed by the methods of IPermissionsAdmin2:
Administer role-based ArcGIS Server security:
- Allow permissions on a resource.
- Deny permissions on a resource.
- Clean all allow/deny rules from all resources associated with a specific principal.
Get information about the ArcGIS Security mode:
- Get all principals that have any Allow/Deny rules on any resource.
When To Use
Use the IPermissionsAdmin2 interface when your application needs to clear all permissions on all resources for a specific principal.
If your application is connecting to the server only to retrieve information about the current state of permissions on ArcGIS for Server GIS resources, use the IPermissionsManager interface instead.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
- See Also:
- Serialized Form
Fields inherited from class com.esri.arcgis.interop.Dispatch |
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
noncastable
public boolean noncastable
IPermissionsAdmin2Proxy
public IPermissionsAdmin2Proxy()
IPermissionsAdmin2Proxy
public IPermissionsAdmin2Proxy(Object obj)
throws IOException
- Throws:
IOException
IPermissionsAdmin2Proxy
protected IPermissionsAdmin2Proxy(Object obj,
String iid)
throws IOException
- Throws:
IOException
addListener
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
- Overrides:
addListener
in class IPermissionsAdminProxy
- Throws:
IOException
removeListener
public void removeListener(String iidStr,
Object theListener)
throws IOException
- Overrides:
removeListener
in class IPermissionsAdminProxy
- Throws:
IOException
cleanPermissions
public void cleanPermissions(String principal)
throws IOException,
AutomationException
- Removes all permissions for a particular principal.
Remarks
Use the CleanPermissions method to delete all allow/deny rules from all resources associated with the specified principal.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
- Specified by:
cleanPermissions
in interface IPermissionsAdmin2
- Parameters:
principal
- The principal (in)
- Throws:
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.