套件 | 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, 03:47 PM Z