User (Java EE 5)

Java EE API


javax.xml.registry.infomodel Interface User

All Superinterfaces:
ExtensibleObject, RegistryObject

public interface User
extends RegistryObject

Implements: RegistryObject

User 实例是用于提供向注册表注册的用户信息的 RegistryObject。User 隶属于 Organization。User 对象用于对 RegistryObject 的审计追踪。
英文文档:

User instances are RegistryObjects that are used to provide information about registered users within the registry. Users are affiliated with Organizations. User objects are used in the audit trail for a RegistryObject.

Author:
Farrukh S. Najmi
See Also:
Organization, AuditableEvent

Method Summary
 Collection
 Organization
 PersonName
 Collection
 Collection
 String
 URL
 void
 void
 void
 void
 void
 void
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
 

Method Detail

public Organization getOrganization() throws JAXRException
获取此 User 隶属的 Organization。

功能级别:0
return 此 User 隶属的 Organization
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
supplierCardinality1
associates <{Organization}>
directed
supplierRole
affiliatedWith
clientCardinality1..*
英文文档:

getOrganization

Organization getOrganization()
                             throws JAXRException
Gets the Organization that this User is affiliated with.

Capability Level: 0

Returns:
the Organization that this User is affiliated with
Throws:
JAXRException - If the JAXR provider encounters an internal error

public PersonName getPersonName() throws JAXRException
返回此 User 的名称。

功能级别:0
return 此 User 的名称
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getPersonName

PersonName getPersonName()
                         throws JAXRException
Returns the name of this User.

Capability Level: 0

Returns:
the name of this User
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setPersonName(PersonName personName) throws JAXRException
设置此 User 的名称。

功能级别:0
personName 此 User 的名称
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setPersonName

void setPersonName(PersonName personName)
                   throws JAXRException
Sets the name of this User.

Capability Level: 0

Parameters:
personName - the name of this User
Throws:
JAXRException - If the JAXR provider encounters an internal error

public java.util.Collection<E> getPostalAddresses() throws JAXRException
获取此 User 的邮政地址。

功能级别:0
return PostalAddress 实例所组成的 Collection。Collection 可以为空,但不能为 null。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
supplierCardinality1
associates <{PostalAddress}>
directed
supplierRole
addresses
clientCardinality1..*
See also javax.xml.registry.infomodel.PostalAddress
英文文档:

getPostalAddresses

Collection getPostalAddresses()
                              throws JAXRException
Gets the postal address for this User.

Capability Level: 0

Returns:
Collection of PostalAddress instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
PostalAddress

public void setPostalAddresses(java.util.Collection<E> addresses) throws JAXRException
设置此 User 的地址。

功能级别:0
addresses PostAddress 实例所组成的 Collection。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setPostalAddresses

void setPostalAddresses(Collection addresses)
                        throws JAXRException
Sets the addresses for this User.

Capability Level: 0

Parameters:
addresses - Is a Collection of PostAddress instances.
Throws:
JAXRException - If the JAXR provider encounters an internal error

public java.net.URL getUrl() throws JAXRException
获取指向此 User 的 Web 页面的 URL。

功能级别:1
return 此 User 主页的 URL
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getUrl

URL getUrl()
           throws JAXRException
Gets the URL to the web page for this User.

Capability Level: 1

Returns:
the URL for this User's home page
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setUrl(java.net.URL url) throws JAXRException
设置指向此 User 的 Web 页面的 URL。

功能级别:1
url 此 User 主页的 URL
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setUrl

void setUrl(URL url)
            throws JAXRException
Sets the URL to the web page for this User.

Capability Level: 1

Parameters:
url - the URL for this User's home page
Throws:
JAXRException - If the JAXR provider encounters an internal error

public java.util.Collection<E> getTelephoneNumbers(String phoneType) throws JAXRException
获取此 User 匹配指定电话号码类型的电话号码。

功能级别:0
return TelephoneNumber 实例所组成的 Collection。Collection 可以为空,但不能为 null。
phoneType 指定要返回的电话号码的类型。如果 phoneType 为 null,则返回所有 telephoneNumber
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
supplierCardinality1
associates <{TelephoneNumber}>
directed
supplierRole
phones
clientCardinality1..*
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.

Capability Level: 0

Parameters:
phoneType - specifies the type of phone numbers to be returned. If phoneType is null, return all telephoneNumbers
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 所组成的 Collection
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setTelephoneNumbers

void setTelephoneNumbers(Collection phoneNumbers)
                         throws JAXRException
Sets the various telephone numbers for this user.

Capability Level: 0

Parameters:
phoneNumbers - the Collection of TelephoneNumbers to be set
Throws:
JAXRException - If the JAXR provider encounters an internal error

public java.util.Collection<E> getEmailAddresses() throws JAXRException
获取此 User 的电子邮件地址。

功能级别:0
return EmailAddress 实例所组成的 Collection。Collection 可以为空,但不能为 null。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
supplierCardinality1
associates <{EmailAddress}>
directed
supplierRole
emailAddresses
clientCardinality0..*
See also javax.xml.registry.infomodel.EmailAddress
英文文档:

getEmailAddresses

Collection getEmailAddresses()
                             throws JAXRException
Gets the email addresses for this User.

Capability Level: 0

Returns:
Collection of EmailAddress instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
EmailAddress

public void setEmailAddresses(java.util.Collection<E> emailAddresses) throws JAXRException
设置此 User 的 EmailAddress 实例所组成的 Collection。

功能级别:0
emailAddresses 将设置的 EmailAddress 所组成的 Collection
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setEmailAddresses

void setEmailAddresses(Collection emailAddresses)
                       throws JAXRException
Sets the Collection of EmailAddress instances for this User.

Capability Level: 0

Parameters:
emailAddresses - the Collection of EmailAddresses to be set
Throws:
JAXRException - If the JAXR provider encounters an internal error

public String getType() throws JAXRException
获取此 User 的类型。默认值为 NULL 字符串。

功能级别:0
return 此 User 的类型,它是任意 String
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getType

String getType()
               throws JAXRException
Gets the type for this User. Default is a NULL String.

Capability Level: 0

Returns:
the type for this User, which is an arbitrary String
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setType(String type) throws JAXRException
设置此 User 的类型。

功能级别:0
type 此 User 的类型,它是任意 String
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setType

void setType(String type)
             throws JAXRException
Sets the type for this User.

Capability Level: 0

Parameters:
type - the type for this User, which is an arbitrary String
Throws:
JAXRException - If the JAXR provider encounters an internal error


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!