EPP 0.2.6

com.neulevel.epp.core.command
Class EppCommandUpdateSvcsub

java.lang.Object
  extended bycom.neulevel.epp.core.EppEntity
      extended bycom.neulevel.epp.core.command.EppCommand
          extended bycom.neulevel.epp.core.command.EppCommandUpdate
              extended bycom.neulevel.epp.core.command.EppCommandUpdateSvcsub

public class EppCommandUpdateSvcsub
extends EppCommandUpdate

This EppCommandUpdateSvcsub class implements EPP Command Update entity for EPP Svcsub objects.

Version:
$Revision: 1.1.1.1 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
 
Fields inherited from class com.neulevel.epp.core.command.EppCommandUpdate
statusAdded, statusRemoved
 
Fields inherited from class com.neulevel.epp.core.command.EppCommand
clTRID, creds, unspec
 
Constructor Summary
EppCommandUpdateSvcsub(java.lang.String id)
          Creates an EppCommandUpdateSvcsub given the id of the service subscription object
EppCommandUpdateSvcsub(java.lang.String id, java.lang.String xid)
          Creates an EppCommandUpdateSvcsub given the id of service subscription object and the client transaction id
 
Method Summary
 void addContact(EppContactType contact)
          Adds a new contact to be associated with the service subscription object
 void addParam(EppSvcsubParam param)
          Adds a new service parameter to be associated with the service subscription object
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCommandUpdateSvcsub object.
 EppAuthInfo getAuthInfo()
          Gets the authorization info for the update operation
 java.util.Vector getContactAdded()
          Gets the list of new contacts to be added to the service subscription object
 java.util.Vector getContactRemoved()
          Gets the list of old contacts to be removed from the service subscription object
 java.lang.String getId()
          Gets the id of the service subscription object to be updated
 EppAuthInfo getNewAuthInfo()
          Gets the new authorization information for the domain, or null if the authorization information of the domain is not to be changed
 java.lang.String getNewRegistrant()
          Gets the new registrant's contact id for the domain, or null if the registrant of the domain is not to be changed
 java.util.Vector getParamAdded()
          Gets the list of new service parameters to be added to the service subscription object
 java.util.Vector getParamRemoved()
          Gets the list of old service parameters to be removed to the service subscription object
 java.lang.String getUserId()
          Gets the user id that can be used for authorization purpose
 void removeContact(EppContactType contact)
           
 void removeParam(EppSvcsubParam param)
          Removes an old service parameter associated with the service subscription object
 void setAuthInfo(EppAuthInfo authInfo)
          Sets the authorization info for the update operation
 void setId(java.lang.String id)
          Sets the id of the service subscription object to be updated
 void setNewAuthInfo(EppAuthInfo authInfo)
          Sets the new authorization information for the domain if it needs to be changed
 void setNewRegistrant(java.lang.String registrant)
          Sets the new registrant's contact id for the service subscription object if a new registrant claims the ownership of the service subscription object
 void setUserId(java.lang.String userid)
          Sets the user id that can be used for authorization purpose
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppCommandUpdateSvcsub object into an XML element
 
Methods inherited from class com.neulevel.epp.core.command.EppCommandUpdate
addStatus, addStatus, getAddedStatus, getRemovedStatus, removeStatus, removeStatus, statusFromXML, statusToXML, toString
 
Methods inherited from class com.neulevel.epp.core.command.EppCommand
check, create, delete, getClientTransactionId, getCreds, getUnspec, info, renew, setClientTransactionId, setCreds, setUnspec, toXMLCommon, toXMLCommon, toXMLCommon, toXMLCommon, transfer, update
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppCommandUpdateSvcsub

public EppCommandUpdateSvcsub(java.lang.String id)
Creates an EppCommandUpdateSvcsub given the id of the service subscription object


EppCommandUpdateSvcsub

public EppCommandUpdateSvcsub(java.lang.String id,
                              java.lang.String xid)
Creates an EppCommandUpdateSvcsub given the id of service subscription object and the client transaction id

Method Detail

getId

public java.lang.String getId()
Gets the id of the service subscription object to be updated


setId

public void setId(java.lang.String id)
Sets the id of the service subscription object to be updated


getParamAdded

public java.util.Vector getParamAdded()
Gets the list of new service parameters to be added to the service subscription object


addParam

public void addParam(EppSvcsubParam param)
Adds a new service parameter to be associated with the service subscription object


getParamRemoved

public java.util.Vector getParamRemoved()
Gets the list of old service parameters to be removed to the service subscription object


removeParam

public void removeParam(EppSvcsubParam param)
Removes an old service parameter associated with the service subscription object


getContactAdded

public java.util.Vector getContactAdded()
Gets the list of new contacts to be added to the service subscription object


addContact

public void addContact(EppContactType contact)
Adds a new contact to be associated with the service subscription object


getContactRemoved

public java.util.Vector getContactRemoved()
Gets the list of old contacts to be removed from the service subscription object


removeContact

public void removeContact(EppContactType contact)

getNewRegistrant

public java.lang.String getNewRegistrant()
Gets the new registrant's contact id for the domain, or null if the registrant of the domain is not to be changed


setNewRegistrant

public void setNewRegistrant(java.lang.String registrant)
Sets the new registrant's contact id for the service subscription object if a new registrant claims the ownership of the service subscription object


getNewAuthInfo

public EppAuthInfo getNewAuthInfo()
Gets the new authorization information for the domain, or null if the authorization information of the domain is not to be changed


setNewAuthInfo

public void setNewAuthInfo(EppAuthInfo authInfo)
Sets the new authorization information for the domain if it needs to be changed


getUserId

public java.lang.String getUserId()
Gets the user id that can be used for authorization purpose


setUserId

public void setUserId(java.lang.String userid)
Sets the user id that can be used for authorization purpose


getAuthInfo

public EppAuthInfo getAuthInfo()
Gets the authorization info for the update operation


setAuthInfo

public void setAuthInfo(EppAuthInfo authInfo)
Sets the authorization info for the update operation


toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppCommandUpdateSvcsub object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppCommandUpdateSvcsub object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppCommandUpdateSvcsub object. The caller of this method must make sure that the root node is of an EPP Command Update entity for an EPP Svcsub object.

Parameters:
root - root node for an EppCommandUpdate object in XML format
Returns:
an EppCommandUpdateSvcsub object, or null if the node is invalid

EPP 0.2.6

Copyright © 2001-2002 NeuLevel, Inc. All Rights Reserved.