com.ados.hestia.repository
Class PartnerProfile

java.lang.Object
  extended by com.ados.hestia.repository.PartnerProfile
All Implemented Interfaces:
Serializable

public class PartnerProfile
extends Object
implements Serializable

Domain Java Object for a Partner Profile.

Version:
$Revision: 1928 $
See Also:
Serialized Form

Nested Class Summary
static class PartnerProfile.Contact
          The object with contact information for a person from the partner side.
static class PartnerProfile.EndPoint
          The end point object with information for RosettaNet compitable partner's system.
static class PartnerProfile.Location
          The domain java object for partner location.
 
Field Summary
static String[] CLASSIFICATION_CODES
           
static String[] GBI_TYPES
           
 X509Certificate m_certificate
           
 String m_classificationCode
           
 PartnerProfile.Contact m_contact
           
 String m_domain
           
 PartnerProfile.EndPoint m_endpoint
           
 String m_gbi
           
 PartnerProfile.Location m_location
           
 String m_name
           
 String m_nameLang
           
 String m_nokiaGBIAlias
           
 PrivateKey m_privateKey
           
 String m_supplyChainCode
           
 String m_type
           
static String[] SUPPLY_CHAIN_CODES
           
static String[] TYPES
           
 
Constructor Summary
PartnerProfile()
          The default constructor for Partner Profile Object.
PartnerProfile(String type, String domain, String gbi, String nokiaGBI, String name, String nameLang, String supplyChainCode, String classificationCode, PartnerProfile.Contact contact, PartnerProfile.Location location, PartnerProfile.EndPoint endpoint, X509Certificate certificate, PrivateKey privateKey)
          The constructor for unmutable PartnerProfile.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other PartnerProfile is "equal to" this one.
 X509Certificate getCertificate()
          Get a certificate for partner.
 String getClassificationCode()
          Get a classification code for the partner.
 PartnerProfile.Contact getContact()
          Get a contact for partner.
 String getDomain()
          Get a domain for partner.
 PartnerProfile.EndPoint getEndPoint()
          Get an end point for partner.
 String getGbi()
          Get a Global Business Identificator for partner.
 PartnerProfile.Location getLocation()
          Get a location informaton for partner.
 String getName()
          Get a name of partner organization.
 String getNameLang()
          Get a language for a name of partner organization.
 String getNokiaGBIAlias()
          Returns the nokia GBI alias
 PrivateKey getPrivateKey()
          Get a private key for partner.
 String getSupplyChainCode()
          Get a supplay chain code for partner.
 String getType()
          Get a type for partner.
 int hashCode()
          
 void isValid()
          Validate partner profile.
 void setCertificate(X509Certificate certificate)
          Set the certificate for partner.
 void setContact(PartnerProfile.Contact contact)
          Set the contact for partner.
 void setEndPoint(PartnerProfile.EndPoint endPoint)
          Set the end point for partner.
 void setLocation(PartnerProfile.Location location)
          Set the location for partner.
 void setNokiaGBIAlias(String nokiaGBIAlias)
          Sets the nokia gbi alias.
 void setPrivateKey(PrivateKey privateKey)
          Set the private key for partner.
 String toString()
          Get a string with debug information for the partner profile.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPES

public static final String[] TYPES

GBI_TYPES

public static final String[] GBI_TYPES

SUPPLY_CHAIN_CODES

public static final String[] SUPPLY_CHAIN_CODES

CLASSIFICATION_CODES

public static final String[] CLASSIFICATION_CODES

m_type

public String m_type

m_domain

public String m_domain

m_gbi

public String m_gbi

m_nokiaGBIAlias

public String m_nokiaGBIAlias

m_name

public String m_name

m_nameLang

public String m_nameLang

m_supplyChainCode

public String m_supplyChainCode

m_classificationCode

public String m_classificationCode

m_location

public PartnerProfile.Location m_location

m_endpoint

public PartnerProfile.EndPoint m_endpoint

m_contact

public PartnerProfile.Contact m_contact

m_certificate

public X509Certificate m_certificate

m_privateKey

public PrivateKey m_privateKey
Constructor Detail

PartnerProfile

public PartnerProfile(String type,
                      String domain,
                      String gbi,
                      String nokiaGBI,
                      String name,
                      String nameLang,
                      String supplyChainCode,
                      String classificationCode,
                      PartnerProfile.Contact contact,
                      PartnerProfile.Location location,
                      PartnerProfile.EndPoint endpoint,
                      X509Certificate certificate,
                      PrivateKey privateKey)
The constructor for unmutable PartnerProfile.

Parameters:
type - the type of prtner.
domain - the domain for identification standards (e.x. DUNS).
gbi - the Global Business Identificator via the domain requirements.
name - the name of the partner organization.
nameLang - the language for partner's name.
supplyChainCode - the code that classify a chain of supplaer for the partner.
classificationCode - the code that classify the partner.
contact - the object with contact information for the partner.
location - the object with location information for the partner.
endpoint - the object with RosettaNet compitable endpoint for the partner.
certificate - the object with a public certificate for the partner.

PartnerProfile

public PartnerProfile()
The default constructor for Partner Profile Object.

Method Detail

isValid

public void isValid()
Validate partner profile.


setLocation

public void setLocation(PartnerProfile.Location location)
Set the location for partner.

Parameters:
location - the partner location.

setEndPoint

public void setEndPoint(PartnerProfile.EndPoint endPoint)
Set the end point for partner.

Parameters:
endPoint - the end point.

setContact

public void setContact(PartnerProfile.Contact contact)
Set the contact for partner.

Parameters:
contact - the partner's contact.

setCertificate

public void setCertificate(X509Certificate certificate)
Set the certificate for partner.

Parameters:
certificate - the partner's certificate.

setPrivateKey

public void setPrivateKey(PrivateKey privateKey)
Set the private key for partner. (EIS specific)

Parameters:
key - the partner's private key.

setNokiaGBIAlias

public void setNokiaGBIAlias(String nokiaGBIAlias)
Sets the nokia gbi alias.

Parameters:
nokiaGBIAlias - the nokia alias GBI

getType

public String getType()
Get a type for partner.

Returns:
the type.

getDomain

public String getDomain()
Get a domain for partner.

Returns:
the domain.

getGbi

public String getGbi()
Get a Global Business Identificator for partner.

Returns:
the GBI.

getName

public String getName()
Get a name of partner organization.

Returns:
the name.

getNameLang

public String getNameLang()
Get a language for a name of partner organization.

Returns:
the language.

getLocation

public PartnerProfile.Location getLocation()
Get a location informaton for partner.

Returns:
the location.

getEndPoint

public PartnerProfile.EndPoint getEndPoint()
Get an end point for partner.

Returns:
the end point information.

getCertificate

public X509Certificate getCertificate()
Get a certificate for partner.

Returns:
the certificate.

getPrivateKey

public PrivateKey getPrivateKey()
Get a private key for partner. (EIS specific)

Returns:
the certificate.

getContact

public PartnerProfile.Contact getContact()
Get a contact for partner.

Returns:
the contact.

getSupplyChainCode

public String getSupplyChainCode()
Get a supplay chain code for partner.

Returns:
the supplay chain code.

getClassificationCode

public String getClassificationCode()
Get a classification code for the partner.

Returns:
the classification code.

getNokiaGBIAlias

public String getNokiaGBIAlias()
Returns the nokia GBI alias

Returns:
the alias

toString

public String toString()
Get a string with debug information for the partner profile.

Overrides:
toString in class Object
Returns:
the string with debug information.

equals

public boolean equals(Object obj)
Indicates whether some other PartnerProfile is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - a reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2005-2006 ADOS Co.,Ltd.. All Rights Reserved.