com.sun.identity.liberty.ws.disco
Class Modify

java.lang.Object
  extended by com.sun.identity.liberty.ws.disco.Modify

public class Modify
extends Object

This class represents a discovery modify request. The following schema fragment specifies the expected content within the Modify object.

 <xs:element name="Modify" type="ModifyType"/>
 <complexType name="ModifyType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <group ref="{urn:liberty:disco:2003-08}ResourceIDGroup"/>
         <element name="InsertEntry" type="{urn:liberty:disco:2003-08}InsertEntryType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="RemoveEntry" type="{urn:liberty:disco:2003-08}RemoveEntryType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Constructor Summary
Modify()
          Default constructor.
Modify(Element root)
          Constructor.
Modify(EncryptedResourceID resourceID, List insertEntry, List removeEntry)
          Constructor.
Modify(ResourceID resourceID, List insertEntry, List removeEntry)
          Constructor.
 
Method Summary
 EncryptedResourceID getEncryptedResourceID()
          Gets the encrypted resource ID for the discovery resource to be modified.
 String getId()
          Gets id attribute.
 List getInsertEntry()
          Gets the value of the InsertEntry property.
 List getRemoveEntry()
          Gets the value of the RemoveEntry property.
 ResourceID getResourceID()
          Gets the resource ID for the discovery resource to be modified.
 void setEncryptedResourceID(EncryptedResourceID value)
          Sets the encrypted resource ID for the discovery resource to be modified.
 void setInsertEntry(List inserts)
          Sets the value of the InsertEntry property.
 void setRemoveEntry(List removes)
          Sets the value of the RemoveEntry property.
 void setResourceID(ResourceID resourceID)
          Sets resource ID for the discovery resource to be modified.
 String toString()
          Gets string format.
 

Constructor Detail

Modify

public Modify(ResourceID resourceID,
              List insertEntry,
              List removeEntry)
Constructor.

Parameters:
resourceID - ID for the discovery resource to be modified
insertEntry - List of insert entries
removeEntry - List of remove entries

Modify

public Modify(EncryptedResourceID resourceID,
              List insertEntry,
              List removeEntry)
Constructor.

Parameters:
resourceID - Encrypted Discovery Resource ID to be modified
insertEntry - List of insert entries
removeEntry - List of remove entries

Modify

public Modify()
Default constructor.


Modify

public Modify(Element root)
       throws DiscoveryException
Constructor.

Parameters:
root - Modify DOM element
Throws:
DiscoveryException - if error occurs
Method Detail

getEncryptedResourceID

public EncryptedResourceID getEncryptedResourceID()
Gets the encrypted resource ID for the discovery resource to be modified.

Returns:
the encrypted resource ID.
See Also:
Modify.setEncryptedResourceID(EncryptedResourceID)

setEncryptedResourceID

public void setEncryptedResourceID(EncryptedResourceID value)
Sets the encrypted resource ID for the discovery resource to be modified.

Parameters:
value - the encrypted resource ID.
See Also:
Modify.getEncryptedResourceID()

getResourceID

public ResourceID getResourceID()
Gets the resource ID for the discovery resource to be modified.

Returns:
resource ID for the discovery resource to be modified.
See Also:
Modify.setResourceID(ResourceID)

setResourceID

public void setResourceID(ResourceID resourceID)
Sets resource ID for the discovery resource to be modified.

Parameters:
resourceID - resource ID for the discovery resource to be modified.
See Also:
Modify.getResourceID()

getId

public String getId()
Gets id attribute.

Returns:
id attribute.

getRemoveEntry

public List getRemoveEntry()
Gets the value of the RemoveEntry property.

Returns:
List of RemoveEntry objects
See Also:
Modify.setRemoveEntry(List)

setRemoveEntry

public void setRemoveEntry(List removes)
Sets the value of the RemoveEntry property.

Parameters:
removes - List of RemoveEntry object.
See Also:
Modify.getRemoveEntry()

getInsertEntry

public List getInsertEntry()
Gets the value of the InsertEntry property.

Returns:
List of InsertEntry object
See Also:
Modify.setInsertEntry(List)

setInsertEntry

public void setInsertEntry(List inserts)
Sets the value of the InsertEntry property.

Parameters:
inserts - List of InsertEntry object.
See Also:
Modify.getInsertEntry()

toString

public String toString()
Gets string format.

Overrides:
toString in class Object
Returns:
formatted String.