Class LifeCycleManagerImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.LifeCycleManagerImpl
-
- All Implemented Interfaces:
javax.xml.registry.LifeCycleManager
- Direct Known Subclasses:
BusinessLifeCycleManagerImpl
public class LifeCycleManagerImpl extends Object implements javax.xml.registry.LifeCycleManager
Class Declaration for LifeCycleManagerImpl- Author:
- Kathy Walsh
-
-
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
-
-
Constructor Summary
Constructors Constructor Description LifeCycleManagerImpl()LifeCycleManagerImpl(RegistryServiceImpl service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.registry.infomodel.AssociationcreateAssociation(javax.xml.registry.infomodel.RegistryObject targetObject, javax.xml.registry.infomodel.Concept associationType)Create an Association instance using the specified parameters.javax.xml.registry.infomodel.ClassificationcreateClassification(javax.xml.registry.infomodel.ClassificationScheme scheme, String name, 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.ClassificationcreateClassification(javax.xml.registry.infomodel.ClassificationScheme classificationScheme, javax.xml.registry.infomodel.InternationalString name, String value)javax.xml.registry.infomodel.ClassificationcreateClassification(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.ClassificationSchemecreateClassificationScheme(String name, String description)javax.xml.registry.infomodel.ClassificationSchemecreateClassificationScheme(javax.xml.registry.infomodel.Concept concept)Creates a ClassificationScheme from a Concept that has no ClassificationScheme or parent Concept.javax.xml.registry.infomodel.ClassificationSchemecreateClassificationScheme(javax.xml.registry.infomodel.InternationalString name, javax.xml.registry.infomodel.InternationalString description)javax.xml.registry.infomodel.ConceptcreateConcept(javax.xml.registry.infomodel.RegistryObject parent, String name, String value)javax.xml.registry.infomodel.ConceptcreateConcept(javax.xml.registry.infomodel.RegistryObject parent, javax.xml.registry.infomodel.InternationalString name, String value)voidcreateConceptEquivalence(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.EmailAddresscreateEmailAddress(String address)javax.xml.registry.infomodel.EmailAddresscreateEmailAddress(String address, String type)javax.xml.registry.infomodel.ExternalIdentifiercreateExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme identificationScheme, String name, String value)Create an ExternalIdentifier instance using the specified parameters.javax.xml.registry.infomodel.ExternalIdentifiercreateExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme identificationScheme, javax.xml.registry.infomodel.InternationalString name, String value)javax.xml.registry.infomodel.ExternalLinkcreateExternalLink(String externalURI, String description)Create an ExternalLink instance using the specified parameters.javax.xml.registry.infomodel.ExternalLinkcreateExternalLink(String externalURI, javax.xml.registry.infomodel.InternationalString description)javax.xml.registry.infomodel.ExtrinsicObjectcreateExtrinsicObject()Level 1 methodjavax.xml.registry.infomodel.ExtrinsicObjectcreateExtrinsicObject(javax.activation.DataHandler repositoryItem)Level 1 methodjavax.xml.registry.infomodel.InternationalStringcreateInternationalString()javax.xml.registry.infomodel.InternationalStringcreateInternationalString(String str)javax.xml.registry.infomodel.InternationalStringcreateInternationalString(Locale locale, String str)javax.xml.registry.infomodel.KeycreateKey(String id)Create a Key instance using the specified parameters.javax.xml.registry.infomodel.LocalizedStringcreateLocalizedString(Locale locale, String str)javax.xml.registry.infomodel.LocalizedStringcreateLocalizedString(Locale locale, String s, String charsetName)ObjectcreateObject(String className)Factory method for creating instances of information model interfaces.javax.xml.registry.infomodel.OrganizationcreateOrganization(String name)javax.xml.registry.infomodel.OrganizationcreateOrganization(javax.xml.registry.infomodel.InternationalString name)javax.xml.registry.infomodel.PersonNamecreatePersonName(String fullName)Create a PersonName instance using the specified parameters.javax.xml.registry.infomodel.PersonNamecreatePersonName(String firstName, String middleName, String lastName)Level 1 methodjavax.xml.registry.infomodel.PostalAddresscreatePostalAddress(String streetNumber, String street, String city, String stateOrProvince, String country, String postalCode, String type)Create a PostalAddress instance using the specified parameters.javax.xml.registry.infomodel.RegistryPackagecreateRegistryPackage(String name)Level 1 methodjavax.xml.registry.infomodel.RegistryPackagecreateRegistryPackage(javax.xml.registry.infomodel.InternationalString internationalString)Level 1 methodjavax.xml.registry.infomodel.ServicecreateService(String name)javax.xml.registry.infomodel.ServicecreateService(javax.xml.registry.infomodel.InternationalString name)javax.xml.registry.infomodel.ServiceBindingcreateServiceBinding()javax.xml.registry.infomodel.SlotcreateSlot(String name, String value, String slotType)Create a Slot instance using the specified parameters.javax.xml.registry.infomodel.SlotcreateSlot(String name, Collection values, String slotType)Create a Slot instance using the specified parameters.javax.xml.registry.infomodel.SpecificationLinkcreateSpecificationLink()javax.xml.registry.infomodel.TelephoneNumbercreateTelephoneNumber()javax.xml.registry.infomodel.UsercreateUser()voiddeleteConceptEquivalence(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.BulkResponsedeleteObjects(Collection keys)Deletes one or more previously submitted objects from the registry.javax.xml.registry.BulkResponsedeleteObjects(Collection keys, String objectType)Deletes one or more previously submitted objects from the registry.javax.xml.registry.BulkResponsedeprecateObjects(Collection keys)Level 1 methodjavax.xml.registry.RegistryServicegetRegistryService()javax.xml.registry.BulkResponsesaveObjects(Collection cataloguedObjects)Saves one or more CataloguedObjects to the registry.javax.xml.registry.BulkResponseunDeprecateObjects(Collection keys)Level 1 method
-
-
-
Constructor Detail
-
LifeCycleManagerImpl
public LifeCycleManagerImpl()
-
LifeCycleManagerImpl
public LifeCycleManagerImpl(RegistryServiceImpl service)
-
-
Method Detail
-
getRegistryService
public javax.xml.registry.RegistryService getRegistryService()
- Specified by:
getRegistryServicein interfacejavax.xml.registry.LifeCycleManager
-
createObject
public Object createObject(String className) throws javax.xml.registry.JAXRException
Factory method for creating instances of information model interfaces. To create an Organization use it as follows:Organization org = lifeCycleMgr.createObject(LifeCycleManager.Organization);
- Specified by:
createObjectin interfacejavax.xml.registry.LifeCycleManager- Parameters:
interfaceName- Is the unqualified name of an interface in the javax.xml.registry.infomodel packageThrows InvalidRequestException if the interface is not an interface in from javax.xml.registry.infomodel package.
- Throws:
javax.xml.registry.JAXRException
-
createAssociation
public javax.xml.registry.infomodel.Association createAssociation(javax.xml.registry.infomodel.RegistryObject targetObject, javax.xml.registry.infomodel.Concept associationType) throws javax.xml.registry.JAXRExceptionCreate an Association instance using the specified parameters. The sourceObject is left null and will be set wen the Association is added to a RegistryObject.- Specified by:
createAssociationin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createClassification
public javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.ClassificationScheme scheme, String name, String value) throws javax.xml.registry.JAXRExceptionCreate a Classification instance for an external Classification using the specified name and value that identifies a taxonomy element within specified ClassificationScheme.- Specified by:
createClassificationin interfacejavax.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.InvalidRequestExceptionCreate 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.
- Specified by:
createClassificationin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRExceptionjavax.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.InvalidRequestExceptionCreates a ClassificationScheme from a Concept that has no ClassificationScheme or parent Concept.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.
- Specified by:
createClassificationSchemein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRExceptionjavax.xml.registry.InvalidRequestException
-
createClassificationScheme
public javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme(String name, String description) throws javax.xml.registry.JAXRException, javax.xml.registry.InvalidRequestException
- Specified by:
createClassificationSchemein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRExceptionjavax.xml.registry.InvalidRequestException
-
createConcept
public javax.xml.registry.infomodel.Concept createConcept(javax.xml.registry.infomodel.RegistryObject parent, String name, String value) throws javax.xml.registry.JAXRException- Specified by:
createConceptin interfacejavax.xml.registry.LifeCycleManager- 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, String value) throws javax.xml.registry.JAXRException- Specified by:
createConceptin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createEmailAddress
public javax.xml.registry.infomodel.EmailAddress createEmailAddress(String address) throws javax.xml.registry.JAXRException
- Specified by:
createEmailAddressin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createEmailAddress
public javax.xml.registry.infomodel.EmailAddress createEmailAddress(String address, String type) throws javax.xml.registry.JAXRException
- Specified by:
createEmailAddressin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createExternalIdentifier
public javax.xml.registry.infomodel.ExternalIdentifier createExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme identificationScheme, String name, String value) throws javax.xml.registry.JAXRExceptionCreate an ExternalIdentifier instance using the specified parameters.- Specified by:
createExternalIdentifierin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createExternalLink
public javax.xml.registry.infomodel.ExternalLink createExternalLink(String externalURI, String description) throws javax.xml.registry.JAXRException
Create an ExternalLink instance using the specified parameters.- Specified by:
createExternalLinkin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createKey
public javax.xml.registry.infomodel.Key createKey(String id) throws javax.xml.registry.JAXRException
Create a Key instance using the specified parameters.- Specified by:
createKeyin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createPersonName
public javax.xml.registry.infomodel.PersonName createPersonName(String fullName) throws javax.xml.registry.JAXRException
Create a PersonName instance using the specified parameters.- Specified by:
createPersonNamein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createPostalAddress
public javax.xml.registry.infomodel.PostalAddress createPostalAddress(String streetNumber, String street, String city, String stateOrProvince, String country, String postalCode, String type) throws javax.xml.registry.JAXRException
Create a PostalAddress instance using the specified parameters.- Specified by:
createPostalAddressin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createService
public javax.xml.registry.infomodel.Service createService(String name) throws javax.xml.registry.JAXRException
- Specified by:
createServicein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createServiceBinding
public javax.xml.registry.infomodel.ServiceBinding createServiceBinding() throws javax.xml.registry.JAXRException- Specified by:
createServiceBindingin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createSlot
public javax.xml.registry.infomodel.Slot createSlot(String name, String value, String slotType) throws javax.xml.registry.JAXRException
Create a Slot instance using the specified parameters.- Specified by:
createSlotin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createSlot
public javax.xml.registry.infomodel.Slot createSlot(String name, Collection values, String slotType) throws javax.xml.registry.JAXRException
Create a Slot instance using the specified parameters.- Specified by:
createSlotin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createSpecificationLink
public javax.xml.registry.infomodel.SpecificationLink createSpecificationLink() throws javax.xml.registry.JAXRException- Specified by:
createSpecificationLinkin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createTelephoneNumber
public javax.xml.registry.infomodel.TelephoneNumber createTelephoneNumber() throws javax.xml.registry.JAXRException- Specified by:
createTelephoneNumberin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createUser
public javax.xml.registry.infomodel.User createUser() throws javax.xml.registry.JAXRException- Specified by:
createUserin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
saveObjects
public javax.xml.registry.BulkResponse saveObjects(Collection cataloguedObjects) throws javax.xml.registry.JAXRException
Saves one or more CataloguedObjects to the registry. 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:
saveObjectsin interfacejavax.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
-
deleteObjects
public javax.xml.registry.BulkResponse deleteObjects(Collection keys) throws javax.xml.registry.JAXRException
Deletes one or more previously submitted objects from the registry.- Capability Level: 1
- Specified by:
deleteObjectsin interfacejavax.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
-
deleteObjects
public javax.xml.registry.BulkResponse deleteObjects(Collection keys, String objectType) throws javax.xml.registry.JAXRException
Deletes one or more previously submitted objects from the registry.- Capability Level: 0
- Specified by:
deleteObjectsin interfacejavax.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.JAXRExceptionCreate 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.JAXRExceptionRemoves 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
-
createLocalizedString
public javax.xml.registry.infomodel.LocalizedString createLocalizedString(Locale locale, String str) throws javax.xml.registry.JAXRException
- Specified by:
createLocalizedStringin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createInternationalString
public javax.xml.registry.infomodel.InternationalString createInternationalString(Locale locale, String str) throws javax.xml.registry.JAXRException
- Specified by:
createInternationalStringin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createInternationalString
public javax.xml.registry.infomodel.InternationalString createInternationalString() throws javax.xml.registry.JAXRException- Specified by:
createInternationalStringin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createInternationalString
public javax.xml.registry.infomodel.InternationalString createInternationalString(String str) throws javax.xml.registry.JAXRException
- Specified by:
createInternationalStringin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createClassification
public javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.ClassificationScheme classificationScheme, javax.xml.registry.infomodel.InternationalString name, String value) throws javax.xml.registry.JAXRException- Specified by:
createClassificationin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
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- Specified by:
createClassificationSchemein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRExceptionjavax.xml.registry.InvalidRequestException
-
createLocalizedString
public javax.xml.registry.infomodel.LocalizedString createLocalizedString(Locale locale, String s, String charsetName) throws javax.xml.registry.JAXRException
- Specified by:
createLocalizedStringin interfacejavax.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- Specified by:
createOrganizationin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createOrganization
public javax.xml.registry.infomodel.Organization createOrganization(String name) throws javax.xml.registry.JAXRException
- Specified by:
createOrganizationin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createExternalLink
public javax.xml.registry.infomodel.ExternalLink createExternalLink(String externalURI, javax.xml.registry.infomodel.InternationalString description) throws javax.xml.registry.JAXRException
- Specified by:
createExternalLinkin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createExternalIdentifier
public javax.xml.registry.infomodel.ExternalIdentifier createExternalIdentifier(javax.xml.registry.infomodel.ClassificationScheme identificationScheme, javax.xml.registry.infomodel.InternationalString name, String value) throws javax.xml.registry.JAXRException- Specified by:
createExternalIdentifierin interfacejavax.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- Specified by:
createServicein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createRegistryPackage
public javax.xml.registry.infomodel.RegistryPackage createRegistryPackage(javax.xml.registry.infomodel.InternationalString internationalString) throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
createRegistryPackagein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createExtrinsicObject
public javax.xml.registry.infomodel.ExtrinsicObject createExtrinsicObject() throws javax.xml.registry.JAXRExceptionLevel 1 method- Throws:
javax.xml.registry.JAXRException
-
createPersonName
public javax.xml.registry.infomodel.PersonName createPersonName(String firstName, String middleName, String lastName) throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
createPersonNamein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createRegistryPackage
public javax.xml.registry.infomodel.RegistryPackage createRegistryPackage(String name) throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
createRegistryPackagein interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
deprecateObjects
public javax.xml.registry.BulkResponse deprecateObjects(Collection keys) throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
deprecateObjectsin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
unDeprecateObjects
public javax.xml.registry.BulkResponse unDeprecateObjects(Collection keys) throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
unDeprecateObjectsin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
createExtrinsicObject
public javax.xml.registry.infomodel.ExtrinsicObject createExtrinsicObject(javax.activation.DataHandler repositoryItem) throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
createExtrinsicObjectin interfacejavax.xml.registry.LifeCycleManager- Throws:
javax.xml.registry.JAXRException
-
-