com.sun.xml.registry.uddi.infomodel
Class UserImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
      extended by com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
          extended by com.sun.xml.registry.uddi.infomodel.UserImpl
All Implemented Interfaces:
Serializable, ExtensibleObject, RegistryObject, User

public class UserImpl
extends RegistryObjectImpl
implements User, Serializable

Author:
kwalsh, Bobby Bissett
See Also:
Serialized Form

Constructor Summary
UserImpl()
          Default constructor
 
Method Summary
 Collection getEmailAddresses()
          Get the user email addresses
 Organization getOrganization()
          Gets the submitting organization
 PersonName getPersonName()
          Name of contact person
 Collection getPostalAddresses()
          The postal addresses for this Contact.
 Collection getTelephoneNumbers(String phoneType)
          Gets the telephone numbers for this User that match the specified telephone number type.
 String getType()
          Get user type
 URL getUrl()
          Level 1 method
 void setEmailAddresses(Collection addresses)
          Set the user email addresses.
 void setOrganization(Organization org)
          Internal method for setting user organization
 void setPersonName(PersonName personName)
          Sets Name of contact person.
 void setPostalAddresses(Collection addresses)
          Sets the addresses.
 void setTelephoneNumbers(Collection phoneNumbers)
          Set the various telephone numbers for this user.
 void setType(String type)
          Set user type
 void setUrl(URL url)
          Sets the URL to the web page for this contact.
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, addSlot, addSlots, areAssociationsLoaded, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getConnection, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getRegistryService, getServiceId, getSubmittingOrganization, isDeleted, isLoaded, isModified, isNew, isRetrieved, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, removeSlot, removeSlots, setAssociations, setAssociationsLoaded, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setIsDeleted, setIsLoaded, setIsModified, setIsNew, setIsRetrieved, setKey, setLifeCycleManager, setName, setObjectType, setRegistryService, setServiceId, setStatusFlags, setSubmittingOrganization, toXML
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
getSlot, getSlots
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 

Constructor Detail

UserImpl

public UserImpl()
Default constructor

Method Detail

getOrganization

public Organization getOrganization()
                             throws JAXRException
Gets the submitting organization

Specified by:
getOrganization in interface User
Returns:
the Organization that this User is affiliated with
Throws:
JAXRException - If the JAXR provider encounters an internal error

getPersonName

public PersonName getPersonName()
                         throws JAXRException
Name of contact person

Specified by:
getPersonName in interface User
Returns:
the name of this User
Throws:
JAXRException - If the JAXR provider encounters an internal error

setPersonName

public void setPersonName(PersonName personName)
                   throws JAXRException
Sets Name of contact person.

Specified by:
setPersonName in interface User
Parameters:
personName - the name of this User
Throws:
JAXRException - If the JAXR provider encounters an internal error

getPostalAddresses

public Collection getPostalAddresses()
                              throws JAXRException
The postal addresses for this Contact.

Specified by:
getPostalAddresses in interface User
Returns:
Collection of PostalAddress instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
PostalAddress

setPostalAddresses

public void setPostalAddresses(Collection addresses)
                        throws JAXRException
Sets the addresses. Treat null parameter as empty collection.

Specified by:
setPostalAddresses in interface User
Parameters:
addresses - Is a Collection of PostAddress instances.
Throws:
JAXRException - If the JAXR provider encounters an internal error

getTelephoneNumbers

public Collection getTelephoneNumbers(String phoneType)
                               throws JAXRException
Gets the telephone numbers for this User that match the specified telephone number type. If phoneType is null return all telephoneNumbers

Specified by:
getTelephoneNumbers in interface User
Parameters:
phoneType - specifies the type of phone numbers to be returned. If phoneType is null, return all telephoneNumbers
Returns:
Collection of TelephoneNumber instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
TelephoneNumber

setTelephoneNumbers

public void setTelephoneNumbers(Collection phoneNumbers)
                         throws JAXRException
Set the various telephone numbers for this user. Treat null param as an empty collection.

Specified by:
setTelephoneNumbers in interface User
Parameters:
phoneNumbers - the Collection of TelephoneNumbers to be set
Throws:
JAXRException - If the JAXR provider encounters an internal error

getEmailAddresses

public Collection getEmailAddresses()
                             throws JAXRException
Get the user email addresses

Specified by:
getEmailAddresses in interface User
Returns:
Collection of EmailAddress instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
EmailAddress

setEmailAddresses

public void setEmailAddresses(Collection addresses)
                       throws JAXRException
Set the user email addresses. Treat null param as an empty collection.

Specified by:
setEmailAddresses in interface User
Parameters:
addresses - the Collection of EmailAddresses to be set
Throws:
JAXRException - If the JAXR provider encounters an internal error

getType

public String getType()
               throws JAXRException
Get user type

Specified by:
getType in interface User
Returns:
the type for this User, which is an arbitrary String
Throws:
JAXRException - If the JAXR provider encounters an internal error

setType

public void setType(String type)
             throws JAXRException
Set user type

Specified by:
setType in interface User
Parameters:
type - the type for this User, which is an arbitrary String
Throws:
JAXRException - If the JAXR provider encounters an internal error

getUrl

public URL getUrl()
           throws JAXRException
Level 1 method

Specified by:
getUrl in interface User
Returns:
the URL for this User's home page
Throws:
JAXRException - If the JAXR provider encounters an internal error

setUrl

public void setUrl(URL url)
            throws JAXRException
Sets the URL to the web page for this contact.

Specified by:
setUrl in interface User
Parameters:
url - the URL for this User's home page
Throws:
JAXRException - If the JAXR provider encounters an internal error

setOrganization

public void setOrganization(Organization org)
                     throws JAXRException
Internal method for setting user organization

Throws:
JAXRException


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.