View Javadoc

1   /**
2    *
3    * Copyright 2003-2004 The Apache Software Foundation
4    *
5    *  Licensed under the Apache License, Version 2.0 (the "License");
6    *  you may not use this file except in compliance with the License.
7    *  You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17  
18  //
19  // This source code implements specifications defined by the Java
20  // Community Process. In order to remain compliant with the specification
21  // DO NOT add / change / or delete method signatures!
22  //
23  package javax.xml.registry;
24  
25  import java.util.Collection;
26  import java.util.Locale;
27  import javax.activation.DataHandler;
28  import javax.xml.registry.infomodel.Association;
29  import javax.xml.registry.infomodel.Classification;
30  import javax.xml.registry.infomodel.ClassificationScheme;
31  import javax.xml.registry.infomodel.Concept;
32  import javax.xml.registry.infomodel.EmailAddress;
33  import javax.xml.registry.infomodel.ExternalIdentifier;
34  import javax.xml.registry.infomodel.ExternalLink;
35  import javax.xml.registry.infomodel.ExtrinsicObject;
36  import javax.xml.registry.infomodel.InternationalString;
37  import javax.xml.registry.infomodel.Key;
38  import javax.xml.registry.infomodel.LocalizedString;
39  import javax.xml.registry.infomodel.Organization;
40  import javax.xml.registry.infomodel.PersonName;
41  import javax.xml.registry.infomodel.PostalAddress;
42  import javax.xml.registry.infomodel.RegistryObject;
43  import javax.xml.registry.infomodel.RegistryPackage;
44  import javax.xml.registry.infomodel.Service;
45  import javax.xml.registry.infomodel.ServiceBinding;
46  import javax.xml.registry.infomodel.Slot;
47  import javax.xml.registry.infomodel.SpecificationLink;
48  import javax.xml.registry.infomodel.TelephoneNumber;
49  import javax.xml.registry.infomodel.User;
50  
51  /**
52   * @version $Revision$ $Date$
53   */
54  public interface LifeCycleManager {
55      public static final String ASSOCIATION = "Association";
56      public static final String AUDITABLE_EVENT = "AuditableEvent";
57      public static final String CLASSIFICATION = "Classification";
58      public static final String CLASSIFICATION_SCHEME = "ClassificationScheme";
59      public static final String CONCEPT = "Concept";
60      public static final String EMAIL_ADDRESS = "EmailAddress";
61      public static final String EXTERNAL_IDENTIFIER = "ExternalIdentifier";
62      public static final String EXTERNAL_LINK = "ExternalLink";
63      public static final String EXTRINSIC_OBJECT = "ExtrinsicObject";
64      public static final String INTERNATIONAL_STRING = "InternationalString";
65      public static final String KEY = "Key";
66      public static final String LOCALIZED_STRING = "LocalizedString";
67      public static final String ORGANIZATION = "Organization";
68      public static final String PERSON_NAME = "PersonName";
69      public static final String POSTAL_ADDRESS = "PostalAddress";
70      public static final String REGISTRY_ENTRY = "RegistryEntry";
71      public static final String REGISTRY_PACKAGE = "RegistryPackage";
72      public static final String SERVICE = "Service";
73      public static final String SERVICE_BINDING = "ServiceBinding";
74      public static final String SLOT = "Slot";
75      public static final String SPECIFICATION_LINK = "SpecificationLink";
76      public static final String TELEPHONE_NUMBER = "TelephoneNumber";
77      public static final String USER = "User";
78      public static final String VERSIONABLE = "Versionable";
79  
80      Association createAssociation(RegistryObject targetObject, Concept associationType) throws JAXRException;
81  
82      Classification createClassification(ClassificationScheme scheme, InternationalString name, String value) throws JAXRException;
83  
84      Classification createClassification(ClassificationScheme scheme, String name, String value) throws JAXRException;
85  
86      Classification createClassification(Concept concept) throws JAXRException, InvalidRequestException;
87  
88      ClassificationScheme createClassificationScheme(Concept concept) throws JAXRException, InvalidRequestException;
89  
90      ClassificationScheme createClassificationScheme(InternationalString name, InternationalString description) throws JAXRException, InvalidRequestException;
91  
92      ClassificationScheme createClassificationScheme(String name, String description) throws JAXRException, InvalidRequestException;
93  
94      Concept createConcept(RegistryObject parent, InternationalString name, String value) throws JAXRException;
95  
96      Concept createConcept(RegistryObject parent, String name, String value) throws JAXRException;
97  
98      EmailAddress createEmailAddress(String address) throws JAXRException;
99  
100     EmailAddress createEmailAddress(String address, String type) throws JAXRException;
101 
102     ExternalIdentifier createExternalIdentifier(ClassificationScheme identificationScheme, InternationalString name, String value) throws JAXRException;
103 
104     ExternalIdentifier createExternalIdentifier(ClassificationScheme identificationScheme, String name, String value) throws JAXRException;
105 
106     ExternalLink createExternalLink(String externalURI, InternationalString description) throws JAXRException;
107 
108     ExternalLink createExternalLink(String externalURI, String description) throws JAXRException;
109 
110     ExtrinsicObject createExtrinsicObject(DataHandler repositoryItem) throws JAXRException;
111 
112     InternationalString createInternationalString() throws JAXRException;
113 
114     InternationalString createInternationalString(Locale locale, String value) throws JAXRException;
115 
116     InternationalString createInternationalString(String value) throws JAXRException;
117 
118     Key createKey(String id) throws JAXRException;
119 
120     LocalizedString createLocalizedString(Locale locale, String value) throws JAXRException;
121 
122     LocalizedString createLocalizedString(Locale locale, String value, String chatsetName) throws JAXRException;
123 
124     Object createObject(String interfaceName) throws JAXRException, InvalidRequestException, UnsupportedCapabilityException;
125 
126     Organization createOrganization(InternationalString name) throws JAXRException;
127 
128     Organization createOrganization(String name) throws JAXRException;
129 
130     PersonName createPersonName(String fullName) throws JAXRException;
131 
132     PersonName createPersonName(String firstName, String middleName, String lastName) throws JAXRException;
133 
134     PostalAddress createPostalAddress(String streetNumber, String street, String city, String stateOrProvince, String country, String postalCode, String type) throws JAXRException;
135 
136     RegistryPackage createRegistryPackage(InternationalString name) throws JAXRException;
137 
138     RegistryPackage createRegistryPackage(String name) throws JAXRException;
139 
140     Service createService(InternationalString name) throws JAXRException;
141 
142     Service createService(String name) throws JAXRException;
143 
144     ServiceBinding createServiceBinding() throws JAXRException;
145 
146     Slot createSlot(String name, Collection values, String slotType) throws JAXRException;
147 
148     Slot createSlot(String name, String value, String slotType) throws JAXRException;
149 
150     SpecificationLink createSpecificationLink() throws JAXRException;
151 
152     TelephoneNumber createTelephoneNumber() throws JAXRException;
153 
154     User createUser() throws JAXRException;
155 
156     BulkResponse deleteObjects(Collection keys) throws JAXRException;
157 
158     BulkResponse deleteObjects(Collection keys, String objectType) throws JAXRException;
159 
160     BulkResponse deprecateObjects(Collection keys) throws JAXRException;
161 
162     RegistryService getRegistryService() throws JAXRException;
163 
164     BulkResponse saveObjects(Collection objects) throws JAXRException;
165 
166     BulkResponse unDeprecateObjects(Collection keys) throws JAXRException;
167 }