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,javax.xml.registry.infomodel.ExtensibleObject,javax.xml.registry.infomodel.Organization,javax.xml.registry.infomodel.RegistryObject
public class OrganizationImpl extends RegistryObjectImpl implements javax.xml.registry.infomodel.Organization, Serializable
- Author:
- kwalsh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrganizationImpl()Creates new OrganizationImplOrganizationImpl(String name)Creates new OrganizationImplOrganizationImpl(javax.xml.registry.infomodel.Key key)Creates new OrganizationImplOrganizationImpl(javax.xml.registry.infomodel.Key key, String description, String name)Creates new OrganizationImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildOrganization(javax.xml.registry.infomodel.Organization organization)Level 1 methodvoidaddChildOrganizations(Collection organization)Level 1 methodvoidaddExternalLink(javax.xml.registry.infomodel.ExternalLink link)Overrides behavior in RegistryObjectImpl to allow adding external links.voidaddExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.voidaddService(javax.xml.registry.infomodel.Service service)Add a child Service.voidaddServices(Collection services)Add a Collection of service children.voidaddUser(javax.xml.registry.infomodel.User user)Add a user.voidaddUsers(Collection users)Add users.intgetChildOrganizationCount()Level 1 methodCollectiongetChildOrganizations()Level 1 methodCollectiongetDescendantOrganizations()Level 1 methodjavax.xml.registry.infomodel.OrganizationgetParentOrganization()Level 1 methodjavax.xml.registry.infomodel.PostalAddressgetPostalAddress()Level 1 methodjavax.xml.registry.infomodel.UsergetPrimaryContact()Gets the primary contact for this Organization.javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.Organization organization)Level 1 methodvoidremoveChildOrganizations(Collection organization)Level 1 methodvoidremoveService(javax.xml.registry.infomodel.Service service)Remove a child service.voidremoveServices(Collection services)Remove a collection of children services.voidremoveUser(javax.xml.registry.infomodel.User user)Remove a uservoidremoveUsers(Collection users)Remove multiple users.voidsetExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.voidsetPostalAddress(javax.xml.registry.infomodel.PostalAddress address)Level 1 methodvoidsetPrimaryContact(javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.Key key)
Creates new OrganizationImpl
-
OrganizationImpl
public OrganizationImpl(String name) throws javax.xml.registry.JAXRException
Creates new OrganizationImpl- Throws:
javax.xml.registry.JAXRException
-
-
Method Detail
-
getPrimaryContact
public javax.xml.registry.infomodel.User getPrimaryContact() throws javax.xml.registry.JAXRExceptionGets the primary contact for this Organization. Primary contact should also be in the users collection.- Specified by:
getPrimaryContactin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
setPrimaryContact
public void setPrimaryContact(javax.xml.registry.infomodel.User primaryContact) throws javax.xml.registry.JAXRExceptionSets the primary contact. Need to add this to users collection also if not already there.- Specified by:
setPrimaryContactin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
addUser
public void addUser(javax.xml.registry.infomodel.User user) throws javax.xml.registry.JAXRExceptionAdd a user.- Specified by:
addUserin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
addUsers
public void addUsers(Collection users) throws javax.xml.registry.JAXRException
Add users. Treat null parameter as empty collection.- Specified by:
addUsersin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
removeUser
public void removeUser(javax.xml.registry.infomodel.User user) throws javax.xml.registry.JAXRExceptionRemove a user- Specified by:
removeUserin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
removeUsers
public void removeUsers(Collection users) throws javax.xml.registry.JAXRException
Remove multiple users. Treat null parameter as an empty collection.- Specified by:
removeUsersin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getUsers
public Collection getUsers() throws javax.xml.registry.JAXRException
Gets the Collection of Users affiliated with this Organization. One of these users is designated as the primary contact.- Specified by:
getUsersin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getTelephoneNumbers
public Collection getTelephoneNumbers(String phoneType) throws javax.xml.registry.JAXRException
Gets the telephone numbers that match the type. If type is null, return all phone numbers.- Specified by:
getTelephoneNumbersin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
setTelephoneNumbers
public void setTelephoneNumbers(Collection phoneNumbers) throws javax.xml.registry.JAXRException
Set the various telephone numbers for this user. Treat null param as empty collection.- Specified by:
setTelephoneNumbersin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
addService
public void addService(javax.xml.registry.infomodel.Service service) throws javax.xml.registry.JAXRExceptionAdd a child Service. Set organization on the service to this.- Specified by:
addServicein interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
addServices
public void addServices(Collection services) throws javax.xml.registry.JAXRException
Add a Collection of service children. Set organization on each to this. Treat null param as empty collection.- Specified by:
addServicesin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
removeService
public void removeService(javax.xml.registry.infomodel.Service service) throws javax.xml.registry.JAXRExceptionRemove a child service.- Specified by:
removeServicein interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
removeServices
public void removeServices(Collection services) throws javax.xml.registry.JAXRException
Remove a collection of children services. Treat null param as empty collection.- Specified by:
removeServicesin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getServices
public Collection getServices() throws javax.xml.registry.JAXRException
Get all children services.- Specified by:
getServicesin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
setServices
public void setServices(Collection services) throws javax.xml.registry.JAXRException
Internal method for setting services on organization- Throws:
javax.xml.registry.JAXRException
-
addExternalLink
public void addExternalLink(javax.xml.registry.infomodel.ExternalLink link) throws javax.xml.registry.JAXRExceptionOverrides behavior in RegistryObjectImpl to allow adding external links. See appendix D of specification.- Specified by:
addExternalLinkin interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
addExternalLinkin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
addExternalLinks
public void addExternalLinks(Collection links) throws javax.xml.registry.JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. See appendix D of specification.- Specified by:
addExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
addExternalLinksin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
setExternalLinks
public void setExternalLinks(Collection links) throws javax.xml.registry.JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. See appendix D of specification.- Specified by:
setExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
setExternalLinksin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
getPostalAddress
public javax.xml.registry.infomodel.PostalAddress getPostalAddress() throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
getPostalAddressin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
setPostalAddress
public void setPostalAddress(javax.xml.registry.infomodel.PostalAddress address) throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
setPostalAddressin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
addChildOrganization
public void addChildOrganization(javax.xml.registry.infomodel.Organization organization) throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
addChildOrganizationin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
addChildOrganizations
public void addChildOrganizations(Collection organization) throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
addChildOrganizationsin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
removeChildOrganization
public void removeChildOrganization(javax.xml.registry.infomodel.Organization organization) throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
removeChildOrganizationin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
removeChildOrganizations
public void removeChildOrganizations(Collection organization) throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
removeChildOrganizationsin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getChildOrganizationCount
public int getChildOrganizationCount() throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
getChildOrganizationCountin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getChildOrganizations
public Collection getChildOrganizations() throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
getChildOrganizationsin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getDescendantOrganizations
public Collection getDescendantOrganizations() throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
getDescendantOrganizationsin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getParentOrganization
public javax.xml.registry.infomodel.Organization getParentOrganization() throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
getParentOrganizationin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
getRootOrganization
public javax.xml.registry.infomodel.Organization getRootOrganization() throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
getRootOrganizationin interfacejavax.xml.registry.infomodel.Organization- Throws:
javax.xml.registry.JAXRException
-
-