EppContact
This EppContact
class implements EPP Contact objects.
Inheritance:
Public Fields
-
static const char* STATUS_CLIENT_DELETE_PROHIBITED
- Contact status - clientDeleteProhibited
-
static const char* STATUS_CLIENT_TRANSFER_PROHIBITED
- Contact status - clientTransferProhibited
-
static const char* STATUS_CLIENT_UPDATE_PROHIBITED
- Contact status - clientUpdateProhibited
-
static const char* STATUS_LINKED
- Contact status - linked
-
static const char* STATUS_OK
- Contact status - ok
-
static const char* STATUS_PENDING_DELETE
- Contact status - pendingDelete
-
static const char* STATUS_PENDING_TRANSFER
- Contact status - pendingTransfer
-
static const char* STATUS_SERVER_DELETE_PROHIBITED
- Contact status - serverDeleteProhibited
-
static const char* STATUS_SERVER_TRANSFER_PROHIBITED
- Contact status - serverTransferProhibited
-
static const char* STATUS_SERVER_UPDATE_PROHIBITED
- Contact status - serverUpdateProhibited
Public Methods
-
EppContact()
- Creates an
EppContact
object
-
EppContact( DOMString id )
- Creates an
EppContact
object, with a contact id
-
~EppContact()
- Destructor
-
virtual int getEntityType()
- Returns the run-time type of an EppEntity object
-
DOMString getId()
- Gets the contact id
-
void setId( DOMString id )
- Sets the contact id
-
EppContactData* getContactDataAscii()
- Gets the contact data in ascii encoding
-
void setContactDataAscii( EppContactData& ascii )
- Sets the contact data in ascii encoding
-
EppContactData* getContactDataI15d()
- Gets the contact data in native encoding
-
void setContactDataI15d( EppContactData& i15d )
- Sets the contact data in native encoding
-
EppE164* getVoice()
- Gets the voice phone number of the contact
-
void setVoice( DOMString voice )
- Sets the voice phone number of the contact
-
void setVoice( DOMString voice, DOMString ext )
- Sets the voice phone number and extenstion
-
void setVoice( EppE164 voice )
- Sets the voice phone number of the contact
-
EppE164* getFax()
- Gets the fax number of the contact
-
void setFax( DOMString fax )
- Sets the fax number of the contact
-
void setFax( DOMString fax, DOMString ext )
- Sets the fax number and extenstion
-
void setFax( EppE164 fax )
- Sets the fax number extension
-
DOMString getEmail()
- Gets the email address of the contact
-
void setEmail( DOMString email )
- Sets the email address of the contact
-
DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
- Converts the
EppContact
object into an XML element
-
static EppContact* fromXML( const DOM_Node& root )
- Converts an XML element into an
EppContact
object.
-
static EppCommandDeleteContact remove( DOMString id, DOMString xid )
- Creates an
EppCommandDeleteContact
object for deleting an EPP Contact object from the registry.
-
static EppCommandInfoContact info( DOMString id, DOMString xid )
- Creates an
EppCommandInfoContact
object for querying the details of an EPP Contact object
-
static EppCommandCheckContact check( DOMString xid )
- Creates an
EppCommandCheckContact
object for checking the existance of EPP Contact objects in the registry.
-
static EppCommandTransferContact transfer( DOMString id, DOMString xid )
- Creates an
EppCommandTransferContact
object for transfering an EPP Contact object in the registry.
-
static EppCommandUpdateContact update( DOMString id, DOMString xid )
- Creates an
EppCommandUpdateContact
object for updating an EPP Contact object in the registry.
Public Fields
-
static const int CONTACT
-
static const int DOMAIN
-
static const int HOST
Public Methods
-
DOMString getRoid()
-
void setRoid( DOMString roid )
-
DOMString getClientId()
-
void setClientId( DOMString clientId )
-
DOMString getClientIdCreated()
-
void setClientIdCreated( DOMString clientId )
-
time_t getDateCreated()
-
void setDateCreated( time_t cal )
-
DOMString getClientIdUpdated()
-
void setClientIdUpdated( DOMString clientId )
-
time_t getDateUpdated()
-
void setDateUpdated( time_t cal )
-
time_t getDateExpired()
-
void setDateExpired( time_t cal )
-
time_t getDateTransferred()
-
void setDateTransferred( time_t cal )
-
EppAuthInfo* getAuthInfo()
-
void setAuthInfo( EppAuthInfo authInfo )
-
ValueVectorOf<EppStatus> * getStatus()
-
void addStatus( EppStatus status )
-
static EppCommandCreate create( EppObject* object, DOMString xid )
Protected Fields
-
DOMString roid
-
ValueVectorOf<EppStatus> * status
-
DOMString clID
-
DOMString crID
-
time_t crDate
-
DOMString upID
-
time_t upDate
-
time_t exDate
-
time_t trDate
-
EppAuthInfo* authInfo
Protected Methods
-
void fromXMLCommon( const DOM_Node& node, const DOMString name )
-
void toXMLCommon( DOM_Document& doc, DOM_Element& body )
-
void freeCommon()
Public Methods
-
bool instanceOf( const int type )
-
virtual DOMString toString()
Protected Methods
-
DOMString toString( const DOMString &tag )
Documentation
This EppContact
class implements EPP Contact objects.
- static const char* STATUS_CLIENT_DELETE_PROHIBITED
-
Contact status - clientDeleteProhibited
- static const char* STATUS_CLIENT_TRANSFER_PROHIBITED
-
Contact status - clientTransferProhibited
- static const char* STATUS_CLIENT_UPDATE_PROHIBITED
-
Contact status - clientUpdateProhibited
- static const char* STATUS_LINKED
-
Contact status - linked
- static const char* STATUS_OK
-
Contact status - ok
- static const char* STATUS_PENDING_DELETE
-
Contact status - pendingDelete
- static const char* STATUS_PENDING_TRANSFER
-
Contact status - pendingTransfer
- static const char* STATUS_SERVER_DELETE_PROHIBITED
-
Contact status - serverDeleteProhibited
- static const char* STATUS_SERVER_TRANSFER_PROHIBITED
-
Contact status - serverTransferProhibited
- static const char* STATUS_SERVER_UPDATE_PROHIBITED
-
Contact status - serverUpdateProhibited
- EppContact()
-
Creates an
EppContact
object
- EppContact( DOMString id )
-
Creates an
EppContact
object, with a contact id
- ~EppContact()
-
Destructor
- virtual int getEntityType()
-
Returns the run-time type of an EppEntity object
- DOMString getId()
-
Gets the contact id
- void setId( DOMString id )
-
Sets the contact id
- EppContactData* getContactDataAscii()
-
Gets the contact data in ascii encoding
- void setContactDataAscii( EppContactData& ascii )
-
Sets the contact data in ascii encoding
- EppContactData* getContactDataI15d()
-
Gets the contact data in native encoding
- void setContactDataI15d( EppContactData& i15d )
-
Sets the contact data in native encoding
- EppE164* getVoice()
-
Gets the voice phone number of the contact
- void setVoice( DOMString voice )
-
Sets the voice phone number of the contact
- void setVoice( DOMString voice, DOMString ext )
-
Sets the voice phone number and extenstion
- void setVoice( EppE164 voice )
-
Sets the voice phone number of the contact
- EppE164* getFax()
-
Gets the fax number of the contact
- void setFax( DOMString fax )
-
Sets the fax number of the contact
- void setFax( DOMString fax, DOMString ext )
-
Sets the fax number and extenstion
- void setFax( EppE164 fax )
-
Sets the fax number extension
- DOMString getEmail()
-
Gets the email address of the contact
- void setEmail( DOMString email )
-
Sets the email address of the contact
- DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
-
Converts the
EppContact
object into an XML element
- Parameters:
- doc - the XML
DOM_Element
object
tag - the tag/element name for the EppContact
object
- Returns:
- an
DOM_Element
object
- static EppContact* fromXML( const DOM_Node& root )
-
Converts an XML element into an
EppContact
object.
The caller of this method must make sure that the root node is of
the EPP Contact type.
- Parameters:
- root - root node for an
EppContact
object
in XML format
- Returns:
- an
EppContact
object, or null if the node
is invalid
- static EppCommandDeleteContact remove( DOMString id, DOMString xid )
-
Creates an
EppCommandDeleteContact
object for
deleting an EPP Contact object from the registry.
- Parameters:
- id - the id of the contact object to be deleted
xid - the client transaction id associated with the operation
- static EppCommandInfoContact info( DOMString id, DOMString xid )
-
Creates an
EppCommandInfoContact
object for
querying the details of an EPP Contact object
- Parameters:
- id - the id of the contact object to be queried
xid - the client transaction id associated with the operation
- static EppCommandCheckContact check( DOMString xid )
-
Creates an
EppCommandCheckContact
object for
checking the existance of EPP Contact objects in the registry.
ids of EPP Contact objects can be added via the
add
or addRoid
methods.
- Parameters:
- xid - the client transaction id associated with the operation
- static EppCommandTransferContact transfer( DOMString id, DOMString xid )
-
Creates an
EppCommandTransferContact
object for
transfering an EPP Contact object in the registry. The operation
type and authorization information associated with the operation
should be specified via setOperation
and
setAuthInfo
method.
- Parameters:
- id - the id of the contact object to be transferred
xid - the client transaction id associated with the operation
- static EppCommandUpdateContact update( DOMString id, DOMString xid )
-
Creates an
EppCommandUpdateContact
object for
updating an EPP Contact object in the registry. The actual update
information should be specified via the various methods defined
for the EppCommandUpdateContact
object.
- Parameters:
- id - the id of the contact object to be updated
xid - the client transaction id associated with the operation
- This class has no child classes.
- Author:
- Ning Zhang ning.zhang@neustar.com
- Version:
- $Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $
Alphabetic index HTML hierarchy of classes or Java
Copyright © 2001 NeuStar, Inc. All Rights Reserved.