com.sun.xml.registry.ebxml
Class LifeCycleManagerImpl

java.lang.Object
  extended bycom.sun.xml.registry.ebxml.LifeCycleManagerImpl
All Implemented Interfaces:
javax.xml.registry.LifeCycleManager
Direct Known Subclasses:
BusinessLifeCycleManagerImpl

public abstract class LifeCycleManagerImpl
extends java.lang.Object
implements javax.xml.registry.LifeCycleManager

Class Declaration for Class1


Field Summary
 
Fields inherited from interface javax.xml.registry.LifeCycleManager
ASSOCIATION, AUDITABLE_EVENT, CLASSIFICATION, CLASSIFICATION_SCHEME, CONCEPT, EMAIL_ADDRESS, EXTERNAL_IDENTIFIER, EXTERNAL_LINK, EXTRINSIC_OBJECT, INTERNATIONAL_STRING, KEY, LOCALIZED_STRING, ORGANIZATION, PERSON_NAME, POSTAL_ADDRESS, REGISTRY_ENTRY, REGISTRY_PACKAGE, SERVICE, SERVICE_BINDING, SLOT, SPECIFICATION_LINK, TELEPHONE_NUMBER, USER, VERSIONABLE
 
Method Summary
 void addModifiedObject(javax.xml.registry.infomodel.RegistryObject ro)
          Add an object to list set of modified objects
 javax.xml.registry.infomodel.Association createAssociation(javax.xml.registry.infomodel.RegistryObject targetObject, javax.xml.registry.infomodel.Concept associationType)
          Create an Association instance using the specified parameters.
 javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.ClassificationScheme scheme, javax.xml.registry.infomodel.InternationalString name, java.lang.String value)
          Create a Classification instance for an external Classification using the specified name and value that identifies a taxonomy element within specified ClassificationScheme.
 javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.ClassificationScheme scheme, java.lang.String name, java.lang.String value)
          Create a Classification instance for an external Classification using the specified name and value that identifies a taxonomy element within specified ClassificationScheme.
 javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.Concept concept)
          Create a Classification instance for an internal Classification using the specified Concept which identifies a taxonomy element within an internal ClassificationScheme.
 javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme(javax.xml.registry.infomodel.Concept concept)
          Creates a ClassificationScheme from a Concept that has no ClassificationScheme or parent Concept.
 javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme(javax.xml.registry.infomodel.InternationalString name, javax.xml.registry.infomodel.InternationalString description)
          Create a scheme given specified parameters.
 javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme(java.lang.String name, java.lang.String description)
          Create a scheme given specified parameters.
 javax.xml.registry.infomodel.Concept createConcept(javax.xml.registry.infomodel.RegistryObject parent, javax.xml.registry.infomodel.InternationalString name, java.lang.String value)
          Create a Concept instance using the specified parameters.
 javax.xml.registry.infomodel.Concept createConcept(javax.xml.registry.infomodel.RegistryObject parent, java.lang.String name, java.lang.String value)
          Create a Concept instance using the specified parameters.
 void createConceptEquivalence(javax.xml.registry.infomodel.Concept concept1, javax.xml.registry.infomodel.Concept concept2)
          Create a semantic equivalence between the two specified Concepts.
 javax.xml.registry.infomodel.EmailAddress createEmailAddress(java.lang.String address)
          Creates an EmailAddress instance using an address as the parameter.
 javax.xml.registry.infomodel.EmailAddress createEmailAddress(java.lang.String address, java.lang.String type)
          Creates an EmailAddress instance using both an address and a type as parameters.
 javax.xml.registry.infomodel.ExternalIdentifier createExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme scheme, javax.xml.registry.infomodel.InternationalString name, java.lang.String value)
          Create an ExternalIdentifier instance using the specified parameters.
 javax.xml.registry.infomodel.ExternalIdentifier createExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme scheme, java.lang.String name, java.lang.String value)
          Create an ExternalIdentifier instance using the specified parameters.
 javax.xml.registry.infomodel.ExternalLink createExternalLink(java.lang.String externalURI, javax.xml.registry.infomodel.InternationalString description)
          Create an ExternalLink instance using the specified parameters.
 javax.xml.registry.infomodel.ExternalLink createExternalLink(java.lang.String externalURI, java.lang.String description)
          Create an ExternalLink instance using the specified parameters.
 javax.xml.registry.infomodel.ExtrinsicObject createExtrinsicObject()
          Creates an ExtrinsicObject instance using the specified parameters.
 javax.xml.registry.infomodel.ExtrinsicObject createExtrinsicObject(javax.activation.DataHandler repositoryItem)
          Creates an ExtrinsicObject instance using the specified parameters.
 java.lang.String createId()
           
 javax.xml.registry.infomodel.InternationalString createInternationalString()
          Create a InternationalString instance using the specified parameters.
 javax.xml.registry.infomodel.InternationalString createInternationalString(java.util.Locale l, java.lang.String s)
          Create a InternationalString instance using the specified parameters.
 javax.xml.registry.infomodel.InternationalString createInternationalString(java.lang.String s)
          Create a InternationalString instance using the specified parameters and the default Locale.
 javax.xml.registry.infomodel.Key createKey()
           
 javax.xml.registry.infomodel.Key createKey(java.lang.String id)
          Creates a Key instance from an ID.
 javax.xml.registry.infomodel.LocalizedString createLocalizedString(java.util.Locale l, java.lang.String s)
          Creates a LocalizedString instance using the specified Locale and String parameters.
 javax.xml.registry.infomodel.LocalizedString createLocalizedString(java.util.Locale l, java.lang.String s, java.lang.String charSetName)
          Creates a LocalizedString instance using the specified Locale, String, and character set parameters.
 java.lang.Object createObject(java.lang.String className)
          Creates instances of information model interfaces (factory method).
 javax.xml.registry.infomodel.Organization createOrganization(javax.xml.registry.infomodel.InternationalString name)
          Create an Organization instance using the specified parameters.
 javax.xml.registry.infomodel.Organization createOrganization(java.lang.String name)
          Create an Organization instance using the specified parameters.
 javax.xml.registry.infomodel.PersonName createPersonName(java.lang.String fullName)
          Create a PersonName instance using the specified parameters.
 javax.xml.registry.infomodel.PersonName createPersonName(java.lang.String firstName, java.lang.String middleName, java.lang.String lastName)
          Create a PersonName instance using the specified parameters.
 javax.xml.registry.infomodel.PostalAddress createPostalAddress(java.lang.String streetNumber, java.lang.String street, java.lang.String city, java.lang.String stateOrProvince, java.lang.String country, java.lang.String postalCode, java.lang.String type)
          Create a PostalAddress instance using the specified parameters.
 javax.xml.registry.infomodel.RegistryPackage createRegistryPackage(javax.xml.registry.infomodel.InternationalString name)
          Create a RegistryPackage instance using the specified parameters.
 javax.xml.registry.infomodel.RegistryPackage createRegistryPackage(java.lang.String name)
          Create a RegistryPackage instance using the specified parameters.
 javax.xml.registry.infomodel.Service createService(javax.xml.registry.infomodel.InternationalString name)
          Create an Service instance using the specified parameters.
 javax.xml.registry.infomodel.Service createService(java.lang.String name)
          Create an Service instance using the specified parameters.
 javax.xml.registry.infomodel.ServiceBinding createServiceBinding()
          Create an ServiceBinding instance using the specified parameters.
 javax.xml.registry.infomodel.Slot createSlot(java.lang.String name, java.util.Collection values, java.lang.String slotType)
          Creates a Slot instance using the specified parameters, where the value is a Collection of Strings.
 javax.xml.registry.infomodel.Slot createSlot(java.lang.String name, java.lang.String value, java.lang.String slotType)
          Creates a Slot instance using the specified parameters, where the value is a String.
 javax.xml.registry.infomodel.SpecificationLink createSpecificationLink()
          Creates an empty SpecificationLink instance.
 javax.xml.registry.infomodel.TelephoneNumber createTelephoneNumber()
          Create a TelephoneNumber instance using the specified parameters.
 javax.xml.registry.infomodel.User createUser()
          Create a User instance using the specified parameters.
 void deleteConceptEquivalence(javax.xml.registry.infomodel.Concept concept1, javax.xml.registry.infomodel.Concept concept2)
          Removes the semantic equivalence, if any, between the specified two Concepts.
 javax.xml.registry.BulkResponse deleteObjects(java.util.Collection keys)
          Deletes one or more previously submitted objects from the registry.
 javax.xml.registry.BulkResponse deleteObjects(java.util.Collection keys, java.lang.String objectType)
          Deletes one or more previously submitted objects from the registry using the object keys and a specified objectType attribute.
 javax.xml.registry.BulkResponse deprecateObjects(java.util.Collection keys)
          Deprecates one or more previously submitted objects.
 java.util.HashMap getObjectTypesMap()
           
 javax.xml.registry.RegistryService getRegistryService()
          Returns the parent RegistryService that created this object.
 void processObject(java.lang.Object obj, java.util.HashSet submitObjects, java.util.HashSet processedObjects, java.util.HashSet composedObjects, java.lang.String pad)
          Process an Object that may be a RegistryObject, RegistryObjectRef or something else (e.g.
 void processRegistryObject(RegistryObjectImpl ro, java.util.HashSet submitObjects, java.util.HashSet processedObjects, java.util.HashSet composedObjects, java.lang.String pad)
          Process a RegistryObject.
 void processRegistryObjectRef(RegistryObjectRef ref, java.util.HashSet submitObjects, java.util.HashSet processedObjects, java.util.HashSet composedObjects, java.lang.String pad)
          Process a RegistryObjectRef.
 void removeModifiedObject(javax.xml.registry.infomodel.RegistryObject ro)
          Remove an object from list set of modified objects
 javax.xml.registry.BulkResponse saveAllObjects()
           
 javax.xml.registry.BulkResponse saveObjects(java.util.Collection objects)
          Saves one or more Objects to the registry.
 javax.xml.registry.BulkResponse unDeprecateObjects(java.util.Collection keys)
          Undeprecates one or more previously deprecated objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createObject

public java.lang.Object createObject(java.lang.String className)
                              throws javax.xml.registry.JAXRException,
                                     javax.xml.registry.InvalidRequestException,
                                     javax.xml.registry.UnsupportedCapabilityException
Creates instances of information model interfaces (factory method). To create an Organization, use this method as follows:
 Organization org = (Organization)
    lifeCycleMgr.createObject(LifeCycleManager.ORGANIZATION);
 

Capability Level: 0

Specified by:
createObject in interface javax.xml.registry.LifeCycleManager
Returns:
an Object that can then be cast to an instance of the interface
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error
javax.xml.registry.InvalidRequestException - if the interface is not an interface in the javax.xml.registry.infomodel package
javax.xml.registry.UnsupportedCapabilityException - if the client attempts to create an instance of an infomodel interface that is not supported by the capability level of the JAXR provider

createAssociation

public javax.xml.registry.infomodel.Association createAssociation(javax.xml.registry.infomodel.RegistryObject targetObject,
                                                                  javax.xml.registry.infomodel.Concept associationType)
                                                           throws javax.xml.registry.JAXRException
Create an Association instance using the specified parameters. The sourceObject is left null and will be set when the Association is added to a RegistryObject.

Note that for a UDDI provider an Association may only be created between Organizations.

Capability Level: 0

Specified by:
createAssociation in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createClassification

public javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.ClassificationScheme scheme,
                                                                        java.lang.String name,
                                                                        java.lang.String value)
                                                                 throws javax.xml.registry.JAXRException
Create a Classification instance for an external Classification using the specified name and value that identifies a taxonomy element within specified ClassificationScheme.

Capability Level: 0

Specified by:
createClassification in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createClassification

public javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.ClassificationScheme scheme,
                                                                        javax.xml.registry.infomodel.InternationalString name,
                                                                        java.lang.String value)
                                                                 throws javax.xml.registry.JAXRException
Create a Classification instance for an external Classification using the specified name and value that identifies a taxonomy element within specified ClassificationScheme.

Capability Level: 0

Specified by:
createClassification in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createClassification

public javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.Concept concept)
                                                                 throws javax.xml.registry.JAXRException,
                                                                        javax.xml.registry.InvalidRequestException
Create a Classification instance for an internal Classification using the specified Concept which identifies a taxonomy element within an internal ClassificationScheme.

Throws InvalidRequestException if the Concept is not under a ClassificationScheme.

Capability Level: 0

Specified by:
createClassification in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException
javax.xml.registry.InvalidRequestException

createClassificationScheme

public javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme(java.lang.String name,
                                                                                    java.lang.String description)
                                                                             throws javax.xml.registry.JAXRException,
                                                                                    javax.xml.registry.InvalidRequestException
Create a scheme given specified parameters. This is the method to use to create a scheme in most situations.

Capability Level: 0

Specified by:
createClassificationScheme in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException
javax.xml.registry.InvalidRequestException

createClassificationScheme

public javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme(javax.xml.registry.infomodel.InternationalString name,
                                                                                    javax.xml.registry.infomodel.InternationalString description)
                                                                             throws javax.xml.registry.JAXRException,
                                                                                    javax.xml.registry.InvalidRequestException
Create a scheme given specified parameters. This is the method to use to create a scheme in most situations.

Capability Level: 0

Specified by:
createClassificationScheme in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException
javax.xml.registry.InvalidRequestException

createClassificationScheme

public javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme(javax.xml.registry.infomodel.Concept concept)
                                                                             throws javax.xml.registry.JAXRException,
                                                                                    javax.xml.registry.InvalidRequestException
Creates a ClassificationScheme from a Concept that has no ClassificationScheme or parent Concept.

This method is a special case method to do a type safe conversion from Concept to ClassificationScheme.

This method is provided to allow for Concepts returned by the BusinessQueryManager findConcepts call to be safely cast to ClassificationScheme. It is up to the programer to make sure that the Concept is indeed semantically a ClassificationScheme.

This method is necessary because in UDDI a tModel may serve multiple purposes and there is no way to know when a tModel maps to a Concept and when it maps to a ClassificationScheme. UDDI leaves the determination to the programmer and consequently so does this method.

Throws InvalidRequestException if the Concept has a parent Concept or is under a ClassificationScheme.

Capability Level: 0

Specified by:
createClassificationScheme in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException
javax.xml.registry.InvalidRequestException

createConcept

public javax.xml.registry.infomodel.Concept createConcept(javax.xml.registry.infomodel.RegistryObject parent,
                                                          java.lang.String name,
                                                          java.lang.String value)
                                                   throws javax.xml.registry.JAXRException
Create a Concept instance using the specified parameters.

Capability Level: 0

Specified by:
createConcept in interface javax.xml.registry.LifeCycleManager
Parameters:
parent - Is either a reference to a parent ClassificationScheme or Concept
Throws:
javax.xml.registry.JAXRException

createConcept

public javax.xml.registry.infomodel.Concept createConcept(javax.xml.registry.infomodel.RegistryObject parent,
                                                          javax.xml.registry.infomodel.InternationalString name,
                                                          java.lang.String value)
                                                   throws javax.xml.registry.JAXRException
Create a Concept instance using the specified parameters.

Capability Level: 0

Specified by:
createConcept in interface javax.xml.registry.LifeCycleManager
Parameters:
parent - Is either a reference to a parent ClassificationScheme or Concept
Throws:
javax.xml.registry.JAXRException

createEmailAddress

public javax.xml.registry.infomodel.EmailAddress createEmailAddress(java.lang.String address)
                                                             throws javax.xml.registry.JAXRException
Creates an EmailAddress instance using an address as the parameter.

Capability Level: 0

Specified by:
createEmailAddress in interface javax.xml.registry.LifeCycleManager
Parameters:
address - the email address
Returns:
the EmailAddress instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createEmailAddress

public javax.xml.registry.infomodel.EmailAddress createEmailAddress(java.lang.String address,
                                                                    java.lang.String type)
                                                             throws javax.xml.registry.JAXRException
Creates an EmailAddress instance using both an address and a type as parameters.

Capability Level: 0

Specified by:
createEmailAddress in interface javax.xml.registry.LifeCycleManager
Parameters:
address - the email address
type - the type of the address
Returns:
the EmailAddress instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createExternalIdentifier

public javax.xml.registry.infomodel.ExternalIdentifier createExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme scheme,
                                                                                java.lang.String name,
                                                                                java.lang.String value)
                                                                         throws javax.xml.registry.JAXRException
Create an ExternalIdentifier instance using the specified parameters.

Capability Level: 0

Specified by:
createExternalIdentifier in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createExternalIdentifier

public javax.xml.registry.infomodel.ExternalIdentifier createExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme scheme,
                                                                                javax.xml.registry.infomodel.InternationalString name,
                                                                                java.lang.String value)
                                                                         throws javax.xml.registry.JAXRException
Create an ExternalIdentifier instance using the specified parameters.

Capability Level: 0

Specified by:
createExternalIdentifier in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createExternalLink

public javax.xml.registry.infomodel.ExternalLink createExternalLink(java.lang.String externalURI,
                                                                    java.lang.String description)
                                                             throws javax.xml.registry.JAXRException
Create an ExternalLink instance using the specified parameters.

Capability Level: 0

Specified by:
createExternalLink in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createExternalLink

public javax.xml.registry.infomodel.ExternalLink createExternalLink(java.lang.String externalURI,
                                                                    javax.xml.registry.infomodel.InternationalString description)
                                                             throws javax.xml.registry.JAXRException
Create an ExternalLink instance using the specified parameters.

Capability Level: 0

Specified by:
createExternalLink in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createExtrinsicObject

public javax.xml.registry.infomodel.ExtrinsicObject createExtrinsicObject(javax.activation.DataHandler repositoryItem)
                                                                   throws javax.xml.registry.JAXRException
Creates an ExtrinsicObject instance using the specified parameters.

Capability Level: 1

Specified by:
createExtrinsicObject in interface javax.xml.registry.LifeCycleManager
Parameters:
repositoryItem - the DataHandler for the repository item. Must not be null.
Returns:
the ExtrinsicObject instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createExtrinsicObject

public javax.xml.registry.infomodel.ExtrinsicObject createExtrinsicObject()
                                                                   throws javax.xml.registry.JAXRException
Creates an ExtrinsicObject instance using the specified parameters. JAXR 2.0??

Capability Level: 1

Returns:
the ExtrinsicObject instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createInternationalString

public javax.xml.registry.infomodel.InternationalString createInternationalString()
                                                                           throws javax.xml.registry.JAXRException
Create a InternationalString instance using the specified parameters.

Capability Level: 0

Specified by:
createInternationalString in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createInternationalString

public javax.xml.registry.infomodel.InternationalString createInternationalString(java.lang.String s)
                                                                           throws javax.xml.registry.JAXRException
Create a InternationalString instance using the specified parameters and the default Locale.

Capability Level: 0

Specified by:
createInternationalString in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createInternationalString

public javax.xml.registry.infomodel.InternationalString createInternationalString(java.util.Locale l,
                                                                                  java.lang.String s)
                                                                           throws javax.xml.registry.JAXRException
Create a InternationalString instance using the specified parameters.

Capability Level: 0

Specified by:
createInternationalString in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createKey

public javax.xml.registry.infomodel.Key createKey(java.lang.String id)
                                           throws javax.xml.registry.JAXRException
Creates a Key instance from an ID.

Capability Level: 0

Specified by:
createKey in interface javax.xml.registry.LifeCycleManager
Parameters:
id - the ID string from which to create the Key
Returns:
the Key instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createKey

public javax.xml.registry.infomodel.Key createKey()
                                           throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

createId

public java.lang.String createId()
                          throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

createLocalizedString

public javax.xml.registry.infomodel.LocalizedString createLocalizedString(java.util.Locale l,
                                                                          java.lang.String s)
                                                                   throws javax.xml.registry.JAXRException
Creates a LocalizedString instance using the specified Locale and String parameters.

Capability Level: 0

Specified by:
createLocalizedString in interface javax.xml.registry.LifeCycleManager
Parameters:
l - the Locale in which to create the LocalizedString
s - the String from which to create the LocalizedString
Returns:
the LocalizedString instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createLocalizedString

public javax.xml.registry.infomodel.LocalizedString createLocalizedString(java.util.Locale l,
                                                                          java.lang.String s,
                                                                          java.lang.String charSetName)
                                                                   throws javax.xml.registry.JAXRException
Creates a LocalizedString instance using the specified Locale, String, and character set parameters.

Capability Level: 0

Specified by:
createLocalizedString in interface javax.xml.registry.LifeCycleManager
Parameters:
l - the Locale in which to create the LocalizedString
s - the String from which to create the LocalizedString
charSetName - the name of the character set to use
Returns:
the LocalizedString instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createOrganization

public javax.xml.registry.infomodel.Organization createOrganization(java.lang.String name)
                                                             throws javax.xml.registry.JAXRException
Create an Organization instance using the specified parameters.

Capability Level: 0

Specified by:
createOrganization in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createOrganization

public javax.xml.registry.infomodel.Organization createOrganization(javax.xml.registry.infomodel.InternationalString name)
                                                             throws javax.xml.registry.JAXRException
Create an Organization instance using the specified parameters.

Capability Level: 0

Specified by:
createOrganization in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createPersonName

public javax.xml.registry.infomodel.PersonName createPersonName(java.lang.String firstName,
                                                                java.lang.String middleName,
                                                                java.lang.String lastName)
                                                         throws javax.xml.registry.JAXRException
Create a PersonName instance using the specified parameters.

Capability Level: 1

Specified by:
createPersonName in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createPersonName

public javax.xml.registry.infomodel.PersonName createPersonName(java.lang.String fullName)
                                                         throws javax.xml.registry.JAXRException
Create a PersonName instance using the specified parameters.

Capability Level: 0

Specified by:
createPersonName in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createPostalAddress

public javax.xml.registry.infomodel.PostalAddress createPostalAddress(java.lang.String streetNumber,
                                                                      java.lang.String street,
                                                                      java.lang.String city,
                                                                      java.lang.String stateOrProvince,
                                                                      java.lang.String country,
                                                                      java.lang.String postalCode,
                                                                      java.lang.String type)
                                                               throws javax.xml.registry.JAXRException
Create a PostalAddress instance using the specified parameters.

Capability Level: 0

Specified by:
createPostalAddress in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createRegistryPackage

public javax.xml.registry.infomodel.RegistryPackage createRegistryPackage(java.lang.String name)
                                                                   throws javax.xml.registry.JAXRException
Create a RegistryPackage instance using the specified parameters.

Capability Level: 1

Specified by:
createRegistryPackage in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createRegistryPackage

public javax.xml.registry.infomodel.RegistryPackage createRegistryPackage(javax.xml.registry.infomodel.InternationalString name)
                                                                   throws javax.xml.registry.JAXRException
Create a RegistryPackage instance using the specified parameters.

Capability Level: 1

Specified by:
createRegistryPackage in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createService

public javax.xml.registry.infomodel.Service createService(java.lang.String name)
                                                   throws javax.xml.registry.JAXRException
Create an Service instance using the specified parameters.

Capability Level: 0

Specified by:
createService in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createService

public javax.xml.registry.infomodel.Service createService(javax.xml.registry.infomodel.InternationalString name)
                                                   throws javax.xml.registry.JAXRException
Create an Service instance using the specified parameters.

Capability Level: 0

Specified by:
createService in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createServiceBinding

public javax.xml.registry.infomodel.ServiceBinding createServiceBinding()
                                                                 throws javax.xml.registry.JAXRException
Create an ServiceBinding instance using the specified parameters.

Capability Level: 0

Specified by:
createServiceBinding in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createSlot

public javax.xml.registry.infomodel.Slot createSlot(java.lang.String name,
                                                    java.lang.String value,
                                                    java.lang.String slotType)
                                             throws javax.xml.registry.JAXRException
Creates a Slot instance using the specified parameters, where the value is a String.

Capability Level: 0

Specified by:
createSlot in interface javax.xml.registry.LifeCycleManager
Parameters:
name - the name of the Slot
value - the value (a String)
slotType - the slot type
Returns:
the Slot instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createSlot

public javax.xml.registry.infomodel.Slot createSlot(java.lang.String name,
                                                    java.util.Collection values,
                                                    java.lang.String slotType)
                                             throws javax.xml.registry.JAXRException
Creates a Slot instance using the specified parameters, where the value is a Collection of Strings.

Capability Level: 0

Specified by:
createSlot in interface javax.xml.registry.LifeCycleManager
Parameters:
name - the name of the Slot
slotType - the slot type
Returns:
the Slot instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createSpecificationLink

public javax.xml.registry.infomodel.SpecificationLink createSpecificationLink()
                                                                       throws javax.xml.registry.JAXRException
Creates an empty SpecificationLink instance.

Capability Level: 0

Specified by:
createSpecificationLink in interface javax.xml.registry.LifeCycleManager
Returns:
the SpecificationLink instance created
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

createTelephoneNumber

public javax.xml.registry.infomodel.TelephoneNumber createTelephoneNumber()
                                                                   throws javax.xml.registry.JAXRException
Create a TelephoneNumber instance using the specified parameters.

Capability Level: 0

Specified by:
createTelephoneNumber in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

createUser

public javax.xml.registry.infomodel.User createUser()
                                             throws javax.xml.registry.JAXRException
Create a User instance using the specified parameters.

Capability Level: 0

Specified by:
createUser in interface javax.xml.registry.LifeCycleManager
Throws:
javax.xml.registry.JAXRException

saveAllObjects

public javax.xml.registry.BulkResponse saveAllObjects()
                                               throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

addModifiedObject

public void addModifiedObject(javax.xml.registry.infomodel.RegistryObject ro)
Add an object to list set of modified objects


removeModifiedObject

public void removeModifiedObject(javax.xml.registry.infomodel.RegistryObject ro)
Remove an object from list set of modified objects


saveObjects

public javax.xml.registry.BulkResponse saveObjects(java.util.Collection objects)
                                            throws javax.xml.registry.JAXRException
Saves one or more Objects to the registry. An object may be a RegistryObject sub-class or a CataloguedObject. If an object is not in the registry, then it is created in the registry. If it already exists in the registry and has been modified, then its state is updated (replaced) in the registry.

Capability Level: 0

Specified by:
saveObjects in interface javax.xml.registry.LifeCycleManager
Returns:
BulkResponse containing the Collection of keys for those objects that were saved successfully and any SaveException that was encountered in case of partial commit.
Throws:
javax.xml.registry.JAXRException

processObject

public void processObject(java.lang.Object obj,
                          java.util.HashSet submitObjects,
                          java.util.HashSet processedObjects,
                          java.util.HashSet composedObjects,
                          java.lang.String pad)
                   throws javax.xml.registry.JAXRException
Process an Object that may be a RegistryObject, RegistryObjectRef or something else (e.g. Slot). Rules: -Do nothing for objects that are niether RegistryObjectImpl nor RegistryObjectRef (e.g. Slots) -Don't process the same object more than once

Throws:
javax.xml.registry.JAXRException

processRegistryObjectRef

public void processRegistryObjectRef(RegistryObjectRef ref,
                                     java.util.HashSet submitObjects,
                                     java.util.HashSet processedObjects,
                                     java.util.HashSet composedObjects,
                                     java.lang.String pad)
                              throws javax.xml.registry.JAXRException
Process a RegistryObjectRef. Rules: -Submit ObjectRef for references to clean objects -Call processObject for references to dirty objects The ReferencedObject may be: a) A new or modified object b) An ObjectRef to an object in the registry

Throws:
javax.xml.registry.JAXRException

processRegistryObject

public void processRegistryObject(RegistryObjectImpl ro,
                                  java.util.HashSet submitObjects,
                                  java.util.HashSet processedObjects,
                                  java.util.HashSet composedObjects,
                                  java.lang.String pad)
                           throws javax.xml.registry.JAXRException
Process a RegistryObject. Potential cases: 1) Composed object is submitted as a composed object 2) Composed object is submitted as a top level object (e.g. create Classification, call setClassifiedObject on it and save it.)

Throws:
javax.xml.registry.JAXRException

deprecateObjects

public javax.xml.registry.BulkResponse deprecateObjects(java.util.Collection keys)
                                                 throws javax.xml.registry.JAXRException
Deprecates one or more previously submitted objects. Deprecation marks an object as "soon to be deleted". Once an object is deprecated, the JAXR provider must not allow any new references (e.g. new Associations, Classifications and ExternalLinks) to that object to be submitted. If a client makes an API call that results in a new reference to a deprecated object, the JAXR provider must throw a java.lang.IllegalStateException within a JAXRException. However, existing references to a deprecated object continue to function normally.

Capability Level: 1

Specified by:
deprecateObjects in interface javax.xml.registry.LifeCycleManager
Parameters:
keys - a Collection of keys for the objects to be deprecated
Returns:
a BulkResponse containing the Collection of keys for those objects that were deprecated successfully and any JAXRException that was encountered in case of partial commit
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

unDeprecateObjects

public javax.xml.registry.BulkResponse unDeprecateObjects(java.util.Collection keys)
                                                   throws javax.xml.registry.JAXRException
Undeprecates one or more previously deprecated objects. If an object was not previously deprecated, it is not an error, and no exception is thrown. Once an object is undeprecated, the JAXR provider must again allow new references (e.g. new Associations, Classifications and ExternalLinks) to that object to be submitted.

Capability Level: 1

Specified by:
unDeprecateObjects in interface javax.xml.registry.LifeCycleManager
Parameters:
keys - a Collection of keys for the objects to be undeprecated
Returns:
a BulkResponse containing the Collection of keys for those objects that were deprecated successfully and any JAXRException that was encountered in case of partial commit
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

deleteObjects

public javax.xml.registry.BulkResponse deleteObjects(java.util.Collection keys)
                                              throws javax.xml.registry.JAXRException
Deletes one or more previously submitted objects from the registry.

Capability Level: 0

Specified by:
deleteObjects in interface javax.xml.registry.LifeCycleManager
Returns:
BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit.
Throws:
javax.xml.registry.JAXRException

createConceptEquivalence

public void createConceptEquivalence(javax.xml.registry.infomodel.Concept concept1,
                                     javax.xml.registry.infomodel.Concept concept2)
                              throws javax.xml.registry.JAXRException
Create a semantic equivalence between the two specified Concepts. This is a convenience method to create an Association with sourceObject as concept1 and targetObject as concept2 and associationType as EquivalentTo.

Capability Level: 0

Throws:
javax.xml.registry.JAXRException

deleteConceptEquivalence

public void deleteConceptEquivalence(javax.xml.registry.infomodel.Concept concept1,
                                     javax.xml.registry.infomodel.Concept concept2)
                              throws javax.xml.registry.JAXRException
Removes the semantic equivalence, if any, between the specified two Concepts. This is a convenience method to to delete any Association sourceObject as concept1 and targetObject as concept2 and associationType as EquivalentTo.

Capability Level: 0

Throws:
javax.xml.registry.JAXRException

deleteObjects

public javax.xml.registry.BulkResponse deleteObjects(java.util.Collection keys,
                                                     java.lang.String objectType)
                                              throws javax.xml.registry.JAXRException
Deletes one or more previously submitted objects from the registry using the object keys and a specified objectType attribute.

Capability Level: 0

Specified by:
deleteObjects in interface javax.xml.registry.LifeCycleManager
Parameters:
keys - a Collection of keys for the objects to be deleted
objectType - the objectType attribute for the objects to be deleted
Returns:
a BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

getRegistryService

public javax.xml.registry.RegistryService getRegistryService()
                                                      throws javax.xml.registry.JAXRException
Returns the parent RegistryService that created this object.

Capability Level: 0

Specified by:
getRegistryService in interface javax.xml.registry.LifeCycleManager
Returns:
the parent RegistryService
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

getObjectTypesMap

public java.util.HashMap getObjectTypesMap()


Copyright © 2001-2004 OASIS. All Rights Reserved.