包 | com.adobe.livecycle.ria.security.service |
类 | public class User |
继承 | User Object |
实现 | IUser |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
User
class provides read-access to the user's attributes, and offers basic support for authorization checking.
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
anonymous : Boolean
A flag that indicates whether the current user is anonymous. | User | ||
attributes : Object [只读]
The other attributes of the user depending on available details on the server-side. | User | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
displayName : String [只读]
The name that can be used for display purposes. | User | ||
email : String [只读]
The email address of the user. | User | ||
firstName : String [只读]
The first name of the user. | User | ||
groups : Array [只读]
The groups to which a user belongs. | User | ||
lastName : String [只读]
The last name of the user. | User | ||
session : ISession [只读]
The session associated with the current user. | User | ||
userid : String [只读]
The user's user identifier (ID). | User |
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor. | User | ||
表示对象是否已经定义了指定的属性。 | Object | ||
Determines whether the current user is member of given group. | User | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object |
属性详细信息
anonymous | 属性 |
anonymous:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
A flag that indicates whether the current user is anonymous.
It can be used to control display at time of startup when user identity is not determined.
实现
public function get anonymous():Boolean
public function set anonymous(value:Boolean):void
attributes | 属性 |
displayName | 属性 |
属性 |
firstName | 属性 |
groups | 属性 |
groups:Array
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The groups to which a user belongs.
The returned Array
object contains Group names. By default all the groups
to which the user belongs are returned. However in some cases the group names might be filtered.
For example if a group has property UIEnabled
set to false then such a group would not
be sent to client.
实现
public function get groups():Array
lastName | 属性 |
session | 属性 |
userid | 属性 |
构造函数详细信息
User | () | 构造函数 |
public function User(session:ISession, attributes:Object)
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Constructor.
参数session:ISession — Specifies the session associated with this user instance.
| |
attributes:Object — Specifies the attributes of the user.
|
方法详细信息
isMemberOf | () | 方法 |
public function isMemberOf(name:String):Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Security 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Determines whether the current user is member of given group.
参数
name:String — Specifies the name of the group for which check is performed.
|
Boolean — A boolean value. A value of true indicates that the user is member of passed group.
|
Tue Jun 12 2018, 11:04 AM Z