Class OrganizationImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.OrganizationImpl
-
- All Implemented Interfaces:
Serializable,ExtensibleObject,Organization,RegistryObject
public class OrganizationImpl extends RegistryObjectImpl implements Organization, Serializable
- Author:
- kwalsh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrganizationImpl()Creates new OrganizationImplOrganizationImpl(String name)Creates new OrganizationImplOrganizationImpl(Key key)Creates new OrganizationImplOrganizationImpl(Key key, String description, String name)Creates new OrganizationImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildOrganization(Organization organization)Level 1 methodvoidaddChildOrganizations(Collection organization)Level 1 methodvoidaddExternalLink(ExternalLink link)Overrides behavior in RegistryObjectImpl to allow adding external links.voidaddExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.voidaddService(Service service)Add a child Service.voidaddServices(Collection services)Add a Collection of service children.voidaddUser(User user)Add a user.voidaddUsers(Collection users)Add users.intgetChildOrganizationCount()Level 1 methodCollectiongetChildOrganizations()Level 1 methodCollectiongetDescendantOrganizations()Level 1 methodOrganizationgetParentOrganization()Level 1 methodPostalAddressgetPostalAddress()Level 1 methodUsergetPrimaryContact()Gets the primary contact for this Organization.OrganizationgetRootOrganization()Level 1 methodCollectiongetServices()Get all children services.CollectiongetTelephoneNumbers(String phoneType)Gets the telephone numbers that match the type.CollectiongetUsers()Gets the Collection of Users affiliated with this Organization.voidremoveChildOrganization(Organization organization)Level 1 methodvoidremoveChildOrganizations(Collection organization)Level 1 methodvoidremoveService(Service service)Remove a child service.voidremoveServices(Collection services)Remove a collection of children services.voidremoveUser(User user)Remove a uservoidremoveUsers(Collection users)Remove multiple users.voidsetExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.voidsetPostalAddress(PostalAddress address)Level 1 methodvoidsetPrimaryContact(User primaryContact)Sets the primary contact.voidsetServices(Collection services)Internal method for setting services on organizationvoidsetTelephoneNumbers(Collection phoneNumbers)Set the various telephone numbers for this user.-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, 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, 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.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
-
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, 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, setKey, setName, toXML
-
-
-
-
Constructor Detail
-
OrganizationImpl
public OrganizationImpl()
Creates new OrganizationImpl
-
OrganizationImpl
public OrganizationImpl(Key key)
Creates new OrganizationImpl
-
OrganizationImpl
public OrganizationImpl(String name) throws JAXRException
Creates new OrganizationImpl- Throws:
JAXRException
-
OrganizationImpl
public OrganizationImpl(Key key, String description, String name) throws JAXRException
Creates new OrganizationImpl- Throws:
JAXRException
-
-
Method Detail
-
getPrimaryContact
public User getPrimaryContact() throws JAXRException
Gets the primary contact for this Organization. Primary contact should also be in the users collection.- Specified by:
getPrimaryContactin interfaceOrganization- Returns:
- the User that is the primary Contact for this Organization. Must not be null
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setPrimaryContact
public void setPrimaryContact(User primaryContact) throws JAXRException
Sets the primary contact. Need to add this to users collection also if not already there.- Specified by:
setPrimaryContactin interfaceOrganization- Parameters:
primaryContact- the User that is the primary Contact for this Organization- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addUser
public void addUser(User user) throws JAXRException
Add a user.- Specified by:
addUserin interfaceOrganization- Parameters:
user- the User being added to this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addUsers
public void addUsers(Collection users) throws JAXRException
Add users. Treat null parameter as empty collection.- Specified by:
addUsersin interfaceOrganization- Parameters:
users- the Collection of Users being added to this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeUser
public void removeUser(User user) throws JAXRException
Remove a user- Specified by:
removeUserin interfaceOrganization- Parameters:
user- the User being removed from this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeUsers
public void removeUsers(Collection users) throws JAXRException
Remove multiple users. Treat null parameter as an empty collection.- Specified by:
removeUsersin interfaceOrganization- Parameters:
users- the Collection of Users being removed from this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getUsers
public Collection getUsers() throws JAXRException
Gets the Collection of Users affiliated with this Organization. One of these users is designated as the primary contact.- Specified by:
getUsersin interfaceOrganization- Returns:
- Collection of User instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
User
-
getTelephoneNumbers
public Collection getTelephoneNumbers(String phoneType) throws JAXRException
Gets the telephone numbers that match the type. If type is null, return all phone numbers.- Specified by:
getTelephoneNumbersin interfaceOrganization- Parameters:
phoneType- a String that specifies the type of phone numbers desired- 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 empty collection.- Specified by:
setTelephoneNumbersin interfaceOrganization- Parameters:
phoneNumbers- the TelephoneNumbers being set for this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addService
public void addService(Service service) throws JAXRException
Add a child Service. Set organization on the service to this.- Specified by:
addServicein interfaceOrganization- Parameters:
service- the Service being added to this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addServices
public void addServices(Collection services) throws JAXRException
Add a Collection of service children. Set organization on each to this. Treat null param as empty collection.- Specified by:
addServicesin interfaceOrganization- Parameters:
services- the Collection of Services being added to this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeService
public void removeService(Service service) throws JAXRException
Remove a child service.- Specified by:
removeServicein interfaceOrganization- Parameters:
service- the Service being removed from this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeServices
public void removeServices(Collection services) throws JAXRException
Remove a collection of children services. Treat null param as empty collection.- Specified by:
removeServicesin interfaceOrganization- Parameters:
services- the Collection of Services being removed from this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getServices
public Collection getServices() throws JAXRException
Get all children services.- Specified by:
getServicesin interfaceOrganization- Returns:
- Collection of Service instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
Service
-
setServices
public void setServices(Collection services) throws JAXRException
Internal method for setting services on organization- Throws:
JAXRException
-
addExternalLink
public void addExternalLink(ExternalLink link) throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. See appendix D of specification.- Specified by:
addExternalLinkin interfaceRegistryObject- Overrides:
addExternalLinkin classRegistryObjectImpl- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addExternalLinks
public void addExternalLinks(Collection links) throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. See appendix D of specification.- Specified by:
addExternalLinksin interfaceRegistryObject- Overrides:
addExternalLinksin classRegistryObjectImpl- Parameters:
links- the Collection of ExternalLinks being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setExternalLinks
public void setExternalLinks(Collection links) throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. See appendix D of specification.- Specified by:
setExternalLinksin interfaceRegistryObject- Overrides:
setExternalLinksin classRegistryObjectImpl- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getPostalAddress
public PostalAddress getPostalAddress() throws JAXRException
Level 1 method- Specified by:
getPostalAddressin interfaceOrganization- Returns:
- the PostalAddress for this Organization
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setPostalAddress
public void setPostalAddress(PostalAddress address) throws JAXRException
Level 1 method- Specified by:
setPostalAddressin interfaceOrganization- Parameters:
address- the PostalAddress for this Organization- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addChildOrganization
public void addChildOrganization(Organization organization) throws JAXRException
Level 1 method- Specified by:
addChildOrganizationin interfaceOrganization- Parameters:
organization- the child Organization being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addChildOrganizations
public void addChildOrganizations(Collection organization) throws JAXRException
Level 1 method- Specified by:
addChildOrganizationsin interfaceOrganization- Parameters:
organization- the Collection of child Organizations being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeChildOrganization
public void removeChildOrganization(Organization organization) throws JAXRException
Level 1 method- Specified by:
removeChildOrganizationin interfaceOrganization- Parameters:
organization- the child Organization being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeChildOrganizations
public void removeChildOrganizations(Collection organization) throws JAXRException
Level 1 method- Specified by:
removeChildOrganizationsin interfaceOrganization- Parameters:
organization- the Collection of child Organizations being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getChildOrganizationCount
public int getChildOrganizationCount() throws JAXRExceptionLevel 1 method- Specified by:
getChildOrganizationCountin interfaceOrganization- Returns:
- the number of children Organizations
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getChildOrganizations
public Collection getChildOrganizations() throws JAXRException
Level 1 method- Specified by:
getChildOrganizationsin interfaceOrganization- Returns:
- Collection of Organization instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
Organization
-
getDescendantOrganizations
public Collection getDescendantOrganizations() throws JAXRException
Level 1 method- Specified by:
getDescendantOrganizationsin interfaceOrganization- Returns:
- Collection of Organization instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
Organization
-
getParentOrganization
public Organization getParentOrganization() throws JAXRException
Level 1 method- Specified by:
getParentOrganizationin interfaceOrganization- Returns:
- the parent Organization or null if object has no parent Organization
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getRootOrganization
public Organization getRootOrganization() throws JAXRException
Level 1 method- Specified by:
getRootOrganizationin interfaceOrganization- Returns:
- the root Organization or null if object has no parent Organization
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
-