Class RegistryObjectImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- All Implemented Interfaces:
Serializable,ExtensibleObject,RegistryObject
- Direct Known Subclasses:
AssociationImpl,AuditableEventImpl,ClassificationImpl,ConceptImpl,ExternalIdentifierImpl,ExternalLinkImpl,OrganizationImpl,RegistryEntryImpl,ServiceBindingImpl,SpecificationLinkImpl,UserImpl
public abstract class RegistryObjectImpl extends ExtensibleObjectImpl implements RegistryObject, Serializable
Implementation of RegistryObject interface- Author:
- Kathy Walsh, Bobby Bissett
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegistryObjectImpl()Default constructorRegistryObjectImpl(Key key)Utility constructor used when key is knownRegistryObjectImpl(Key key, String description, String name)Utility constructor used when key, name, and description are known
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAssociation(Association association)Adds specified Association to use this object as source.voidaddAssociations(Collection associations)Adds specified Associations to use this object as source.voidaddClassification(Classification classification)Adds specified Classification to this object.voidaddClassifications(Collection classifications)Adds specified Classifications to this object.voidaddExternalIdentifier(ExternalIdentifier identifier)Adds specified ExternalIdentifier to this object.voidaddExternalIdentifiers(Collection identifiers)Adds specified ExternalIdentifiers to this object.voidaddExternalLink(ExternalLink link)Adds specified ExternalLink to this object.voidaddExternalLinks(Collection links)Adds specified ExternalLinks to this object.voidaddSlot(Slot slot)Override superclass to set isModifiedvoidaddSlots(Collection slots)Override superclass to set isModifiedbooleanareAssociationsLoaded()Internal method to check if associations are loadedCollectiongetAssociatedObjects()Level 1 methodCollectiongetAssociations()Gets all Associations where this object is source.CollectiongetAuditTrail()Level 1 methodCollectiongetClassifications()Gets the Classification that classify this object.ConnectiongetConnection()Returns the Connection associated with this object.InternationalStringgetDescription()Gets the context independent textual description for this object.CollectiongetExternalIdentifiers()Returns the ExternalIdentifiers associated with this object.CollectiongetExternalLinks()Returns the ExternalLinks associated with this object.KeygetKey()Get registry key identifying this objectLifeCycleManagergetLifeCycleManager()Returns the LifeCycleManager that created this object.InternationalStringgetName()Gets user friendly context independent name of object in repository.ConceptgetObjectType()Level 1 methodCollectiongetRegistryPackages()Level 1 methodRegistryServicegetRegistryService()StringgetServiceId()OrganizationgetSubmittingOrganization()Gets the Organization that submitted this RegistryObject.booleanisDeleted()booleanisLoaded()booleanisModified()booleanisNew()booleanisRetrieved()voidremoveAssociation(Association association)Removes specified Association from this object.voidremoveAssociations(Collection associations)Removes specified Associations from this object.voidremoveClassification(Classification classification)Removes specified Classification from this object.voidremoveClassifications(Collection classifications)Removes specified Classifications from this object.voidremoveExternalIdentifier(ExternalIdentifier externalIdentifier)Removes specified ExternalIdentifier from this object.voidremoveExternalIdentifiers(Collection externalIdentifiers)Removes specified ExternalIdentifiers from this object.voidremoveExternalLink(ExternalLink externalLink)Removes specified ExternalLink from this object.voidremoveExternalLinks(Collection externalLinks)Removes specified ExternalLinks from this object.voidremoveSlot(String slotName)Override superclass to set isModifiedvoidremoveSlots(Collection slotNames)Override superclass to set isModifiedvoidsetAssociations(Collection associations)Replaces all previous Associations from this object with specified Associations.voidsetAssociationsLoaded(boolean loaded)Internal method to set if associations are loadedvoidsetClassifications(Collection classifications)Replaces all previous Classifications with specified Classififications.voidsetDescription(InternationalString description)Set the desciption for the objectvoidsetExternalIdentifiers(Collection externalIdentifiers)Replaces all previous ExternalIdentifiers with specified ExternalIdentifiers.voidsetExternalLinks(Collection links)Sets specified ExternalLinks to this object.voidsetIsDeleted(boolean deleted)voidsetIsLoaded(boolean loaded)voidsetIsModified(boolean modified)voidsetIsNew(boolean isNew)voidsetIsRetrieved(boolean retrieved)voidsetKey(Key key)Set registry key on this objectvoidsetLifeCycleManager(LifeCycleManager manager)Internal method for setting manager when object is createdvoidsetName(InternationalString name)Set the name for the objectvoidsetObjectType(Concept objectType)Level 1 methodvoidsetRegistryService(RegistryService service)voidsetServiceId(String serviceId)voidsetStatusFlags(boolean retrieved, boolean loaded, boolean isNew)voidsetSubmittingOrganization(Organization org)Internal method for setting submitting organizationStringtoXML()Implementation may choose to throw an UnsupportedCapabilityException.-
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
getSlot, getSlots
-
-
-
-
Constructor Detail
-
RegistryObjectImpl
public RegistryObjectImpl()
Default constructor
-
RegistryObjectImpl
public RegistryObjectImpl(Key key)
Utility constructor used when key is known
-
-
Method Detail
-
addSlot
public void addSlot(Slot slot) throws JAXRException
Override superclass to set isModified- Specified by:
addSlotin interfaceExtensibleObject- Overrides:
addSlotin classExtensibleObjectImpl- Parameters:
slot- the Slot object being added to this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addSlots
public void addSlots(Collection slots) throws JAXRException
Override superclass to set isModified- Specified by:
addSlotsin interfaceExtensibleObject- Overrides:
addSlotsin classExtensibleObjectImpl- Parameters:
slots- the Collection of Slot objects being added to this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeSlot
public void removeSlot(String slotName) throws JAXRException
Override superclass to set isModified- Specified by:
removeSlotin interfaceExtensibleObject- Overrides:
removeSlotin classExtensibleObjectImpl- Parameters:
slotName- the name for the Slot object being removed from this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeSlots
public void removeSlots(Collection slotNames) throws JAXRException
Override superclass to set isModified- Specified by:
removeSlotsin interfaceExtensibleObject- Overrides:
removeSlotsin classExtensibleObjectImpl- Parameters:
slotNames- the Collection of names for Slot objects being removed from this object. Must be a Collection of Strings- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addAssociation
public void addAssociation(Association association) throws JAXRException
Adds specified Association to use this object as source.- Specified by:
addAssociationin interfaceRegistryObject- Parameters:
association- the Association being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addAssociations
public void addAssociations(Collection associations) throws JAXRException
Adds specified Associations to use this object as source. Treat null parameter as empty collection.- Specified by:
addAssociationsin interfaceRegistryObject- Parameters:
associations- the Collection of Associations being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeAssociation
public void removeAssociation(Association association) throws JAXRException
Removes specified Association from this object.- Specified by:
removeAssociationin interfaceRegistryObject- Parameters:
association- the Association being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeAssociations
public void removeAssociations(Collection associations) throws JAXRException
Removes specified Associations from this object. Treat null parameter as empty collection.- Specified by:
removeAssociationsin interfaceRegistryObject- Parameters:
associations- the Collection of Associations being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getAssociations
public Collection getAssociations() throws JAXRException
Gets all Associations where this object is source.- Specified by:
getAssociationsin interfaceRegistryObject- Returns:
- Collection of Association instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
Association
-
setAssociations
public void setAssociations(Collection associations) throws JAXRException
Replaces all previous Associations from this object with specified Associations. Treat null param as empty collection.- Specified by:
setAssociationsin interfaceRegistryObject- Parameters:
associations- the Collection of Associations being set- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setAssociationsLoaded
public void setAssociationsLoaded(boolean loaded)
Internal method to set if associations are loaded
-
areAssociationsLoaded
public boolean areAssociationsLoaded()
Internal method to check if associations are loaded
-
addClassification
public void addClassification(Classification classification) throws JAXRException
Adds specified Classification to this object.- Specified by:
addClassificationin interfaceRegistryObject- Parameters:
classification- the Classification being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addClassifications
public void addClassifications(Collection classifications) throws JAXRException
Adds specified Classifications to this object. Treat null parameter as empty collection.- Specified by:
addClassificationsin interfaceRegistryObject- Parameters:
classifications- the Collection of Classifications being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeClassification
public void removeClassification(Classification classification) throws JAXRException
Removes specified Classification from this object.- Specified by:
removeClassificationin interfaceRegistryObject- Parameters:
classification- the Classification being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeClassifications
public void removeClassifications(Collection classifications) throws JAXRException
Removes specified Classifications from this object. Treat null parameter as empty collection.- Specified by:
removeClassificationsin interfaceRegistryObject- Parameters:
classifications- the Collection of Classifications being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getClassifications
public Collection getClassifications() throws JAXRException
Gets the Classification that classify this object.- Specified by:
getClassificationsin interfaceRegistryObject- Returns:
- Collection of Classification instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
Classification
-
setClassifications
public void setClassifications(Collection classifications) throws JAXRException
Replaces all previous Classifications with specified Classififications. Treat null param as empty collection.- Specified by:
setClassificationsin interfaceRegistryObject- Parameters:
classifications- the Collection of Classifications being set- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addExternalIdentifier
public void addExternalIdentifier(ExternalIdentifier identifier) throws JAXRException
Adds specified ExternalIdentifier to this object.- Specified by:
addExternalIdentifierin interfaceRegistryObject- Parameters:
identifier- the ExternalIdentifier being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addExternalIdentifiers
public void addExternalIdentifiers(Collection identifiers) throws JAXRException
Adds specified ExternalIdentifiers to this object. Treat null parameter as empty collection.- Specified by:
addExternalIdentifiersin interfaceRegistryObject- Parameters:
identifiers- the Collection of ExternalIdentifiers being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeExternalIdentifier
public void removeExternalIdentifier(ExternalIdentifier externalIdentifier) throws JAXRException
Removes specified ExternalIdentifier from this object.- Specified by:
removeExternalIdentifierin interfaceRegistryObject- Parameters:
externalIdentifier- the ExternalIdentifier being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeExternalIdentifiers
public void removeExternalIdentifiers(Collection externalIdentifiers) throws JAXRException
Removes specified ExternalIdentifiers from this object. Treat null parameter as empty collection.- Specified by:
removeExternalIdentifiersin interfaceRegistryObject- Parameters:
externalIdentifiers- the Collection of ExternalIdentifiers being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getExternalIdentifiers
public Collection getExternalIdentifiers() throws JAXRException
Returns the ExternalIdentifiers associated with this object.- Specified by:
getExternalIdentifiersin interfaceRegistryObject- Returns:
- Collection of ExternalIdentifier instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
ExternalIdentifier
-
setExternalIdentifiers
public void setExternalIdentifiers(Collection externalIdentifiers) throws JAXRException
Replaces all previous ExternalIdentifiers with specified ExternalIdentifiers. Treat null param as empty collection.- Specified by:
setExternalIdentifiersin interfaceRegistryObject- Parameters:
externalIdentifiers- the Collection of ExternalIdentifiers being set- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addExternalLink
public void addExternalLink(ExternalLink link) throws JAXRException
Adds specified ExternalLink to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.- Specified by:
addExternalLinkin interfaceRegistryObject- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
addExternalLinks
public void addExternalLinks(Collection links) throws JAXRException
Adds specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.- Specified by:
addExternalLinksin interfaceRegistryObject- Parameters:
links- the Collection of ExternalLinks being added- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeExternalLink
public void removeExternalLink(ExternalLink externalLink) throws JAXRException
Removes specified ExternalLink from this object.- Specified by:
removeExternalLinkin interfaceRegistryObject- Parameters:
externalLink- the ExternalLink being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
removeExternalLinks
public void removeExternalLinks(Collection externalLinks) throws JAXRException
Removes specified ExternalLinks from this object. Treat null parameter as empty collection.- Specified by:
removeExternalLinksin interfaceRegistryObject- Parameters:
externalLinks- the Collection of ExternalLinks being removed- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getExternalLinks
public Collection getExternalLinks() throws JAXRException
Returns the ExternalLinks associated with this object.- Specified by:
getExternalLinksin interfaceRegistryObject- Returns:
- Collection of ExternalLink instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
ExternalLink
-
setExternalLinks
public void setExternalLinks(Collection links) throws JAXRException
Sets specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.- Specified by:
setExternalLinksin interfaceRegistryObject- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getDescription
public InternationalString getDescription() throws JAXRException
Gets the context independent textual description for this object. Description will not be null.- Specified by:
getDescriptionin interfaceRegistryObject- Returns:
- the description for this object which must not be null
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setDescription
public void setDescription(InternationalString description) throws JAXRException
Set the desciption for the object- Specified by:
setDescriptionin interfaceRegistryObject- Parameters:
description- the description for this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getName
public InternationalString getName() throws JAXRException
Gets user friendly context independent name of object in repository.- Specified by:
getNamein interfaceRegistryObject- Returns:
- the name for this object which must not be null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setName
public void setName(InternationalString name) throws JAXRException
Set the name for the object- Specified by:
setNamein interfaceRegistryObject- Parameters:
name- the name for this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getKey
public Key getKey() throws JAXRException
Get registry key identifying this object- Specified by:
getKeyin interfaceRegistryObject- Returns:
- the Key for this object
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setKey
public void setKey(Key key) throws JAXRException
Set registry key on this object- Specified by:
setKeyin interfaceRegistryObject- Parameters:
key- the key for this object- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getSubmittingOrganization
public Organization getSubmittingOrganization() throws JAXRException
Description copied from interface:RegistryObjectGets the Organization that submitted this RegistryObject.- Specified by:
getSubmittingOrganizationin interfaceRegistryObject- Returns:
- the Organization that submitted this object to the registry
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setSubmittingOrganization
public void setSubmittingOrganization(Organization org) throws JAXRException
Internal method for setting submitting organization- Throws:
JAXRException
-
getConnection
public Connection getConnection() throws JAXRException
Returns the Connection associated with this object.- Throws:
JAXRException
-
getLifeCycleManager
public LifeCycleManager getLifeCycleManager()
Description copied from interface:RegistryObjectReturns the LifeCycleManager that created this object.- Capability Level: 0
- Specified by:
getLifeCycleManagerin interfaceRegistryObject- Returns:
- the LifeCycleManager objet that created this object
-
setLifeCycleManager
public void setLifeCycleManager(LifeCycleManager manager)
Internal method for setting manager when object is created
-
setServiceId
public void setServiceId(String serviceId)
-
getServiceId
public String getServiceId()
-
setRegistryService
public void setRegistryService(RegistryService service)
-
getRegistryService
public RegistryService getRegistryService()
-
setStatusFlags
public void setStatusFlags(boolean retrieved, boolean loaded, boolean isNew)
-
isLoaded
public boolean isLoaded()
-
setIsLoaded
public void setIsLoaded(boolean loaded)
-
isRetrieved
public boolean isRetrieved()
-
setIsRetrieved
public void setIsRetrieved(boolean retrieved)
-
isNew
public boolean isNew()
-
setIsNew
public void setIsNew(boolean isNew)
-
isModified
public boolean isModified()
-
setIsModified
public void setIsModified(boolean modified)
-
isDeleted
public boolean isDeleted()
-
setIsDeleted
public void setIsDeleted(boolean deleted)
-
toXML
public String toXML() throws JAXRException
Implementation may choose to throw an UnsupportedCapabilityException. Currently not implemented.- Specified by:
toXMLin interfaceRegistryObject- Returns:
- the String containing the XML representation for this object
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getAssociatedObjects
public Collection getAssociatedObjects() throws JAXRException
Level 1 method- Specified by:
getAssociatedObjectsin interfaceRegistryObject- Returns:
- Collection of RegistryObject instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
RegistryObject
-
getObjectType
public Concept getObjectType() throws JAXRException
Level 1 method- Specified by:
getObjectTypein interfaceRegistryObject- Returns:
- the object type as a Concept within the pre-defined ClassificationScheme named ObjectType
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setObjectType
public void setObjectType(Concept objectType) throws JAXRException
Level 1 method- Throws:
JAXRException
-
getAuditTrail
public Collection getAuditTrail() throws JAXRException
Level 1 method- Specified by:
getAuditTrailin interfaceRegistryObject- Returns:
- Collection of AuditableEvent instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
AuditableEvent
-
getRegistryPackages
public Collection getRegistryPackages() throws JAXRException
Level 1 method- Specified by:
getRegistryPackagesin interfaceRegistryObject- Returns:
- Collection of RegistryPackage instances. The Collection may be empty but not null.
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
RegistryPackage
-
-