001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package javax.xml.registry;
023:
024: import java.util.Collection;
025: import java.util.Locale;
026: import javax.activation.DataHandler;
027: import javax.xml.registry.infomodel.Association;
028: import javax.xml.registry.infomodel.Classification;
029: import javax.xml.registry.infomodel.ClassificationScheme;
030: import javax.xml.registry.infomodel.Concept;
031: import javax.xml.registry.infomodel.EmailAddress;
032: import javax.xml.registry.infomodel.ExternalIdentifier;
033: import javax.xml.registry.infomodel.ExternalLink;
034: import javax.xml.registry.infomodel.ExtrinsicObject;
035: import javax.xml.registry.infomodel.InternationalString;
036: import javax.xml.registry.infomodel.Key;
037: import javax.xml.registry.infomodel.LocalizedString;
038: import javax.xml.registry.infomodel.Organization;
039: import javax.xml.registry.infomodel.PersonName;
040: import javax.xml.registry.infomodel.PostalAddress;
041: import javax.xml.registry.infomodel.RegistryObject;
042: import javax.xml.registry.infomodel.RegistryPackage;
043: import javax.xml.registry.infomodel.Service;
044: import javax.xml.registry.infomodel.ServiceBinding;
045: import javax.xml.registry.infomodel.Slot;
046: import javax.xml.registry.infomodel.SpecificationLink;
047: import javax.xml.registry.infomodel.TelephoneNumber;
048: import javax.xml.registry.infomodel.User;
049:
050: /**
051: * @author Scott.Stark@jboss.org
052: * @version $Revision: 57196 $
053: */
054: public interface LifeCycleManager {
055: public static final String ASSOCIATION = "Association";
056: public static final String AUDITABLE_EVENT = "AuditableEvent";
057: public static final String CLASSIFICATION = "Classification";
058: public static final String CLASSIFICATION_SCHEME = "ClassificationScheme";
059: public static final String CONCEPT = "Concept";
060: public static final String EMAIL_ADDRESS = "EmailAddress";
061: public static final String EXTERNAL_IDENTIFIER = "ExternalIdentifier";
062: public static final String EXTERNAL_LINK = "ExternalLink";
063: public static final String EXTRINSIC_OBJECT = "ExtrinsicObject";
064: public static final String INTERNATIONAL_STRING = "InternationalString";
065: public static final String KEY = "Key";
066: public static final String LOCALIZED_STRING = "LocalizedString";
067: public static final String ORGANIZATION = "Organization";
068: public static final String PERSON_NAME = "PersonName";
069: public static final String POSTAL_ADDRESS = "PostalAddress";
070: public static final String REGISTRY_ENTRY = "RegistryEntry";
071: public static final String REGISTRY_PACKAGE = "RegistryPackage";
072: public static final String SERVICE = "Service";
073: public static final String SERVICE_BINDING = "ServiceBinding";
074: public static final String SLOT = "Slot";
075: public static final String SPECIFICATION_LINK = "SpecificationLink";
076: public static final String TELEPHONE_NUMBER = "TelephoneNumber";
077: public static final String USER = "User";
078: public static final String VERSIONABLE = "Versionable";
079:
080: public Association createAssociation(RegistryObject targetObject,
081: Concept associationType) throws JAXRException;
082:
083: public Classification createClassification(
084: ClassificationScheme scheme, InternationalString name,
085: String value) throws JAXRException;
086:
087: public Classification createClassification(
088: ClassificationScheme scheme, String name, String value)
089: throws JAXRException;
090:
091: public Classification createClassification(Concept concept)
092: throws JAXRException, InvalidRequestException;
093:
094: public ClassificationScheme createClassificationScheme(
095: InternationalString name, InternationalString description)
096: throws JAXRException, InvalidRequestException;
097:
098: public ClassificationScheme createClassificationScheme(
099: Concept concept) throws JAXRException,
100: InvalidRequestException;
101:
102: public ClassificationScheme createClassificationScheme(String name,
103: String description) throws JAXRException,
104: InvalidRequestException;
105:
106: public Concept createConcept(RegistryObject parent, String name,
107: String value) throws JAXRException;
108:
109: public Concept createConcept(RegistryObject parent,
110: InternationalString name, String value)
111: throws JAXRException;
112:
113: public EmailAddress createEmailAddress(String address)
114: throws JAXRException;
115:
116: public EmailAddress createEmailAddress(String address, String type)
117: throws JAXRException;
118:
119: public ExternalIdentifier createExternalIdentifier(
120: ClassificationScheme identificationScheme, String name,
121: String value) throws JAXRException;
122:
123: public ExternalIdentifier createExternalIdentifier(
124: ClassificationScheme identificationScheme,
125: InternationalString name, String value)
126: throws JAXRException;
127:
128: public ExternalLink createExternalLink(String externalURI,
129: String description) throws JAXRException;
130:
131: public ExternalLink createExternalLink(String externalURI,
132: InternationalString description) throws JAXRException;
133:
134: public ExtrinsicObject createExtrinsicObject(
135: DataHandler repositoryItem) throws JAXRException;
136:
137: public InternationalString createInternationalString()
138: throws JAXRException;
139:
140: public InternationalString createInternationalString(String s)
141: throws JAXRException;
142:
143: public InternationalString createInternationalString(Locale locale,
144: String s) throws JAXRException;
145:
146: public Key createKey(String id) throws JAXRException;
147:
148: public LocalizedString createLocalizedString(Locale locale, String s)
149: throws JAXRException;
150:
151: public LocalizedString createLocalizedString(Locale locale,
152: String s, String cs) throws JAXRException;
153:
154: public Object createObject(String interfaceName)
155: throws JAXRException, InvalidRequestException,
156: UnsupportedCapabilityException;
157:
158: public Organization createOrganization(String name)
159: throws JAXRException;
160:
161: public Organization createOrganization(InternationalString name)
162: throws JAXRException;
163:
164: public PersonName createPersonName(String fullName)
165: throws JAXRException;
166:
167: public PersonName createPersonName(String firstName,
168: String middleName, String lastName) throws JAXRException;
169:
170: public PostalAddress createPostalAddress(String streetNumber,
171: String street, String city, String stateOrProvince,
172: String country, String postalCode, String type)
173: throws JAXRException;
174:
175: public RegistryPackage createRegistryPackage(String name)
176: throws JAXRException;
177:
178: public RegistryPackage createRegistryPackage(
179: InternationalString name) throws JAXRException;
180:
181: public Service createService(String name) throws JAXRException;
182:
183: public Service createService(InternationalString name)
184: throws JAXRException;
185:
186: public ServiceBinding createServiceBinding() throws JAXRException;
187:
188: public Slot createSlot(String name, String value, String slotType)
189: throws JAXRException;
190:
191: public Slot createSlot(String name, Collection values,
192: String slotType) throws JAXRException;
193:
194: public SpecificationLink createSpecificationLink()
195: throws JAXRException;
196:
197: public TelephoneNumber createTelephoneNumber() throws JAXRException;
198:
199: public User createUser() throws JAXRException;
200:
201: public BulkResponse deleteObjects(Collection keys)
202: throws JAXRException;
203:
204: public BulkResponse deleteObjects(Collection keys, String objectType)
205: throws JAXRException;
206:
207: public BulkResponse deprecateObjects(Collection keys)
208: throws JAXRException;
209:
210: public RegistryService getRegistryService() throws JAXRException;
211:
212: public BulkResponse saveObjects(Collection objects)
213: throws JAXRException;
214:
215: public BulkResponse unDeprecateObjects(Collection keys)
216: throws JAXRException;
217:
218: }
|