|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface Organization
- All Superinterfaces:
- ExtensibleObject, RegistryObject
public interface Organization
- extends RegistryObject
Organization 实例提供关于组织(比如 Submitting Organization)的信息。每个 Organization 实例可能都包含一个对父 Organization 的引用。此外,它还可能包含一个定义组织内部主要联系人的联系人属性。Organization 还有一个地址属性。
See also | javax.xml.registry.infomodel.Service |
Organization instances provide information on organizations such as a Submitting Organization. Each Organization instance may have a reference to a parent Organization. In addition it may have a contact attribute defining the primary contact within the organization. An Organization also has an address attribute.
- Author:
- Farrukh S. Najmi
- See Also:
Service
Method Summary | |
---|---|
void |
addChildOrganization(Organization organization)
Adds a child Organization. |
void |
addChildOrganizations(Collection organizations)
Adds a Collection of Organization children. |
void |
addService(Service service)
Adds a child Service. |
void |
addServices(Collection services)
Adds a Collection of Service children. |
void |
addUser(User user)
Adds a User. |
void |
addUsers(Collection users)
Adds a Collection of Users. |
int |
getChildOrganizationCount()
Gets number of children. |
Collection |
getChildOrganizations()
Gets all immediate children Organizations. |
Collection |
getDescendantOrganizations()
Gets all descendant Organizations. |
Organization |
getParentOrganization()
Gets the parent (container) organization. |
PostalAddress |
getPostalAddress()
Gets the Address for this Organization. |
User |
getPrimaryContact()
Gets the primary Contact for this Organization. |
Organization |
getRootOrganization()
Gets the root organization. |
Collection |
getServices()
Gets all children Services. |
Collection |
getTelephoneNumbers(String phoneType)
Gets the telephone numbers for this User that match the specified telephone number type. |
Collection |
getUsers()
Gets the Collection of Users affiliated with this Organization. |
void |
removeChildOrganization(Organization organization)
Removes a child Organization. |
void |
removeChildOrganizations(Collection organizations)
Removes a Collection of children Organizations. |
void |
removeService(Service service)
Removes a Service from this object. |
void |
removeServices(Collection services)
Removes a Collection of children Services from this object. |
void |
removeUser(User user)
Removes a User. |
void |
removeUsers(Collection users)
Removes a Collection of Users. |
void |
setPostalAddress(PostalAddress address)
Sets the address for this Organization. |
void |
setPrimaryContact(User primaryContact)
Sets the primary contact for this Organization. |
void |
setTelephoneNumbers(Collection phoneNumbers)
Sets the various telephone numbers for this user. |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
Method Detail |
---|
public PostalAddress
getPostalAddress() throws JAXRException
获取此 Organization 的地址。
- 功能级别:1
return | 此 Organization 的 PostalAddress | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
supplierCardinality | 1 | |
directed | ||
link |
| |
associates | <{PostalAddress}> |
getPostalAddress
PostalAddress getPostalAddress() throws JAXRException
- Gets the Address for this Organization.
- Capability Level: 1
- Returns:
- the PostalAddress for this Organization
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setPostalAddress(PostalAddress address) throws JAXRException
设置此 Organization 的地址。
- 功能级别:1
address | 此 Organization 的 PostalAddress |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setPostalAddress
void setPostalAddress(PostalAddress address) throws JAXRException
- Sets the address for this Organization.
- Capability Level: 1
- Parameters:
address
- the PostalAddress for this Organization- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public User
getPrimaryContact() throws JAXRException
获取此 Organization 的主要联系人。主要联系人是 Organization 的 User 之一,它是对 Organization 实例调用 getUsers 所返回的值。
- 功能级别:0
return | 作为此 Organization 主要联系人的 User。不得为 null | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
supplierCardinality | 1 | |
directed | ||
link |
| |
supplierRole |
| |
associates | <{User}> |
getPrimaryContact
User getPrimaryContact() throws JAXRException
- Gets the primary Contact for this Organization. The primary
contact is one of the Users of the Organization, as returned by the getUsers call
on an Organization instance.
- Capability Level: 0
- Returns:
- the User that is the primary Contact for this Organization. Must not be null
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setPrimaryContact(User primaryContact) throws JAXRException
设置此 Organization 的主要联系人。如果主要联系人不在此对象的现有 User 实例所组成的 Collection 中,则必须将它添加到该 Collection。如果主要联系人已经在此对象的现有 User 实例所组成的 Collection 中,则不应该将它作为重复条目添加到该 User Collection。无论是哪种情况,主要联系人都是此对象的 User 实例所组成的 Collection 中已标识的 User 实例。
- 功能级别:0
primaryContact | 作为此 Organization 主要联系人的 User |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setPrimaryContact
void setPrimaryContact(User primaryContact) throws JAXRException
- Sets the primary contact for this Organization. If the primary
contact is not in the existing Collection of User instances for
this object then it must be added to that Collection. If the primary
contact is already in the existing Collection of User instances for
this object, then it should not be added to the Users collection as
a duplicate entry. In either case, the primary contact is a distinguished
User instance within the Collection of User instances for this Object.
- Capability Level: 0
- Parameters:
primaryContact
- the User that is the primary Contact for this Organization- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addUser(User user) throws JAXRException
添加一个 User。
- 功能级别:0
user | 将添加到此对象的 User |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addUser
void addUser(User user) throws JAXRException
- Adds a User.
- Capability Level: 0
- Parameters:
user
- the User being added to this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addUsers(java.util.Collection<E> users) throws JAXRException
添加一个 User 所组成的 Collection。
添加一个 User 所组成的 Collection。
- 功能级别:0
users | 将添加到此对象的 User 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addUsers
void addUsers(Collection users) throws JAXRException
- Adds a Collection of Users.
- Capability Level: 0
- Parameters:
users
- the Collection of Users being added to this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeUser(User user) throws JAXRException
移除一个 User。
- 功能级别:0
user | 将从此对象中移除的 User |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeUser
void removeUser(User user) throws JAXRException
- Removes a User.
- Capability Level: 0
- Parameters:
user
- the User being removed from this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeUsers(java.util.Collection<E> users) throws JAXRException
移除一个 User 所组成的 Collection。
移除一个 User 所组成的 Collection。
- 功能级别:0
users | 将从此对象中移除的 User 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeUsers
void removeUsers(Collection users) throws JAXRException
- Removes a Collection of Users.
- Capability Level: 0
- Parameters:
users
- the Collection of Users being removed from this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public java.util.Collection<E>
getUsers() throws JAXRException
获取隶属此 Organization 的 User 所组成的 Collection。其中一名用户被指定为主要联系人。
- 功能级别:0
return | User 实例所组成的 Collection。Collection 可以为空,但不能为 null。 | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
supplierCardinality | 0..* | |
associates | <{User}> | |
label |
| |
link |
| |
See also | javax.xml.registry.infomodel.User |
getUsers
Collection getUsers() throws JAXRException
- Gets the Collection of Users affiliated with this Organization.
One of these users is designated as the primary contact.
- Capability Level: 0
- Returns:
- Collection of User instances. The Collection may be empty but not null.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
User
public java.util.Collection<E>
getTelephoneNumbers(String phoneType) throws JAXRException
获取此 User 匹配指定电话号码类型的电话号码。如果 phoneType 为 null,则返回所有 telephoneNumber。
- 功能级别:0
return | TelephoneNumber 实例所组成的 Collection。Collection 可以为空,但不能为 null。 | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
phoneType | 指定所需电话号码类型的 String | |
supplierCardinality | 1 | |
associates | <{TelephoneNumber}> | |
directed | ||
supplierRole |
| |
clientCardinality | 1.. | |
See also | javax.xml.registry.infomodel.TelephoneNumber |
getTelephoneNumbers
Collection getTelephoneNumbers(String phoneType) throws JAXRException
- Gets the telephone numbers for this User that match the specified telephone number type.
If phoneType is null return all telephoneNumbers.
- Capability Level: 0
- Parameters:
phoneType
- a String that specifies the type of phone numbers desired- Returns:
- Collection of TelephoneNumber instances. The Collection may be empty but not null.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
TelephoneNumber
public void
setTelephoneNumbers(java.util.Collection<E> phoneNumbers) throws JAXRException
为此用户设置各种电话号码。
为此用户设置各种电话号码。
- 功能级别:0
phoneNumbers | 设置用于此对象的 TelephoneNumber |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setTelephoneNumbers
void setTelephoneNumbers(Collection phoneNumbers) throws JAXRException
- Sets the various telephone numbers for this user.
- Capability Level: 0
- Parameters:
phoneNumbers
- the TelephoneNumbers being set for this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addService(Service service) throws JAXRException
添加一个子 Service。
- 功能级别:0
service | 将添加到此对象的 Service |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addService
void addService(Service service) throws JAXRException
- Adds a child Service.
- Capability Level: 0
- Parameters:
service
- the Service being added to this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addServices(java.util.Collection<E> services) throws JAXRException
添加一个 Service 子代所组成的 Collection。
添加一个 Service 子代所组成的 Collection。
- 功能级别:0
services | 将添加到此对象的 Service 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addServices
void addServices(Collection services) throws JAXRException
- Adds a Collection of Service children.
- Capability Level: 0
- Parameters:
services
- the Collection of Services being added to this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeService(Service service) throws JAXRException
从此对象中移除一个 Service。
- 功能级别:0
service | 将从此对象中移除的 Service |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeService
void removeService(Service service) throws JAXRException
- Removes a Service from this object.
- Capability Level: 0
- Parameters:
service
- the Service being removed from this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeServices(java.util.Collection<E> services) throws JAXRException
从此对象中移除一个子代 Service 所组成的 Collection。
从此对象中移除一个子代 Service 所组成的 Collection。
- 功能级别:0
services | 将从此对象中移除的 Service 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeServices
void removeServices(Collection services) throws JAXRException
- Removes a Collection of children Services from this object.
- Capability Level: 0
- Parameters:
services
- the Collection of Services being removed from this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public java.util.Collection<E>
getServices() throws JAXRException
获取所有子代 Service。
- 功能级别:0
return | Service 实例所组成的 Collection。Collection 可以为空,但不能为 null。 | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
supplierCardinality | 0..* | |
associates | <{javax.xml.registry.infomodel.Service}> | |
link |
| |
See also | javax.xml.registry.infomodel.Service |
getServices
Collection getServices() throws JAXRException
- Gets all children Services.
- Capability Level: 0
- Returns:
- Collection of Service instances. The Collection may be empty but not null.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
Service
public void
addChildOrganization(Organization organization) throws JAXRException
添加一个子 Organization。
- 功能级别:1
organization | 将添加的子 Organization |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addChildOrganization
void addChildOrganization(Organization organization) throws JAXRException
- Adds a child Organization.
- Capability Level: 1
- Parameters:
organization
- the child Organization being added- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addChildOrganizations(java.util.Collection<E> organizations) throws JAXRException
添加一个 Organization 子代所组成的 Collection。
添加一个 Organization 子代所组成的 Collection。
- 功能级别:1
organizations | 将添加的子 Organization 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addChildOrganizations
void addChildOrganizations(Collection organizations) throws JAXRException
- Adds a Collection of Organization children.
- Capability Level: 1
- Parameters:
organizations
- the Collection of child Organizations being added- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeChildOrganization(Organization organization) throws JAXRException
移除一个子 Organization。
- 功能级别:1
organization | 将移除的子 Organization |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeChildOrganization
void removeChildOrganization(Organization organization) throws JAXRException
- Removes a child Organization.
- Capability Level: 1
- Parameters:
organization
- the child Organization being removed- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeChildOrganizations(java.util.Collection<E> organizations) throws JAXRException
移除一个 Organization 子代所组成的 Collection。
移除一个 Organization 子代所组成的 Collection。
- 功能级别:1
organizations | 将移除的子 Organization 所组成的 Collection |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeChildOrganizations
void removeChildOrganizations(Collection organizations) throws JAXRException
- Removes a Collection of children Organizations.
- Capability Level: 1
- Parameters:
organizations
- the Collection of child Organizations being removed- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public int
getChildOrganizationCount() throws JAXRException
获取子代的数量。
- 功能级别:1
return | 子代 Organization 的数量 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getChildOrganizationCount
int getChildOrganizationCount() throws JAXRException
- Gets number of children.
- Capability Level: 1
- Returns:
- the number of children Organizations
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public java.util.Collection<E>
getChildOrganizations() throws JAXRException
获取所有直接子代 Organization。
- 功能级别:1
return | Organization 实例所组成的 Collection。Collection 可以为空,但不能为 null。 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | javax.xml.registry.infomodel.Organization |
getChildOrganizations
Collection getChildOrganizations() throws JAXRException
- Gets all immediate children Organizations.
- Capability Level: 1
- Returns:
- Collection of Organization instances. The Collection may be empty but not null.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
Organization
public java.util.Collection<E>
getDescendantOrganizations() throws JAXRException
获取所有后代 Organization。
- 功能级别:1
return | Organization 实例所组成的 Collection。Collection 可以为空,但不能为 null。 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | javax.xml.registry.infomodel.Organization |
getDescendantOrganizations
Collection getDescendantOrganizations() throws JAXRException
- Gets all descendant Organizations.
- Capability Level: 1
- Returns:
- Collection of Organization instances. The Collection may be empty but not null.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
Organization
public Organization
getParentOrganization() throws JAXRException
获取父(容器)Organization。
- 功能级别:1
return | 父 Organization;如果没有父 Organization,则返回 null |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getParentOrganization
Organization getParentOrganization() throws JAXRException
- Gets the parent (container) organization.
- Capability Level: 1
- Returns:
- the parent Organization or null if object has no parent Organization
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public Organization
getRootOrganization() throws JAXRException
获取根 Organization。
- 功能级别:1
return | 根 Organization;如果没有父 Organization,则返回 null |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getRootOrganization
Organization getRootOrganization() throws JAXRException
- Gets the root organization.
- Capability Level: 1
- Returns:
- the root Organization or null if object has no parent Organization
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!