Package javax.xml.registry.infomodel
Interface Organization
- All Superinterfaces:
ExtensibleObject,RegistryObject
Organization instances provide information on organizations such as a Submitting Organization. Each Organization instance
may have a reference to a parent Organization. In addition it may have a contact attribute defining the primary contact
within the organization. An Organization also has an address attribute.
- Author:
- Farrukh S. Najmi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildOrganization(Organization organization) Adds a child Organization.voidaddChildOrganizations(Collection organizations) Adds a Collection of Organization children.voidaddService(Service service) Adds a child Service.voidaddServices(Collection services) Adds a Collection of Service children.voidAdds a User.voidaddUsers(Collection users) Adds a Collection of Users.intGets number of children.Gets all immediate children Organizations.Gets all descendant Organizations.Gets the parent (container) organization.Gets the Address for this Organization.Gets the primary Contact for this Organization.Gets the root organization.Gets all children Services.getTelephoneNumbers(String phoneType) Gets the telephone numbers for this User that match the specified telephone number type.getUsers()Gets the Collection of Users affiliated with this Organization.voidremoveChildOrganization(Organization organization) Removes a child Organization.voidremoveChildOrganizations(Collection organizations) Removes a Collection of children Organizations.voidremoveService(Service service) Removes a Service from this object.voidremoveServices(Collection services) Removes a Collection of children Services from this object.voidremoveUser(User user) Removes a User.voidremoveUsers(Collection users) Removes a Collection of Users.voidsetPostalAddress(PostalAddress address) Sets the address for this Organization.voidsetPrimaryContact(User primaryContact) Sets the primary contact for this Organization.voidsetTelephoneNumbers(Collection phoneNumbers) Sets the various telephone numbers for this user.Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlotsMethods 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
-
Method Details
-
getPostalAddress
Gets the Address for this Organization.- Capability Level: 1
- Returns:
- the PostalAddress for this Organization
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
setPostalAddress
Sets the address for this Organization.- Capability Level: 1
- Parameters:
address- the PostalAddress for this Organization- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getPrimaryContact
Gets the primary Contact for this Organization. The primary contact is one of the Users of the Organization, as returned by the getUsers call on an Organization instance.- Capability Level: 0
- Returns:
- the User that is the primary Contact for this Organization. Must not be null
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
setPrimaryContact
Sets the primary contact for this Organization. If the primary contact is not in the existing Collection of User instances for this object then it must be added to that Collection. If the primary contact is already in the existing Collection of User instances for this object, then it should not be added to the Users collection as a duplicate entry. In either case, the primary contact is a distinguished User instance within the Collection of User instances for this Object.- Capability Level: 0
- Parameters:
primaryContact- the User that is the primary Contact for this Organization- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
addUser
Adds a User.- Capability Level: 0
- Parameters:
user- the User being added to this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
addUsers
Adds a Collection of Users.- Capability Level: 0
- Parameters:
users- the Collection of Users being added to this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
removeUser
Removes a User.- Capability Level: 0
- Parameters:
user- the User being removed from this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
removeUsers
Removes a Collection of Users.- Capability Level: 0
- Parameters:
users- the Collection of Users being removed from this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getUsers
Gets the Collection of Users affiliated with this Organization. One of these users is designated as the primary contact.- Capability Level: 0
- Returns:
- Collection of User instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
getTelephoneNumbers
Gets the telephone numbers for this User that match the specified telephone number type. If phoneType is null return all telephoneNumbers.- Capability Level: 0
- 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 Jakarta XML Registries provider encounters an internal error- See Also:
-
setTelephoneNumbers
Sets the various telephone numbers for this user.- Capability Level: 0
- Parameters:
phoneNumbers- the TelephoneNumbers being set for this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
addService
Adds a child Service.- Capability Level: 0
- Parameters:
service- the Service being added to this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
addServices
Adds a Collection of Service children.- Capability Level: 0
- Parameters:
services- the Collection of Services being added to this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
removeService
Removes a Service from this object.- Capability Level: 0
- Parameters:
service- the Service being removed from this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
removeServices
Removes a Collection of children Services from this object.- Capability Level: 0
- Parameters:
services- the Collection of Services being removed from this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getServices
Gets all children Services.- Capability Level: 0
- Returns:
- Collection of Service instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
addChildOrganization
Adds a child Organization.- Capability Level: 1
- Parameters:
organization- the child Organization being added- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
addChildOrganizations
Adds a Collection of Organization children.- Capability Level: 1
- Parameters:
organizations- the Collection of child Organizations being added- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
removeChildOrganization
Removes a child Organization.- Capability Level: 1
- Parameters:
organization- the child Organization being removed- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
removeChildOrganizations
Removes a Collection of children Organizations.- Capability Level: 1
- Parameters:
organizations- the Collection of child Organizations being removed- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getChildOrganizationCount
Gets number of children.- Capability Level: 1
- Returns:
- the number of children Organizations
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getChildOrganizations
Gets all immediate children Organizations.- Capability Level: 1
- Returns:
- Collection of Organization instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
getDescendantOrganizations
Gets all descendant Organizations.- Capability Level: 1
- Returns:
- Collection of Organization instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
getParentOrganization
Gets the parent (container) organization.- Capability Level: 1
- Returns:
- the parent Organization or null if object has no parent Organization
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getRootOrganization
Gets the root organization.- Capability Level: 1
- Returns:
- the root Organization or null if object has no parent Organization
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-