Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


oracle.search.admin.api.ws.client
Class OperationControl

java.lang.Object
  extended by oracle.search.admin.api.ws.client.OperationControl


public class OperationControl
extends Object

Fine-tunes the behavior of the main API operations in AdminPortType.

The supported controls are summarized below:   

Name Meaning Operations Values Default
DUPE_METHOD The action to take when an object already exists. createAll error, ignore, overwrite error
IGNORE_INVALID_STATE Whether to skip objects that cannot be processed due to their state. createAll, deleteList, deleteAll, updateAll true, false false
IGNORE_NOT_FOUND Whether to skip objects that are not found. deleteList, exportList, getStateList true, false false
NOT_FOUND_METHOD The action to take when an object does not exist. updateAll error, ignore, create error
UPDATE_METHOD The method that dictates how object properties are updated. update, updateAll add, remove, overwrite none

The DUPE_METHOD control values are:

error: If a duplicate object is encountered, then the operation raises an error. Any changes that have been made in the operation are rolled back.

ignore: If a duplicate object is encountered, then the operation skips the duplicate object without modifying it and moves on to the next object to be processed.

overwrite: If a duplicate object is encountered, then the operation overwrites the duplicate object with the new object description that was specified in the input XML. The overwrite behavior corresponds to the "overwrite" value for the UPDATE_METHOD control.

The NOT_FOUND_METHOD control values are:

error: If a non-existent object is encountered, then the operation raises an error. Any changes that have been made in the operation are rolled back.

ignore: If a non-existent object is encountered, then the operation skips the object and moves on to the next object to be processed.

create: If a non-existent object is encountered, then the operation creates it using the object description that was specified in the input XML.

The UPDATE_METHOD control values are:

add: Only applies to object properties modeled as variable-size lists. For example, add applies to data source attribute mappings but not to crawler settings. Properties specified in the input XML are added to the object definition. Properties that are not specified in input the XML are not modified. If a property being added already exists in the object definition, it is overwritten.

remove: Only applies to properties modeled as variable-size lists. For example, remove applies to data source attribute mappings but not to crawler settings. Properties specified in the input XML are removed from the object definition. Properties that are not specified in the input XML are not modified. If a property does not exist in the object definition, it is ignored.

overwrite: Properties specified in the input XML overwrite the properties in the object definition. If a property is modeled as a variable-size list, the new list from the input XML replaces the old list. If the new list is not specified or the new list is empty, the property is not modified. If a property is modeled as a fixed-size list, only the entries specified in the input XML overwrite the values in the object definition. Entries that are not specified in the input XML are not modified. Finally, if a property is not a list, the new value from the XML overwrites the old value.

The following schema fragment specifies the expected SOAP XML for this class:

 <complexType name="operationControl">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="controlName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="controlValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
See Also:
AdminPortType

Constructor Summary
OperationControl()
           

 

Method Summary
 String getControlName()
          Returns the control name.
 String getControlValue()
          Returns the control value.
 void setControlName(String value)
          Sets the control name.
 void setControlValue(String value)
          Sets the control value.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OperationControl

public OperationControl()

Method Detail

getControlName

public String getControlName()
Returns the control name.
Returns:
The control name.

setControlName

public void setControlName(String value)
Sets the control name.
Parameters:
value - The control name.

getControlValue

public String getControlValue()
Returns the control value.
Returns:
The control value.

setControlValue

public void setControlValue(String value)
Sets the control value.
Parameters:
value - The control value.

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


Copyright © 2006, 2010, Oracle and/or its affiliates. All rights reserved.