com.esri.arcgis.geoprocessing.tools.datamanagementtools
Class ChangePrivileges

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.datamanagementtools.ChangePrivileges
All Implemented Interfaces:
GPTool

public class ChangePrivileges
extends AbstractGPTool

Establishes or changes user access privileges to the input ArcSDE datasets, stand-alone feature classes, or tables. The Change Privileges tool is contained in the Data Management Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
ChangePrivileges()
          Creates the Change Privileges tool with defaults.
ChangePrivileges(java.lang.Object inDataset, java.lang.String user)
          Creates the Change Privileges tool with the required parameters.
 
Method Summary
 java.lang.String getEdit()
          Returns the Edit (Update/Insert/Delete) parameter of this tool .
 java.lang.Object getInDataset()
          Returns the Input Dataset parameter of this tool .
 java.lang.Object getOutDataset()
          Returns the Output Dataset parameter of this tool (Read only).
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 java.lang.String getUser()
          Returns the User parameter of this tool .
 java.lang.String getView()
          Returns the View (Select) parameter of this tool .
 void setEdit(java.lang.String edit)
          Sets the Edit (Update/Insert/Delete) parameter of this tool .
 void setInDataset(java.lang.Object inDataset)
          Sets the Input Dataset parameter of this tool .
 void setUser(java.lang.String user)
          Sets the User parameter of this tool .
 void setView(java.lang.String view)
          Sets the View (Select) parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangePrivileges

public ChangePrivileges()
Creates the Change Privileges tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


ChangePrivileges

public ChangePrivileges(java.lang.Object inDataset,
                        java.lang.String user)
Creates the Change Privileges tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
inDataset - the datasets, feature classes, or tables whose access privileges will be changed.
user - the database username whose privileges are being modified.
Method Detail

getInDataset

public java.lang.Object getInDataset()
Returns the Input Dataset parameter of this tool . This parameter is the datasets, feature classes, or tables whose access privileges will be changed. This is a required parameter.

Returns:
the Input Dataset

setInDataset

public void setInDataset(java.lang.Object inDataset)
Sets the Input Dataset parameter of this tool . This parameter is the datasets, feature classes, or tables whose access privileges will be changed. This is a required parameter.

Parameters:
inDataset - the datasets, feature classes, or tables whose access privileges will be changed.

getUser

public java.lang.String getUser()
Returns the User parameter of this tool . This parameter is the database username whose privileges are being modified. This is a required parameter.

Returns:
the User

setUser

public void setUser(java.lang.String user)
Sets the User parameter of this tool . This parameter is the database username whose privileges are being modified. This is a required parameter.

Parameters:
user - the database username whose privileges are being modified.

getView

public java.lang.String getView()
Returns the View (Select) parameter of this tool . This is an optional parameter.

Returns:
the View (Select)

setView

public void setView(java.lang.String view)
Sets the View (Select) parameter of this tool . This is an optional parameter.

Parameters:
view - null

getEdit

public java.lang.String getEdit()
Returns the Edit (Update/Insert/Delete) parameter of this tool . This is an optional parameter.

Returns:
the Edit (Update/Insert/Delete)

setEdit

public void setEdit(java.lang.String edit)
Sets the Edit (Update/Insert/Delete) parameter of this tool . This is an optional parameter.

Parameters:
edit - null

getOutDataset

public java.lang.Object getOutDataset()
Returns the Output Dataset parameter of this tool (Read only). This is an derived parameter.

Returns:
the Output Dataset

getToolName

public java.lang.String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public java.lang.String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public java.lang.String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias