org.apache.ws.scout.registry
Class LifeCycleManagerImpl

java.lang.Object
  extended by org.apache.ws.scout.registry.LifeCycleManagerImpl
All Implemented Interfaces:
LifeCycleManager
Direct Known Subclasses:
BusinessLifeCycleManagerImpl

public abstract class LifeCycleManagerImpl
extends Object
implements LifeCycleManager

Implements JAXR LifeCycleManager Interface For futher details, look into the JAXR API Javadoc.

Author:
Anil Saldhana, Geir Magnusson Jr.

Field Summary
protected  RegistryServiceImpl registry
           
 
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
LifeCycleManagerImpl(RegistryService registry)
           
 
Method Summary
 Association createAssociation(RegistryObject targetObject, Concept associationType)
           
 Classification createClassification(ClassificationScheme scheme, InternationalString name, String value)
           
 Classification createClassification(ClassificationScheme scheme, String name, String value)
           
 Classification createClassification(Concept concept)
           
 ClassificationScheme createClassificationScheme(Concept concept)
           
 ClassificationScheme createClassificationScheme(InternationalString name, InternationalString des)
           
 ClassificationScheme createClassificationScheme(String name, String desc)
           
 Concept createConcept(RegistryObject parent, InternationalString name, String value)
           
 Concept createConcept(RegistryObject parent, String name, String value)
           
 EmailAddress createEmailAddress(String address)
           
 EmailAddress createEmailAddress(String address, String type)
           
 ExternalIdentifier createExternalIdentifier(ClassificationScheme ids, InternationalString name, String value)
           
 ExternalIdentifier createExternalIdentifier(ClassificationScheme ids, String name, String value)
           
 ExternalLink createExternalLink(String uri, InternationalString desc)
           
 ExternalLink createExternalLink(String uri, String desc)
           
 ExtrinsicObject createExtrinsicObject(javax.activation.DataHandler repositoryItem)
           
 InternationalString createInternationalString()
           
 InternationalString createInternationalString(Locale locale, String value)
           
 InternationalString createInternationalString(String value)
           
 Key createKey(String id)
           
 LocalizedString createLocalizedString(Locale locale, String value)
           
 LocalizedString createLocalizedString(Locale locale, String value, String charsetName)
           
 Object createObject(String interfaceName)
           
 Organization createOrganization(InternationalString name)
           
 Organization createOrganization(String name)
           
 PersonName createPersonName(String fullName)
           
 PersonName createPersonName(String firstName, String middleName, String lastName)
           
 PostalAddress createPostalAddress(String streetNumber, String street, String city, String stateOrProvince, String country, String postalCode, String type)
           
 RegistryPackage createRegistryPackage(InternationalString name)
           
 RegistryPackage createRegistryPackage(String name)
           
 Service createService(InternationalString name)
           
 Service createService(String name)
           
 ServiceBinding createServiceBinding()
           
 Slot createSlot(String name, Collection<String> values, String slotType)
           
 Slot createSlot(String name, String value, String slotType)
           
 SpecificationLink createSpecificationLink()
           
 TelephoneNumber createTelephoneNumber()
           
 User createUser()
           
 BulkResponse deleteObjects(Collection<Key> keys)
           
abstract  BulkResponse deleteObjects(Collection<Key> keys, String objectType)
          Deletes one or more previously submitted objects from the registry using the object keys and a specified objectType attribute.
 BulkResponse deprecateObjects(Collection<Key> keys)
           
 RegistryService getRegistryService()
           
abstract  BulkResponse saveObjects(Collection objects)
          aves one or more Objects to the registry.
 BulkResponse unDeprecateObjects(Collection<Key> keys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

protected final RegistryServiceImpl registry
Constructor Detail

LifeCycleManagerImpl

public LifeCycleManagerImpl(RegistryService registry)
Method Detail

getRegistryService

public RegistryService getRegistryService()
Specified by:
getRegistryService in interface LifeCycleManager

createObject

public Object createObject(String interfaceName)
                    throws JAXRException
Specified by:
createObject in interface LifeCycleManager
Throws:
JAXRException

createAssociation

public Association createAssociation(RegistryObject targetObject,
                                     Concept associationType)
                              throws JAXRException
Specified by:
createAssociation in interface LifeCycleManager
Throws:
JAXRException

createClassification

public Classification createClassification(Concept concept)
                                    throws JAXRException,
                                           InvalidRequestException
Specified by:
createClassification in interface LifeCycleManager
Throws:
JAXRException
InvalidRequestException

createClassification

public Classification createClassification(ClassificationScheme scheme,
                                           InternationalString name,
                                           String value)
                                    throws JAXRException
Specified by:
createClassification in interface LifeCycleManager
Throws:
JAXRException

createClassification

public Classification createClassification(ClassificationScheme scheme,
                                           String name,
                                           String value)
                                    throws JAXRException
Specified by:
createClassification in interface LifeCycleManager
Throws:
JAXRException

createClassificationScheme

public ClassificationScheme createClassificationScheme(Concept concept)
                                                throws JAXRException,
                                                       InvalidRequestException
Specified by:
createClassificationScheme in interface LifeCycleManager
Throws:
JAXRException
InvalidRequestException

createClassificationScheme

public ClassificationScheme createClassificationScheme(InternationalString name,
                                                       InternationalString des)
                                                throws JAXRException,
                                                       InvalidRequestException
Specified by:
createClassificationScheme in interface LifeCycleManager
Throws:
JAXRException
InvalidRequestException

createClassificationScheme

public ClassificationScheme createClassificationScheme(String name,
                                                       String desc)
                                                throws JAXRException,
                                                       InvalidRequestException
Specified by:
createClassificationScheme in interface LifeCycleManager
Throws:
JAXRException
InvalidRequestException

createConcept

public Concept createConcept(RegistryObject parent,
                             InternationalString name,
                             String value)
                      throws JAXRException
Specified by:
createConcept in interface LifeCycleManager
Throws:
JAXRException

createConcept

public Concept createConcept(RegistryObject parent,
                             String name,
                             String value)
                      throws JAXRException
Specified by:
createConcept in interface LifeCycleManager
Throws:
JAXRException

createEmailAddress

public EmailAddress createEmailAddress(String address)
                                throws JAXRException
Specified by:
createEmailAddress in interface LifeCycleManager
Throws:
JAXRException

createEmailAddress

public EmailAddress createEmailAddress(String address,
                                       String type)
                                throws JAXRException
Specified by:
createEmailAddress in interface LifeCycleManager
Throws:
JAXRException

createExternalIdentifier

public ExternalIdentifier createExternalIdentifier(ClassificationScheme ids,
                                                   InternationalString name,
                                                   String value)
                                            throws JAXRException
Specified by:
createExternalIdentifier in interface LifeCycleManager
Throws:
JAXRException

createExternalIdentifier

public ExternalIdentifier createExternalIdentifier(ClassificationScheme ids,
                                                   String name,
                                                   String value)
                                            throws JAXRException
Specified by:
createExternalIdentifier in interface LifeCycleManager
Throws:
JAXRException

createExternalLink

public ExternalLink createExternalLink(String uri,
                                       InternationalString desc)
                                throws JAXRException
Specified by:
createExternalLink in interface LifeCycleManager
Throws:
JAXRException

createExternalLink

public ExternalLink createExternalLink(String uri,
                                       String desc)
                                throws JAXRException
Specified by:
createExternalLink in interface LifeCycleManager
Throws:
JAXRException

createInternationalString

public InternationalString createInternationalString()
                                              throws JAXRException
Specified by:
createInternationalString in interface LifeCycleManager
Throws:
JAXRException

createInternationalString

public InternationalString createInternationalString(String value)
                                              throws JAXRException
Specified by:
createInternationalString in interface LifeCycleManager
Throws:
JAXRException

createInternationalString

public InternationalString createInternationalString(Locale locale,
                                                     String value)
                                              throws JAXRException
Specified by:
createInternationalString in interface LifeCycleManager
Throws:
JAXRException

createKey

public Key createKey(String id)
Specified by:
createKey in interface LifeCycleManager

createLocalizedString

public LocalizedString createLocalizedString(Locale locale,
                                             String value)
                                      throws JAXRException
Specified by:
createLocalizedString in interface LifeCycleManager
Throws:
JAXRException

createLocalizedString

public LocalizedString createLocalizedString(Locale locale,
                                             String value,
                                             String charsetName)
                                      throws JAXRException
Specified by:
createLocalizedString in interface LifeCycleManager
Throws:
JAXRException

createOrganization

public Organization createOrganization(InternationalString name)
                                throws JAXRException
Specified by:
createOrganization in interface LifeCycleManager
Throws:
JAXRException

createOrganization

public Organization createOrganization(String name)
                                throws JAXRException
Specified by:
createOrganization in interface LifeCycleManager
Throws:
JAXRException

createPersonName

public PersonName createPersonName(String fullName)
                            throws JAXRException
Specified by:
createPersonName in interface LifeCycleManager
Throws:
JAXRException

createPostalAddress

public PostalAddress createPostalAddress(String streetNumber,
                                         String street,
                                         String city,
                                         String stateOrProvince,
                                         String country,
                                         String postalCode,
                                         String type)
                                  throws JAXRException
Specified by:
createPostalAddress in interface LifeCycleManager
Throws:
JAXRException

createService

public Service createService(InternationalString name)
                      throws JAXRException
Specified by:
createService in interface LifeCycleManager
Throws:
JAXRException

createService

public Service createService(String name)
                      throws JAXRException
Specified by:
createService in interface LifeCycleManager
Throws:
JAXRException

createServiceBinding

public ServiceBinding createServiceBinding()
                                    throws JAXRException
Specified by:
createServiceBinding in interface LifeCycleManager
Throws:
JAXRException

createSlot

public Slot createSlot(String name,
                       String value,
                       String slotType)
                throws JAXRException
Specified by:
createSlot in interface LifeCycleManager
Throws:
JAXRException

createSlot

public Slot createSlot(String name,
                       Collection<String> values,
                       String slotType)
                throws JAXRException
Specified by:
createSlot in interface LifeCycleManager
Throws:
JAXRException

createSpecificationLink

public SpecificationLink createSpecificationLink()
                                          throws JAXRException
Specified by:
createSpecificationLink in interface LifeCycleManager
Throws:
JAXRException

createTelephoneNumber

public TelephoneNumber createTelephoneNumber()
                                      throws JAXRException
Specified by:
createTelephoneNumber in interface LifeCycleManager
Throws:
JAXRException

createUser

public User createUser()
                throws JAXRException
Specified by:
createUser in interface LifeCycleManager
Throws:
JAXRException

saveObjects

public abstract BulkResponse saveObjects(Collection objects)
                                  throws JAXRException
aves one or more Objects to the registry. An object may be a RegistryObject subclass instance. 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

Specified by:
saveObjects in interface LifeCycleManager
Parameters:
objects -
Returns:
a 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:
JAXRException

deleteObjects

public abstract BulkResponse deleteObjects(Collection<Key> keys,
                                           String objectType)
                                    throws JAXRException
Deletes one or more previously submitted objects from the registry using the object keys and a specified objectType attribute.

Specified by:
deleteObjects in interface LifeCycleManager
Parameters:
keys -
objectType -
Returns:
Throws:
JAXRException

createExtrinsicObject

public ExtrinsicObject createExtrinsicObject(javax.activation.DataHandler repositoryItem)
                                      throws JAXRException
Specified by:
createExtrinsicObject in interface LifeCycleManager
Parameters:
repositoryItem -
Returns:
Throws:
JAXRException

createPersonName

public PersonName createPersonName(String firstName,
                                   String middleName,
                                   String lastName)
                            throws JAXRException
Specified by:
createPersonName in interface LifeCycleManager
Throws:
JAXRException

createRegistryPackage

public RegistryPackage createRegistryPackage(InternationalString name)
                                      throws JAXRException
Specified by:
createRegistryPackage in interface LifeCycleManager
Throws:
JAXRException

createRegistryPackage

public RegistryPackage createRegistryPackage(String name)
                                      throws JAXRException
Specified by:
createRegistryPackage in interface LifeCycleManager
Throws:
JAXRException

deprecateObjects

public BulkResponse deprecateObjects(Collection<Key> keys)
                              throws JAXRException
Specified by:
deprecateObjects in interface LifeCycleManager
Throws:
JAXRException

unDeprecateObjects

public BulkResponse unDeprecateObjects(Collection<Key> keys)
                                throws JAXRException
Specified by:
unDeprecateObjects in interface LifeCycleManager
Throws:
JAXRException

deleteObjects

public BulkResponse deleteObjects(Collection<Key> keys)
                           throws JAXRException
Specified by:
deleteObjects in interface LifeCycleManager
Throws:
JAXRException


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.