com.sun.xml.registry.ebxml.infomodel
Class RegistryObjectImpl

java.lang.Object
  extended bycom.sun.xml.registry.ebxml.infomodel.ExtensibleObjectImpl
      extended bycom.sun.xml.registry.ebxml.infomodel.RegistryObjectImpl
All Implemented Interfaces:
javax.xml.registry.infomodel.ExtensibleObject, javax.xml.registry.infomodel.RegistryObject
Direct Known Subclasses:
AssociationImpl, AuditableEventImpl, ClassificationImpl, ConceptImpl, ExternalIdentifierImpl, ExternalLinkImpl, OrganizationImpl, RegistryEntryImpl, ServiceBindingImpl, SpecificationLinkImpl, UserImpl

public abstract class RegistryObjectImpl
extends ExtensibleObjectImpl
implements javax.xml.registry.infomodel.RegistryObject

Class Declaration for Class1

Author:
Farrukh S. Najmi

Field Summary
protected  java.util.Collection associations
          Even though in JAXR Association-s are non-composed objects, their save behavior should be similar to composed objects.
protected  java.util.Collection auditTrail
           
protected  BusinessQueryManagerImpl bqm
           
protected  java.util.Collection classifications
          Composed objects
protected  DeclarativeQueryManagerImpl dqm
           
protected  java.util.Collection externalIds
           
protected  java.util.HashSet externalLinks
           
protected  javax.xml.registry.infomodel.InternationalString name
           
protected  javax.xml.registry.infomodel.Concept objectType
           
protected  java.lang.String objectTypeStr
          The ObjectType Concept value represented as a String
protected  java.util.Collection packages
           
 
Fields inherited from class com.sun.xml.registry.ebxml.infomodel.ExtensibleObjectImpl
i18nUtil, lcm
 
Method Summary
 void addAssociation(javax.xml.registry.infomodel.Association ass)
           
 void addAssociations(java.util.Collection asses)
           
 void addClassification(javax.xml.registry.infomodel.Classification c)
           
 void addClassifications(java.util.Collection classifications)
           
 void addExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier ei)
           
 void addExternalIdentifiers(java.util.Collection extLink)
           
 void addExternalLink(javax.xml.registry.infomodel.ExternalLink extLink)
           
 void addExternalLinks(java.util.Collection extLinks)
           
 int compareTo(java.lang.Object o)
          Compares two registries objects.
 boolean equals(java.lang.Object o)
          Returns true if the object specified is a RegistryObjectImpl with the same id.
 java.util.Collection getAssociatedObjects()
           
 java.util.Collection getAssociations()
           
 java.util.HashSet getAssociationsAndAssociatedObjects()
          Gest all Associations and their targets for which this object is a source.
 java.util.Collection getAuditTrail()
           
 java.util.Collection getClassificationConceptsByPath(java.lang.String pathPrefix)
          Gets all Concepts classifying this object that have specified path as prefix.
 java.util.Collection getClassifications()
           
 void getComposedObjects(java.util.HashSet composedObjects)
           
 javax.xml.registry.infomodel.InternationalString getDescription()
           
 java.util.Collection getExternalIdentifiers()
           
 java.util.Collection getExternalLinks()
           
 java.lang.String getId()
          Do we add this to the API??
 javax.xml.registry.infomodel.Key getKey()
           
 javax.xml.registry.LifeCycleManager getLifeCycleManager()
           
protected  org.apache.commons.logging.Log getLog()
           
 javax.xml.registry.infomodel.InternationalString getName()
           
 javax.xml.registry.infomodel.Concept getObjectType()
           
 javax.xml.registry.infomodel.User getOwner()
          Do we add this to the API??
 java.util.HashSet getRegistryObjectRefs()
          Gets all referenced objects for which this object is a referant.
 java.util.Collection getRegistryPackages()
           
 javax.xml.registry.infomodel.Organization getSubmittingOrganization()
           
 void removeAllClassifications()
           
 void removeAssociation(javax.xml.registry.infomodel.Association ass)
           
 void removeAssociations(java.util.Collection asses)
           
 void removeClassification(javax.xml.registry.infomodel.Classification c)
           
 void removeClassifications(java.util.Collection classifications)
           
 void removeExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier extLink)
           
 void removeExternalIdentifiers(java.util.Collection extLink)
           
 void removeExternalLink(javax.xml.registry.infomodel.ExternalLink extLink)
           
 void removeExternalLinks(java.util.Collection extLinks)
           
 void setAssociations(java.util.Collection asses)
           
protected  void setBindingObject(org.oasis.ebxml.registry.bindings.rim.RegistryObjectType ebObject)
           
 void setClassifications(java.util.Collection classifications)
           
 void setDescription(javax.xml.registry.infomodel.InternationalString desc)
           
 void setExternalIdentifiers(java.util.Collection extLink)
           
 void setExternalLinks(java.util.Collection newExternalLinks)
          Set this object's list of external links to the list specified.
 void setKey(javax.xml.registry.infomodel.Key key)
           
 void setModified(boolean modified)
          Implementation private
 void setName(javax.xml.registry.infomodel.InternationalString name)
           
 java.lang.String toString()
           
abstract  java.lang.String toXML()
           
 
Methods inherited from class com.sun.xml.registry.ebxml.infomodel.ExtensibleObjectImpl
addSlot, addSlots, getBusinessQueryManager, getDeclarativeQueryManager, getSlot, getSlots, isModified, isNew, removeAllSlots, removeSlot, removeSlots, setLoaded, setNew, setSlots
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 

Field Detail

name

protected javax.xml.registry.infomodel.InternationalString name

objectTypeStr

protected java.lang.String objectTypeStr
The ObjectType Concept value represented as a String


objectType

protected javax.xml.registry.infomodel.Concept objectType

classifications

protected java.util.Collection classifications
Composed objects


externalIds

protected java.util.Collection externalIds

associations

protected java.util.Collection associations
Even though in JAXR Association-s are non-composed objects, their save behavior should be similar to composed objects.


externalLinks

protected java.util.HashSet externalLinks

packages

protected java.util.Collection packages

auditTrail

protected java.util.Collection auditTrail

dqm

protected DeclarativeQueryManagerImpl dqm

bqm

protected BusinessQueryManagerImpl bqm
Method Detail

setModified

public void setModified(boolean modified)
Implementation private

Overrides:
setModified in class ExtensibleObjectImpl

getObjectType

public javax.xml.registry.infomodel.Concept getObjectType()
                                                   throws javax.xml.registry.JAXRException
Specified by:
getObjectType in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

toXML

public abstract java.lang.String toXML()
                                throws javax.xml.registry.JAXRException
Specified by:
toXML in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getKey

public javax.xml.registry.infomodel.Key getKey()
                                        throws javax.xml.registry.JAXRException
Specified by:
getKey in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getId

public java.lang.String getId()
                       throws javax.xml.registry.JAXRException
Do we add this to the API??

Throws:
javax.xml.registry.JAXRException

getDescription

public javax.xml.registry.infomodel.InternationalString getDescription()
                                                                throws javax.xml.registry.JAXRException
Specified by:
getDescription in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setDescription

public void setDescription(javax.xml.registry.infomodel.InternationalString desc)
                    throws javax.xml.registry.JAXRException
Specified by:
setDescription in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getName

public javax.xml.registry.infomodel.InternationalString getName()
                                                         throws javax.xml.registry.JAXRException
Specified by:
getName in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setName

public void setName(javax.xml.registry.infomodel.InternationalString name)
             throws javax.xml.registry.JAXRException
Specified by:
setName in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setKey

public void setKey(javax.xml.registry.infomodel.Key key)
            throws javax.xml.registry.JAXRException
Specified by:
setKey in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addClassification

public void addClassification(javax.xml.registry.infomodel.Classification c)
                       throws javax.xml.registry.JAXRException
Specified by:
addClassification in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addClassifications

public void addClassifications(java.util.Collection classifications)
                        throws javax.xml.registry.JAXRException
Specified by:
addClassifications in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeClassification

public void removeClassification(javax.xml.registry.infomodel.Classification c)
                          throws javax.xml.registry.JAXRException
Specified by:
removeClassification in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeClassifications

public void removeClassifications(java.util.Collection classifications)
                           throws javax.xml.registry.JAXRException
Specified by:
removeClassifications in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeAllClassifications

public void removeAllClassifications()
                              throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

setClassifications

public void setClassifications(java.util.Collection classifications)
                        throws javax.xml.registry.JAXRException
Specified by:
setClassifications in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getClassifications

public java.util.Collection getClassifications()
                                        throws javax.xml.registry.JAXRException
Specified by:
getClassifications in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getClassificationConceptsByPath

public java.util.Collection getClassificationConceptsByPath(java.lang.String pathPrefix)
                                                     throws javax.xml.registry.JAXRException
Gets all Concepts classifying this object that have specified path as prefix. Used in RegistryObjectsTableModel.getValueAt via reflections API if so configured.

Throws:
javax.xml.registry.JAXRException

getAuditTrail

public java.util.Collection getAuditTrail()
                                   throws javax.xml.registry.JAXRException
Specified by:
getAuditTrail in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getOwner

public javax.xml.registry.infomodel.User getOwner()
                                           throws javax.xml.registry.JAXRException
Do we add this to the API??

Returns:
owner, ie. creator or null if this is a new object
Throws:
javax.xml.registry.JAXRException

addAssociation

public void addAssociation(javax.xml.registry.infomodel.Association ass)
                    throws javax.xml.registry.JAXRException
Specified by:
addAssociation in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addAssociations

public void addAssociations(java.util.Collection asses)
                     throws javax.xml.registry.JAXRException
Specified by:
addAssociations in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeAssociation

public void removeAssociation(javax.xml.registry.infomodel.Association ass)
                       throws javax.xml.registry.JAXRException
Specified by:
removeAssociation in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeAssociations

public void removeAssociations(java.util.Collection asses)
                        throws javax.xml.registry.JAXRException
Specified by:
removeAssociations in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setAssociations

public void setAssociations(java.util.Collection asses)
                     throws javax.xml.registry.JAXRException
Specified by:
setAssociations in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getAssociations

public java.util.Collection getAssociations()
                                     throws javax.xml.registry.JAXRException
Specified by:
getAssociations in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getAssociatedObjects

public java.util.Collection getAssociatedObjects()
                                          throws javax.xml.registry.JAXRException
Specified by:
getAssociatedObjects in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addExternalIdentifier

public void addExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier ei)
                           throws javax.xml.registry.JAXRException
Specified by:
addExternalIdentifier in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addExternalIdentifiers

public void addExternalIdentifiers(java.util.Collection extLink)
                            throws javax.xml.registry.JAXRException
Specified by:
addExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeExternalIdentifier

public void removeExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier extLink)
                              throws javax.xml.registry.JAXRException
Specified by:
removeExternalIdentifier in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeExternalIdentifiers

public void removeExternalIdentifiers(java.util.Collection extLink)
                               throws javax.xml.registry.JAXRException
Specified by:
removeExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setExternalIdentifiers

public void setExternalIdentifiers(java.util.Collection extLink)
                            throws javax.xml.registry.JAXRException
Specified by:
setExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getExternalIdentifiers

public java.util.Collection getExternalIdentifiers()
                                            throws javax.xml.registry.JAXRException
Specified by:
getExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addExternalLink

public void addExternalLink(javax.xml.registry.infomodel.ExternalLink extLink)
                     throws javax.xml.registry.JAXRException
Specified by:
addExternalLink in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addExternalLinks

public void addExternalLinks(java.util.Collection extLinks)
                      throws javax.xml.registry.JAXRException
Specified by:
addExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeExternalLink

public void removeExternalLink(javax.xml.registry.infomodel.ExternalLink extLink)
                        throws javax.xml.registry.JAXRException
Specified by:
removeExternalLink in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

removeExternalLinks

public void removeExternalLinks(java.util.Collection extLinks)
                         throws javax.xml.registry.JAXRException
Specified by:
removeExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setExternalLinks

public void setExternalLinks(java.util.Collection newExternalLinks)
                      throws javax.xml.registry.JAXRException
Set this object's list of external links to the list specified. If the current list of external links contains links that are not in the specified list, they will be removed and the association between them and this object will be removed from the server. For any external links that are in the list specified, an association will be created (in-memory, not on the server) and they will be added to this object's list of external links.

Specified by:
setExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
Parameters:
newExternalLinks - A Collection of ExternalLink objects.
Throws:
javax.xml.registry.JAXRException

getExternalLinks

public java.util.Collection getExternalLinks()
                                      throws javax.xml.registry.JAXRException
Specified by:
getExternalLinks in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getSubmittingOrganization

public javax.xml.registry.infomodel.Organization getSubmittingOrganization()
                                                                    throws javax.xml.registry.JAXRException
Specified by:
getSubmittingOrganization in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getRegistryPackages

public java.util.Collection getRegistryPackages()
                                         throws javax.xml.registry.JAXRException
Specified by:
getRegistryPackages in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setBindingObject

protected void setBindingObject(org.oasis.ebxml.registry.bindings.rim.RegistryObjectType ebObject)
                         throws javax.xml.registry.JAXRException
Overrides:
setBindingObject in class ExtensibleObjectImpl
Throws:
javax.xml.registry.JAXRException

getComposedObjects

public void getComposedObjects(java.util.HashSet composedObjects)
                        throws javax.xml.registry.JAXRException
Overrides:
getComposedObjects in class ExtensibleObjectImpl
Throws:
javax.xml.registry.JAXRException

getLifeCycleManager

public javax.xml.registry.LifeCycleManager getLifeCycleManager()
                                                        throws javax.xml.registry.JAXRException
Specified by:
getLifeCycleManager in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getAssociationsAndAssociatedObjects

public java.util.HashSet getAssociationsAndAssociatedObjects()
                                                      throws javax.xml.registry.JAXRException
Gest all Associations and their targets for which this object is a source. Used by LifeCycleManagerImpl.saveObjects

Throws:
javax.xml.registry.JAXRException

getRegistryObjectRefs

public java.util.HashSet getRegistryObjectRefs()
Gets all referenced objects for which this object is a referant. Extended by base classes. Used by LifeCycleManagerImpl.saveObjects


toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)
Returns true if the object specified is a RegistryObjectImpl with the same id.

Parameters:
o - The object to compare to.
Returns:
true if the objects are equal.

compareTo

public int compareTo(java.lang.Object o)
Compares two registries objects. Consider adding Coparable to RegistryObject in JAXR 2.0??

Returns:
0 (equal) is the id of the objects matches this objects id. Otherwise return -1 (this object is less than arg o).

getLog

protected org.apache.commons.logging.Log getLog()
                                         throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException


Copyright © 2001-2004 OASIS. All Rights Reserved.