1 22 package javax.xml.registry; 23 24 import java.util.Collection ; 25 import java.util.Locale ; 26 import javax.activation.DataHandler ; 27 import javax.xml.registry.infomodel.Association ; 28 import javax.xml.registry.infomodel.Classification ; 29 import javax.xml.registry.infomodel.ClassificationScheme ; 30 import javax.xml.registry.infomodel.Concept ; 31 import javax.xml.registry.infomodel.EmailAddress ; 32 import javax.xml.registry.infomodel.ExternalIdentifier ; 33 import javax.xml.registry.infomodel.ExternalLink ; 34 import javax.xml.registry.infomodel.ExtrinsicObject ; 35 import javax.xml.registry.infomodel.InternationalString ; 36 import javax.xml.registry.infomodel.Key ; 37 import javax.xml.registry.infomodel.LocalizedString ; 38 import javax.xml.registry.infomodel.Organization ; 39 import javax.xml.registry.infomodel.PersonName ; 40 import javax.xml.registry.infomodel.PostalAddress ; 41 import javax.xml.registry.infomodel.RegistryObject ; 42 import javax.xml.registry.infomodel.RegistryPackage ; 43 import javax.xml.registry.infomodel.Service ; 44 import javax.xml.registry.infomodel.ServiceBinding ; 45 import javax.xml.registry.infomodel.Slot ; 46 import javax.xml.registry.infomodel.SpecificationLink ; 47 import javax.xml.registry.infomodel.TelephoneNumber ; 48 import javax.xml.registry.infomodel.User ; 49 50 54 public interface LifeCycleManager 55 { 56 public static final String ASSOCIATION="Association"; 57 public static final String AUDITABLE_EVENT="AuditableEvent"; 58 public static final String CLASSIFICATION="Classification"; 59 public static final String CLASSIFICATION_SCHEME="ClassificationScheme"; 60 public static final String CONCEPT="Concept"; 61 public static final String EMAIL_ADDRESS="EmailAddress"; 62 public static final String EXTERNAL_IDENTIFIER="ExternalIdentifier"; 63 public static final String EXTERNAL_LINK="ExternalLink"; 64 public static final String EXTRINSIC_OBJECT="ExtrinsicObject"; 65 public static final String INTERNATIONAL_STRING="InternationalString"; 66 public static final String KEY="Key"; 67 public static final String LOCALIZED_STRING="LocalizedString"; 68 public static final String ORGANIZATION="Organization"; 69 public static final String PERSON_NAME="PersonName"; 70 public static final String POSTAL_ADDRESS="PostalAddress"; 71 public static final String REGISTRY_ENTRY="RegistryEntry"; 72 public static final String REGISTRY_PACKAGE="RegistryPackage"; 73 public static final String SERVICE="Service"; 74 public static final String SERVICE_BINDING="ServiceBinding"; 75 public static final String SLOT="Slot"; 76 public static final String SPECIFICATION_LINK="SpecificationLink"; 77 public static final String TELEPHONE_NUMBER="TelephoneNumber"; 78 public static final String USER="User"; 79 public static final String VERSIONABLE="Versionable"; 80 81 public Association createAssociation(RegistryObject targetObject, Concept associationType) 82 throws JAXRException ; 83 public Classification createClassification(ClassificationScheme scheme, 84 InternationalString name, String value) 85 throws JAXRException ; 86 public Classification createClassification(ClassificationScheme scheme, 87 String name, String value) 88 throws JAXRException ; 89 public Classification createClassification(Concept concept) 90 throws JAXRException , InvalidRequestException ; 91 92 public ClassificationScheme createClassificationScheme(InternationalString name, 93 InternationalString description) 94 throws JAXRException , InvalidRequestException ; 95 public ClassificationScheme createClassificationScheme(Concept concept) 96 throws JAXRException , InvalidRequestException ; 97 public ClassificationScheme createClassificationScheme(String name, String description) 98 throws JAXRException , InvalidRequestException ; 99 100 public Concept createConcept(RegistryObject parent, String name, String value) 101 throws JAXRException ; 102 public Concept createConcept(RegistryObject parent, InternationalString name, 103 String value) 104 throws JAXRException ; 105 106 public EmailAddress createEmailAddress(String address) throws JAXRException ; 107 public EmailAddress createEmailAddress(String address, String type) 108 throws JAXRException ; 109 110 public ExternalIdentifier createExternalIdentifier( 111 ClassificationScheme identificationScheme, String name, String value) 112 throws JAXRException ; 113 public ExternalIdentifier createExternalIdentifier(ClassificationScheme identificationScheme, 114 InternationalString name, String value) 115 throws JAXRException ; 116 117 public ExternalLink createExternalLink(String externalURI, String description) 118 throws JAXRException ; 119 public ExternalLink createExternalLink(String externalURI, InternationalString description) 120 throws JAXRException ; 121 122 public ExtrinsicObject createExtrinsicObject(DataHandler repositoryItem) 123 throws JAXRException ; 124 125 public InternationalString createInternationalString() 126 throws JAXRException ; 127 public InternationalString createInternationalString(String s) 128 throws JAXRException ; 129 public InternationalString createInternationalString(Locale locale, String s) 130 throws JAXRException ; 131 132 public Key createKey(String id) throws JAXRException ; 133 134 public LocalizedString createLocalizedString(Locale locale, String s) 135 throws JAXRException ; 136 public LocalizedString createLocalizedString(Locale locale, String s, String cs) 137 throws JAXRException ; 138 139 public Object createObject(String interfaceName) 140 throws JAXRException , InvalidRequestException , 141 UnsupportedCapabilityException ; 142 143 public Organization createOrganization(String name) 144 throws JAXRException ; 145 public Organization createOrganization(InternationalString name) 146 throws JAXRException ; 147 148 public PersonName createPersonName(String fullName) throws JAXRException ; 149 public PersonName createPersonName(String firstName, String middleName, 150 String lastName) 151 throws JAXRException ; 152 153 public PostalAddress createPostalAddress(String streetNumber, String street, 154 String city, String stateOrProvince, String country, String postalCode, 155 String type) throws JAXRException ; 156 157 public RegistryPackage createRegistryPackage(String name) 158 throws JAXRException ; 159 public RegistryPackage createRegistryPackage(InternationalString name) 160 throws JAXRException ; 161 162 public Service createService(String name) 163 throws JAXRException ; 164 public Service createService(InternationalString name) 165 throws JAXRException ; 166 167 public ServiceBinding createServiceBinding() throws JAXRException ; 168 169 public Slot createSlot(String name, String value, String slotType) 170 throws JAXRException ; 171 public Slot createSlot(String name, Collection values, String slotType) 172 throws JAXRException ; 173 174 public SpecificationLink createSpecificationLink() throws JAXRException ; 175 public TelephoneNumber createTelephoneNumber() throws JAXRException ; 176 public User createUser() throws JAXRException ; 177 178 public BulkResponse deleteObjects(Collection keys) throws JAXRException ; 179 public BulkResponse deleteObjects(Collection keys, String objectType) 180 throws JAXRException ; 181 182 public BulkResponse deprecateObjects(Collection keys) throws JAXRException ; 183 184 public RegistryService getRegistryService() throws JAXRException ; 185 public BulkResponse saveObjects(Collection objects) throws JAXRException ; 186 public BulkResponse unDeprecateObjects(Collection keys) throws JAXRException ; 187 188 } 189 | Popular Tags |