KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > registry > LifeCycleManager


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package javax.xml.registry;
23
24 import java.util.Collection JavaDoc;
25 import java.util.Locale JavaDoc;
26 import javax.activation.DataHandler JavaDoc;
27 import javax.xml.registry.infomodel.Association JavaDoc;
28 import javax.xml.registry.infomodel.Classification JavaDoc;
29 import javax.xml.registry.infomodel.ClassificationScheme JavaDoc;
30 import javax.xml.registry.infomodel.Concept JavaDoc;
31 import javax.xml.registry.infomodel.EmailAddress JavaDoc;
32 import javax.xml.registry.infomodel.ExternalIdentifier JavaDoc;
33 import javax.xml.registry.infomodel.ExternalLink JavaDoc;
34 import javax.xml.registry.infomodel.ExtrinsicObject JavaDoc;
35 import javax.xml.registry.infomodel.InternationalString JavaDoc;
36 import javax.xml.registry.infomodel.Key JavaDoc;
37 import javax.xml.registry.infomodel.LocalizedString JavaDoc;
38 import javax.xml.registry.infomodel.Organization JavaDoc;
39 import javax.xml.registry.infomodel.PersonName JavaDoc;
40 import javax.xml.registry.infomodel.PostalAddress JavaDoc;
41 import javax.xml.registry.infomodel.RegistryObject JavaDoc;
42 import javax.xml.registry.infomodel.RegistryPackage JavaDoc;
43 import javax.xml.registry.infomodel.Service JavaDoc;
44 import javax.xml.registry.infomodel.ServiceBinding JavaDoc;
45 import javax.xml.registry.infomodel.Slot JavaDoc;
46 import javax.xml.registry.infomodel.SpecificationLink JavaDoc;
47 import javax.xml.registry.infomodel.TelephoneNumber JavaDoc;
48 import javax.xml.registry.infomodel.User JavaDoc;
49
50 /**
51  * @author Scott.Stark@jboss.org
52  * @version $Revision: 37459 $
53  */

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