com.logicboxes.foundation.sfnb.order
Class DomContactExt

java.lang.Object
  extended by com.logicboxes.foundation.sfnb.order.DomContactExt

public class DomContactExt
extends java.lang.Object


Constructor Summary
DomContactExt()
           
 
Method Summary
 java.util.HashMap isValidContact(java.lang.String SERVICE_USERNAME, java.lang.String SERVICE_PASSWORD, java.lang.String SERVICE_ROLE, java.lang.String SERVICE_LANGPREF, int SERVICE_PARENTID, int[] contactIdArr, java.lang.String[] eligibilityCriteriaArr)
          This method validates the contact details for the given criteria's.
 java.util.HashMap isValidRegistrantContact(java.lang.String SERVICE_USERNAME, java.lang.String SERVICE_PASSWORD, java.lang.String SERVICE_ROLE, java.lang.String SERVICE_LANGPREF, int SERVICE_PARENTID, int[] contactIdArr, java.lang.String[] productKeys)
          Deprecated. 
 boolean setContactDetails(java.lang.String SERVICE_USERNAME, java.lang.String SERVICE_PASSWORD, java.lang.String SERVICE_ROLE, java.lang.String SERVICE_LANGPREF, int SERVICE_PARENTID, int contactId, java.util.HashMap contactDetailsHash, java.lang.String productKey)
          
While registering domain names with extensions like .US, .COOP, .ASIA etc.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomContactExt

public DomContactExt()
Method Detail

setContactDetails

public boolean setContactDetails(java.lang.String SERVICE_USERNAME,
                                 java.lang.String SERVICE_PASSWORD,
                                 java.lang.String SERVICE_ROLE,
                                 java.lang.String SERVICE_LANGPREF,
                                 int SERVICE_PARENTID,
                                 int contactId,
                                 java.util.HashMap contactDetailsHash,
                                 java.lang.String productKey)

While registering domain names with extensions like .US, .COOP, .ASIA etc. registry requires few details
to be associated with specified contacts of the domain name. This method accepts the required extra details
and attempts to associate them with the contacts, at registry.

Parameters:
contactId - - Contact Id with which the details need to be associated
contactDetailsHash - - Extra details required to be associated with contact before domain registration. For e.g Contact Details Hash should be as below in key-value pairs:
[key={value1 | value2 | ...}]:

Note: 1) Pipe separated values are the registry defined constants. Select any one of the given set of values.
2) You have to mention the values where the set of pre-defined values are not provided.

While registering .US domain name hash should contain following keys
contactDetailsHash: [purpose={P1 | P2 | P3 | P4 | P5},
category={C11 | C12 | C21 | C31 | C32}]

Note: This information has to be associated with registrant contact of the domain name.

Following is the mapping of the .US Nexus Category(category) as well as Nexus Application Purpose(purpose) :

Nexus Application Purpose :
P1 : Business use for profit
P2 : Non-profit business, club, association, religious organization, etc.
P3 : Personal use
P4 : Education purposes
P5 : Government purposes

Nexus Category :
C11 : A natural person who is a United States citizen
C12 : A natural person who is a permanent resident of the United States of America, or any of its possessions or territories
C21 : A US-based organization or company [A US-based organization or company formed within one of the fifty (50) U.S. states, the District of Columbia, or any of the United States possessions or territories, or organized or otherwise constituted under the laws of a state of the United States of America, the District of Columbia or any of its possessions or territories or a U.S. federal, state, or local government entity or a political subdivision thereof.]
C31 : A foreign entity or organization [A foreign entity or organization that has a bona fide presence in the United States of America or any of its possessions or territories who regularly engages in lawful activities (sales of goods or services or other business, commercial or non-commercial, including not-for-profit relations in the United States).]
C32 : Entity has an office or other facility in the United States.

While registering .COOP domain name hash should contain following keys
contactDetailsHash: [sponsor1={Mention sponsor1 roid},sponsor2={Mention sponsor2 roid}]

Note: 1) This information has to be associated with registrant contact of the domain name.
2) Sponsor1 & Sponsor2 roid cannot be the same.

While registering .ASIA domain name hash should contain following keys
contactDetailsHash: [
locality={Two lettered Country code of country},
legalentitytype={naturalPerson | corporation | cooperative | partnership | government | politicalParty |
society | institution | other},
otherlegalentitytype={Mention legal entity type. Mandatory if legalentitytype chosen as 'other'},
identform={passport | certificate | legislation | societyRegistry | politicalPartyRegistry | other},
otheridentform={Mention Identity form. Mandatory if identform chosen as 'other'},
identnumber={Mention Identification Number}]

Note: This information can be associated with any one of the contacts of domain name

productKey - - Mention the product keys from the below given set
[productkey={domus | dotcoop | dotasia}]
Returns:
Returns true if the contact details are successfully associated with the given contact id.
Throws:
LogicBoxesException - Throws exception in other cases with appropriate error message.

isValidRegistrantContact

@Deprecated
public java.util.HashMap isValidRegistrantContact(java.lang.String SERVICE_USERNAME,
                                                             java.lang.String SERVICE_PASSWORD,
                                                             java.lang.String SERVICE_ROLE,
                                                             java.lang.String SERVICE_LANGPREF,
                                                             int SERVICE_PARENTID,
                                                             int[] contactIdArr,
                                                             java.lang.String[] productKeys)
Deprecated. 

This method returns a list of Contacts that match the specified search criteria. If you do not want to specify a particular criterion, pass null for that parameter.

Parameters:
contactIdArr - Comma separated list of contactIds
productKeys - Comma separated list of productkeys i.e. domcno, dotcoop, domus
Returns:
Hashtable which contains contact details

The Key for the Hashtable is index starting from 1. The Value is another Hashtable which contains key-value pairs of contactid and boolean value respectively.


isValidContact

public java.util.HashMap isValidContact(java.lang.String SERVICE_USERNAME,
                                        java.lang.String SERVICE_PASSWORD,
                                        java.lang.String SERVICE_ROLE,
                                        java.lang.String SERVICE_LANGPREF,
                                        int SERVICE_PARENTID,
                                        int[] contactIdArr,
                                        java.lang.String[] eligibilityCriteriaArr)
This method validates the contact details for the given criteria's. Method do not check for the actual contact type (like CoopContact, UkContact, EuContact etc.).

Parameters:
contactIdArr - - Array of contact id's to be validated
eligibilityCriteriaArr - - Array of criterias. Array can consist of following criteria keys, in any order: {APP_PREF_NEXUS, CED_ASIAN_COUNTRY, CED_DETAILS, SPONSORS,EUROPEAN_COUNTRY}
Returns:
Hashtable - Returns the hash of criterias against contact id as keys. Hash of criteria's will consist of keys as Criteria Name and value as "true" or "false". For e.g. Return Hash = [111111={APP_PREF_NEXUS=true, OED_ASIAN_COUNTRY=false, OED_DETAILS=false, SPONSORS=true, EUROPEAN_COUNTRY=false}]
Throws:
LogicBoxesException