01: /**
02: *
03: * Copyright 2003-2004 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * 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: */package javax.xml.registry.infomodel;
17:
18: import java.util.Collection;
19:
20: import javax.xml.registry.JAXRException;
21:
22: /**
23: * @version $Revision$ $Date$
24: */
25: public interface Organization extends RegistryObject {
26: void addChildOrganization(Organization organization)
27: throws JAXRException;
28:
29: void addChildOrganizations(Collection organizations)
30: throws JAXRException;
31:
32: void addService(Service service) throws JAXRException;
33:
34: void addServices(Collection services) throws JAXRException;
35:
36: void addUser(User user) throws JAXRException;
37:
38: void addUsers(Collection users) throws JAXRException;
39:
40: int getChildOrganizationCount() throws JAXRException;
41:
42: Collection<Organization> getChildOrganizations()
43: throws JAXRException;
44:
45: Collection<Organization> getDescendantOrganizations()
46: throws JAXRException;
47:
48: Organization getParentOrganization() throws JAXRException;
49:
50: PostalAddress getPostalAddress() throws JAXRException;
51:
52: User getPrimaryContact() throws JAXRException;
53:
54: Organization getRootOrganization() throws JAXRException;
55:
56: Collection<Service> getServices() throws JAXRException;
57:
58: Collection<TelephoneNumber> getTelephoneNumbers(String phoneType)
59: throws JAXRException;
60:
61: Collection<User> getUsers() throws JAXRException;
62:
63: void removeChildOrganization(Organization organization)
64: throws JAXRException;
65:
66: void removeChildOrganizations(Collection organizations)
67: throws JAXRException;
68:
69: void removeService(Service service) throws JAXRException;
70:
71: void removeServices(Collection<Service> services)
72: throws JAXRException;
73:
74: void removeUser(User user) throws JAXRException;
75:
76: void removeUsers(Collection<User> users) throws JAXRException;
77:
78: void setPostalAddress(PostalAddress address) throws JAXRException;
79:
80: void setPrimaryContact(User primaryContact) throws JAXRException;
81:
82: void setTelephoneNumbers(Collection<TelephoneNumber> phoneNumbers)
83: throws JAXRException;
84: }
|