public interface LifeCycleManager
The factory methods of this interface must throw an 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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASSOCIATION
Constant representing the javax.xml.registry.infomodel.Association interface.
|
static java.lang.String |
AUDITABLE_EVENT
Constant representing the javax.xml.registry.infomodel.AuditableEvent interface.
|
static java.lang.String |
CLASSIFICATION
Constant representing the javax.xml.registry.infomodel.Classification interface.
|
static java.lang.String |
CLASSIFICATION_SCHEME
Constant representing the javax.xml.registry.infomodel.ClassificationScheme interface.
|
static java.lang.String |
CONCEPT
Constant representing the javax.xml.registry.infomodel.Concept interface.
|
static java.lang.String |
EMAIL_ADDRESS
Constant representing the javax.xml.registry.infomodel.EmailAddress interface.
|
static java.lang.String |
EXTERNAL_IDENTIFIER
Constant representing the javax.xml.registry.infomodel.ExternalIdentifier interface.
|
static java.lang.String |
EXTERNAL_LINK
Constant representing the javax.xml.registry.infomodel.ExternalLink interface.
|
static java.lang.String |
EXTRINSIC_OBJECT
Constant representing the javax.xml.registry.infomodel.ExternalLink interface.
|
static java.lang.String |
INTERNATIONAL_STRING
Constant representing the javax.xml.registry.infomodel.InternationalString interface.
|
static java.lang.String |
KEY
Constant representing the javax.xml.registry.infomodel.Key interface.
|
static java.lang.String |
LOCALIZED_STRING
Constant representing the javax.xml.registry.infomodel.LocalizedString interface.
|
static java.lang.String |
ORGANIZATION
Constant representing the javax.xml.registry.infomodel.Organization interface.
|
static java.lang.String |
PERSON_NAME
Constant representing the javax.xml.registry.infomodel.PersonName interface.
|
static java.lang.String |
POSTAL_ADDRESS
Constant representing the javax.xml.registry.infomodel.PostalAddress interface.
|
static java.lang.String |
REGISTRY_ENTRY
Constant representing the javax.xml.registry.infomodel.RegistryEntry interface.
|
static java.lang.String |
REGISTRY_PACKAGE
Constant representing the javax.xml.registry.infomodel.RegistryPackage interface.
|
static java.lang.String |
SERVICE
Constant representing the javax.xml.registry.infomodel.Service interface.
|
static java.lang.String |
SERVICE_BINDING
Constant representing the javax.xml.registry.infomodel.ServiceBinding interface.
|
static java.lang.String |
SLOT
Constant representing the javax.xml.registry.infomodel.Slot interface.
|
static java.lang.String |
SPECIFICATION_LINK
Constant representing the javax.xml.registry.infomodel.SpecificationLink interface.
|
static java.lang.String |
TELEPHONE_NUMBER
Constant representing the javax.xml.registry.infomodel.TelephoneNumber interface.
|
static java.lang.String |
USER
Constant representing the javax.xml.registry.infomodel.User interface.
|
static java.lang.String |
VERSIONABLE
Constant representing the javax.xml.registry.infomodel.Versionable interface.
|
Modifier and Type | Method and Description |
---|---|
Association |
createAssociation(RegistryObject targetObject,
Concept associationType)
Creates an Association instance using the specified
parameters.
|
Classification |
createClassification(ClassificationScheme scheme,
InternationalString name,
java.lang.String value)
Creates a Classification instance for an external
Classification using the specified InternationalString name and String value that identify
a taxonomy element within the specified ClassificationScheme.
|
Classification |
createClassification(ClassificationScheme scheme,
java.lang.String name,
java.lang.String value)
Creates a Classification instance for an external
Classification using the specified String name and String value that identify
a taxonomy element within the specified ClassificationScheme.
|
Classification |
createClassification(Concept concept)
Creates a Classification instance for an internal
Classification using the specified Concept that identifies
a taxonomy element within an internal ClassificationScheme.
|
ClassificationScheme |
createClassificationScheme(Concept concept)
Creates a ClassificationScheme from a Concept that has no
ClassificationScheme or parent Concept.
|
ClassificationScheme |
createClassificationScheme(InternationalString name,
InternationalString description)
Creates a ClassificationScheme given the specified
InternationalString parameters.
|
ClassificationScheme |
createClassificationScheme(java.lang.String name,
java.lang.String description)
Creates a ClassificationScheme given the specified String parameters.
|
Concept |
createConcept(RegistryObject parent,
InternationalString name,
java.lang.String value)
Creates a Concept instance using the specified
parameters, where the name is an InternationalString.
|
Concept |
createConcept(RegistryObject parent,
java.lang.String name,
java.lang.String value)
Creates a Concept instance using the specified
parameters, where the name is a String.
|
EmailAddress |
createEmailAddress(java.lang.String address)
Creates an EmailAddress instance using an address as the
parameter.
|
EmailAddress |
createEmailAddress(java.lang.String address,
java.lang.String type)
Creates an EmailAddress instance using both an address and a type as
parameters.
|
ExternalIdentifier |
createExternalIdentifier(ClassificationScheme identificationScheme,
InternationalString name,
java.lang.String value)
Creates an ExternalIdentifier instance using the specified
parameters, where the name is an InternationalString.
|
ExternalIdentifier |
createExternalIdentifier(ClassificationScheme identificationScheme,
java.lang.String name,
java.lang.String value)
Creates an ExternalIdentifier instance using the specified
parameters, where the name is a String.
|
ExternalLink |
createExternalLink(java.lang.String externalURI,
InternationalString description)
Creates an ExternalLink instance using the specified
parameters, where the description is an InternationalString.
|
ExternalLink |
createExternalLink(java.lang.String externalURI,
java.lang.String description)
Creates an ExternalLink instance using the specified
parameters, where the description is a String.
|
ExtrinsicObject |
createExtrinsicObject(javax.activation.DataHandler repositoryItem)
Creates an ExtrinsicObject instance using the specified
parameters.
|
InternationalString |
createInternationalString()
Creates an empty InternationalString instance.
|
InternationalString |
createInternationalString(java.util.Locale l,
java.lang.String s)
Creates an InternationalString instance using the specified
Locale and String parameters.
|
InternationalString |
createInternationalString(java.lang.String s)
Creates an InternationalString instance using a String
parameter and the default Locale.
|
Key |
createKey(java.lang.String id)
Creates a Key instance from an ID.
|
LocalizedString |
createLocalizedString(java.util.Locale l,
java.lang.String s)
Creates a LocalizedString instance using the specified
Locale and String parameters.
|
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 interfaceName)
Creates instances of information model
interfaces (factory method).
|
Organization |
createOrganization(InternationalString name)
Creates an Organization instance using the specified
name, where the name is an InternationalString.
|
Organization |
createOrganization(java.lang.String name)
Creates an Organization instance using the specified
name, where the name is a String.
|
PersonName |
createPersonName(java.lang.String fullName)
Creates a PersonName instance using the specified
full name.
|
PersonName |
createPersonName(java.lang.String firstName,
java.lang.String middleName,
java.lang.String lastName)
Creates a PersonName instance using the specified
first, middle, and last names.
|
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)
Creates a PostalAddress instance using the specified
parameters.
|
RegistryPackage |
createRegistryPackage(InternationalString name)
Creates a RegistryPackage instance using the specified
name, where the name is an InternationalString.
|
RegistryPackage |
createRegistryPackage(java.lang.String name)
Creates a RegistryPackage instance using the specified
name, where the name is a String.
|
Service |
createService(InternationalString name)
Creates a Service instance using the specified
name, where the name is an InternationalString.
|
Service |
createService(java.lang.String name)
Creates a Service instance using the specified
name, where the name is a String.
|
ServiceBinding |
createServiceBinding()
Creates an empty ServiceBinding instance.
|
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.
|
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.
|
SpecificationLink |
createSpecificationLink()
Creates an empty SpecificationLink instance.
|
TelephoneNumber |
createTelephoneNumber()
Creates an empty TelephoneNumber instance.
|
User |
createUser()
Creates an empty User instance.
|
BulkResponse |
deleteObjects(java.util.Collection keys)
Deletes one or more previously submitted objects from the registry
using the object keys.
|
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.
|
BulkResponse |
deprecateObjects(java.util.Collection keys)
Deprecates one or more previously submitted objects.
|
RegistryService |
getRegistryService()
Returns the parent RegistryService that created this object.
|
BulkResponse |
saveObjects(java.util.Collection objects)
Saves one or more Objects to the registry.
|
BulkResponse |
unDeprecateObjects(java.util.Collection keys)
Undeprecates one or more previously deprecated objects.
|
static final java.lang.String ASSOCIATION
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String AUDITABLE_EVENT
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String CLASSIFICATION
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String CLASSIFICATION_SCHEME
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String CONCEPT
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String EMAIL_ADDRESS
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String EXTERNAL_IDENTIFIER
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String EXTERNAL_LINK
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String EXTRINSIC_OBJECT
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String INTERNATIONAL_STRING
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String KEY
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String LOCALIZED_STRING
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String ORGANIZATION
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String PERSON_NAME
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String POSTAL_ADDRESS
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String REGISTRY_ENTRY
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String REGISTRY_PACKAGE
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String SERVICE
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String SERVICE_BINDING
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String SLOT
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String SPECIFICATION_LINK
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String TELEPHONE_NUMBER
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String USER
LifeCycleManager.createObject
,
Constant Field Valuesstatic final java.lang.String VERSIONABLE
LifeCycleManager.createObject
,
Constant Field Valuesjava.lang.Object createObject(java.lang.String interfaceName) throws JAXRException, InvalidRequestException, UnsupportedCapabilityException
Organization org = (Organization) lifeCycleMgr.createObject(LifeCycleManager.ORGANIZATION);
interfaceName
- the unqualified name of an interface in the javax.xml.registry.infomodel packageJAXRException
- if the JAXR provider encounters an internal errorInvalidRequestException
- if the interface is not an interface in
the javax.xml.registry.infomodel packageUnsupportedCapabilityException
- if the client attempts to create an instance of an infomodel interface that is not supported by the capability level of the JAXR providerAssociation createAssociation(RegistryObject targetObject, Concept associationType) throws JAXRException
Note that for a UDDI provider an Association may only be created between Organizations.
targetObject
- the target RegistryObject for the associationassociationType
- the association type for the AssociationJAXRException
- if the JAXR provider encounters an internal errorClassification createClassification(ClassificationScheme scheme, java.lang.String name, java.lang.String value) throws JAXRException
scheme
- the ClassificationScheme to be usedname
- the name of the taxonomy element (a String)value
- the value of the taxonomy elementJAXRException
- if the JAXR provider encounters an internal errorClassification createClassification(ClassificationScheme scheme, InternationalString name, java.lang.String value) throws JAXRException
scheme
- the ClassificationScheme to be usedname
- the name of the taxonomy element (an InternationalString)value
- the value of the taxonomy elementJAXRException
- if the JAXR provider encounters an internal errorClassification createClassification(Concept concept) throws JAXRException, InvalidRequestException
concept
- the Concept that identifies the taxonomy elementJAXRException
- if the JAXR provider encounters an internal errorInvalidRequestException
- if the Concept is not under
a ClassificationSchemeClassificationScheme createClassificationScheme(java.lang.String name, java.lang.String description) throws JAXRException, InvalidRequestException
name
- the name of the ClassificationScheme (a String)description
- a description of the ClassificationScheme (a String)JAXRException
- if the JAXR provider encounters an internal errorInvalidRequestException
ClassificationScheme createClassificationScheme(InternationalString name, InternationalString description) throws JAXRException, InvalidRequestException
name
- the name of the ClassificationScheme (an InternationalString)description
- a description of the ClassificationScheme (an InternationalString)JAXRException
- if the JAXR provider encounters an internal errorInvalidRequestException
ClassificationScheme createClassificationScheme(Concept concept) throws JAXRException, InvalidRequestException
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 programmer to make sure that the Concept is indeed semantically a ClassificationScheme.
This method is necessary because in the UDDI specification 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. The UDDI specification leaves the determination to the programmer, and consequently so does this method.
concept
- the Concept to be usedJAXRException
- if the JAXR provider encounters an internal errorInvalidRequestException
- if the Concept has a parent Concept
or is under a ClassificationSchemeConcept createConcept(RegistryObject parent, java.lang.String name, java.lang.String value) throws JAXRException
parent
- a reference either to a parent ClassificationScheme or to a Conceptname
- the name of the concept (a String)value
- the value of the conceptJAXRException
- if the JAXR provider encounters an internal errorConcept createConcept(RegistryObject parent, InternationalString name, java.lang.String value) throws JAXRException
parent
- a reference either to a parent ClassificationScheme or to a Conceptname
- the name of the concept (an InternationalString)value
- the value of the conceptJAXRException
- if the JAXR provider encounters an internal errorEmailAddress createEmailAddress(java.lang.String address) throws JAXRException
address
- the email addressJAXRException
- if the JAXR provider encounters an internal errorEmailAddress createEmailAddress(java.lang.String address, java.lang.String type) throws JAXRException
address
- the email addresstype
- the type of the addressJAXRException
- if the JAXR provider encounters an internal errorExternalIdentifier createExternalIdentifier(ClassificationScheme identificationScheme, java.lang.String name, java.lang.String value) throws JAXRException
identificationScheme
- the ClassificationScheme usedname
- the name of the external identifier (a String)value
- the value of the external identifierJAXRException
- if the JAXR provider encounters an internal errorExternalIdentifier createExternalIdentifier(ClassificationScheme identificationScheme, InternationalString name, java.lang.String value) throws JAXRException
identificationScheme
- the ClassificationScheme usedname
- the name of the external identifier (an InternationalString)value
- the value of the external identifierJAXRException
- if the JAXR provider encounters an internal errorExternalLink createExternalLink(java.lang.String externalURI, java.lang.String description) throws JAXRException
externalURI
- the external URIdescription
- a description of the link (a String)JAXRException
- if the JAXR provider encounters an internal errorExternalLink createExternalLink(java.lang.String externalURI, InternationalString description) throws JAXRException
externalURI
- the external URIdescription
- a description of the link (an InternationalString)JAXRException
- if the JAXR provider encounters an internal errorExtrinsicObject createExtrinsicObject(javax.activation.DataHandler repositoryItem) throws JAXRException
repositoryItem
- the DataHandler for the repository item. Must not be null.JAXRException
- if the JAXR provider encounters an internal errorInternationalString createInternationalString() throws JAXRException
JAXRException
- if the JAXR provider encounters an internal errorInternationalString createInternationalString(java.lang.String s) throws JAXRException
s
- the String from which to create the InternationalStringJAXRException
- if the JAXR provider encounters an internal errorInternationalString createInternationalString(java.util.Locale l, java.lang.String s) throws JAXRException
l
- the Locale in which to create the InternationalStrings
- the String from which to create the InternationalStringJAXRException
- if the JAXR provider encounters an internal errorKey createKey(java.lang.String id) throws JAXRException
id
- the ID string from which to create the KeyJAXRException
- if the JAXR provider encounters an internal errorLocalizedString createLocalizedString(java.util.Locale l, java.lang.String s) throws JAXRException
l
- the Locale in which to create the LocalizedStrings
- the String from which to create the LocalizedStringJAXRException
- if the JAXR provider encounters an internal errorLocalizedString createLocalizedString(java.util.Locale l, java.lang.String s, java.lang.String charSetName) throws JAXRException
l
- the Locale in which to create the LocalizedStrings
- the String from which to create the LocalizedStringcharSetName
- the name of the character set to useJAXRException
- if the JAXR provider encounters an internal errorOrganization createOrganization(java.lang.String name) throws JAXRException
name
- the name of the OrganizationJAXRException
- if the JAXR provider encounters an internal errorOrganization createOrganization(InternationalString name) throws JAXRException
name
- the name of the OrganizationJAXRException
- if the JAXR provider encounters an internal errorPersonName createPersonName(java.lang.String firstName, java.lang.String middleName, java.lang.String lastName) throws JAXRException
firstName
- the person's first namemiddleName
- the person's middle namelastName
- the person's last nameJAXRException
- if the JAXR provider encounters an internal errorPersonName createPersonName(java.lang.String fullName) throws JAXRException
fullName
- the person's full nameJAXRException
- if the JAXR provider encounters an internal errorPostalAddress 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 JAXRException
streetNumber
- the street numberstreet
- the street namecity
- the city namestateOrProvince
- the state or province namecountry
- the country namepostalCode
- the postal code (such as a US ZIP code)type
- the type of the addressJAXRException
- if the JAXR provider encounters an internal errorRegistryPackage createRegistryPackage(java.lang.String name) throws JAXRException
name
- the name of the registry package (a String)JAXRException
- if the JAXR provider encounters an internal errorRegistryPackage createRegistryPackage(InternationalString name) throws JAXRException
name
- the name of the registry package (an InternationalString)JAXRException
- if the JAXR provider encounters an internal errorService createService(java.lang.String name) throws JAXRException
name
- the name of the Service (a String)JAXRException
- if the JAXR provider encounters an internal errorService createService(InternationalString name) throws JAXRException
name
- the name of the Service (an InternationalString)JAXRException
- if the JAXR provider encounters an internal errorServiceBinding createServiceBinding() throws JAXRException
JAXRException
- if the JAXR provider encounters an internal errorSlot createSlot(java.lang.String name, java.lang.String value, java.lang.String slotType) throws JAXRException
name
- the name of the Slotvalue
- the value (a String)slotType
- the slot typeJAXRException
- if the JAXR provider encounters an internal errorSlot createSlot(java.lang.String name, java.util.Collection values, java.lang.String slotType) throws JAXRException
name
- the name of the Slotvalue
- the value (a Collection of Strings)slotType
- the slot typeJAXRException
- if the JAXR provider encounters an internal errorSpecificationLink createSpecificationLink() throws JAXRException
JAXRException
- if the JAXR provider encounters an internal errorTelephoneNumber createTelephoneNumber() throws JAXRException
JAXRException
- if the JAXR provider encounters an internal errorUser createUser() throws JAXRException
JAXRException
- if the JAXR provider encounters an internal errorBulkResponse saveObjects(java.util.Collection objects) throws JAXRException
If an object is not in the registry, 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.
objects
- a potentially heterogeneous Collection of RegistryObject instancesJAXRException
- if the JAXR provider encounters an internal errorBulkResponse deprecateObjects(java.util.Collection keys) throws JAXRException
keys
- a Collection of keys for the objects to be deprecatedJAXRException
- if the JAXR provider encounters an internal errorBulkResponse unDeprecateObjects(java.util.Collection keys) throws JAXRException
keys
- a Collection of keys for the objects to be undeprecatedJAXRException
- if the JAXR provider encounters an internal errorBulkResponse deleteObjects(java.util.Collection keys) throws JAXRException
keys
- a Collection of keys for the objects to be deletedJAXRException
- if the JAXR provider encounters an internal errorBulkResponse deleteObjects(java.util.Collection keys, java.lang.String objectType) throws JAXRException
keys
- a Collection of keys for the objects to be deletedobjectType
- the objectType attribute for the objects to be deletedJAXRException
- if the JAXR provider encounters an internal errorRegistryService getRegistryService() throws JAXRException
JAXRException
- if the JAXR provider encounters an internal error