001: /**
002: *
003: * Copyright 2003-2004 The Apache Software Foundation
004: *
005: * Licensed under the Apache License, Version 2.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package javax.xml.registry;
017:
018: import java.util.Collection;
019: import java.util.Locale;
020:
021: import javax.activation.DataHandler;
022: import javax.xml.registry.infomodel.Association;
023: import javax.xml.registry.infomodel.Classification;
024: import javax.xml.registry.infomodel.ClassificationScheme;
025: import javax.xml.registry.infomodel.Concept;
026: import javax.xml.registry.infomodel.EmailAddress;
027: import javax.xml.registry.infomodel.ExternalIdentifier;
028: import javax.xml.registry.infomodel.ExternalLink;
029: import javax.xml.registry.infomodel.ExtrinsicObject;
030: import javax.xml.registry.infomodel.InternationalString;
031: import javax.xml.registry.infomodel.Key;
032: import javax.xml.registry.infomodel.LocalizedString;
033: import javax.xml.registry.infomodel.Organization;
034: import javax.xml.registry.infomodel.PersonName;
035: import javax.xml.registry.infomodel.PostalAddress;
036: import javax.xml.registry.infomodel.RegistryObject;
037: import javax.xml.registry.infomodel.RegistryPackage;
038: import javax.xml.registry.infomodel.Service;
039: import javax.xml.registry.infomodel.ServiceBinding;
040: import javax.xml.registry.infomodel.Slot;
041: import javax.xml.registry.infomodel.SpecificationLink;
042: import javax.xml.registry.infomodel.TelephoneNumber;
043: import javax.xml.registry.infomodel.User;
044:
045: /**
046: * @version $Revision$ $Date$
047: */
048: public interface LifeCycleManager {
049: public static final String ASSOCIATION = "Association";
050: public static final String AUDITABLE_EVENT = "AuditableEvent";
051: public static final String CLASSIFICATION = "Classification";
052: public static final String CLASSIFICATION_SCHEME = "ClassificationScheme";
053: public static final String CONCEPT = "Concept";
054: public static final String EMAIL_ADDRESS = "EmailAddress";
055: public static final String EXTERNAL_IDENTIFIER = "ExternalIdentifier";
056: public static final String EXTERNAL_LINK = "ExternalLink";
057: public static final String EXTRINSIC_OBJECT = "ExtrinsicObject";
058: public static final String INTERNATIONAL_STRING = "InternationalString";
059: public static final String KEY = "Key";
060: public static final String LOCALIZED_STRING = "LocalizedString";
061: public static final String ORGANIZATION = "Organization";
062: public static final String PERSON_NAME = "PersonName";
063: public static final String POSTAL_ADDRESS = "PostalAddress";
064: public static final String REGISTRY_ENTRY = "RegistryEntry";
065: public static final String REGISTRY_PACKAGE = "RegistryPackage";
066: public static final String SERVICE = "Service";
067: public static final String SERVICE_BINDING = "ServiceBinding";
068: public static final String SLOT = "Slot";
069: public static final String SPECIFICATION_LINK = "SpecificationLink";
070: public static final String TELEPHONE_NUMBER = "TelephoneNumber";
071: public static final String USER = "User";
072: public static final String VERSIONABLE = "Versionable";
073:
074: Association createAssociation(RegistryObject targetObject,
075: Concept associationType) throws JAXRException;
076:
077: Classification createClassification(ClassificationScheme scheme,
078: InternationalString name, String value)
079: throws JAXRException;
080:
081: Classification createClassification(ClassificationScheme scheme,
082: String name, String value) throws JAXRException;
083:
084: Classification createClassification(Concept concept)
085: throws JAXRException, InvalidRequestException;
086:
087: ClassificationScheme createClassificationScheme(Concept concept)
088: throws JAXRException, InvalidRequestException;
089:
090: ClassificationScheme createClassificationScheme(
091: InternationalString name, InternationalString description)
092: throws JAXRException, InvalidRequestException;
093:
094: ClassificationScheme createClassificationScheme(String name,
095: String description) throws JAXRException,
096: InvalidRequestException;
097:
098: Concept createConcept(RegistryObject parent,
099: InternationalString name, String value)
100: throws JAXRException;
101:
102: Concept createConcept(RegistryObject parent, String name,
103: String value) throws JAXRException;
104:
105: EmailAddress createEmailAddress(String address)
106: throws JAXRException;
107:
108: EmailAddress createEmailAddress(String address, String type)
109: throws JAXRException;
110:
111: ExternalIdentifier createExternalIdentifier(
112: ClassificationScheme identificationScheme,
113: InternationalString name, String value)
114: throws JAXRException;
115:
116: ExternalIdentifier createExternalIdentifier(
117: ClassificationScheme identificationScheme, String name,
118: String value) throws JAXRException;
119:
120: ExternalLink createExternalLink(String externalURI,
121: InternationalString description) throws JAXRException;
122:
123: ExternalLink createExternalLink(String externalURI,
124: String description) throws JAXRException;
125:
126: ExtrinsicObject createExtrinsicObject(DataHandler repositoryItem)
127: throws JAXRException;
128:
129: InternationalString createInternationalString()
130: throws JAXRException;
131:
132: InternationalString createInternationalString(Locale locale,
133: String value) throws JAXRException;
134:
135: InternationalString createInternationalString(String value)
136: throws JAXRException;
137:
138: Key createKey(String id) throws JAXRException;
139:
140: LocalizedString createLocalizedString(Locale locale, String value)
141: throws JAXRException;
142:
143: LocalizedString createLocalizedString(Locale locale, String value,
144: String chatsetName) throws JAXRException;
145:
146: Object createObject(String interfaceName) throws JAXRException,
147: InvalidRequestException, UnsupportedCapabilityException;
148:
149: Organization createOrganization(InternationalString name)
150: throws JAXRException;
151:
152: Organization createOrganization(String name) throws JAXRException;
153:
154: PersonName createPersonName(String fullName) throws JAXRException;
155:
156: PersonName createPersonName(String firstName, String middleName,
157: String lastName) throws JAXRException;
158:
159: PostalAddress createPostalAddress(String streetNumber,
160: String street, String city, String stateOrProvince,
161: String country, String postalCode, String type)
162: throws JAXRException;
163:
164: RegistryPackage createRegistryPackage(InternationalString name)
165: throws JAXRException;
166:
167: RegistryPackage createRegistryPackage(String name)
168: throws JAXRException;
169:
170: Service createService(InternationalString name)
171: throws JAXRException;
172:
173: Service createService(String name) throws JAXRException;
174:
175: ServiceBinding createServiceBinding() throws JAXRException;
176:
177: Slot createSlot(String name, Collection<String> values,
178: String slotType) throws JAXRException;
179:
180: Slot createSlot(String name, String value, String slotType)
181: throws JAXRException;
182:
183: SpecificationLink createSpecificationLink() throws JAXRException;
184:
185: TelephoneNumber createTelephoneNumber() throws JAXRException;
186:
187: User createUser() throws JAXRException;
188:
189: BulkResponse deleteObjects(Collection<Key> keys)
190: throws JAXRException;
191:
192: BulkResponse deleteObjects(Collection<Key> keys, String objectType)
193: throws JAXRException;
194:
195: BulkResponse deprecateObjects(Collection<Key> keys)
196: throws JAXRException;
197:
198: RegistryService getRegistryService() throws JAXRException;
199:
200: BulkResponse saveObjects(Collection objects) throws JAXRException;
201:
202: BulkResponse unDeprecateObjects(Collection<Key> keys)
203: throws JAXRException;
204: }
|