| Package | org.granite.tide.ejb |
| Class | public class Identity |
| Inheritance | Identity Component mx.utils.ObjectProxy |
| Implements | IIdentity |
| Property | Defined by | ||
|---|---|---|---|
| context : BaseContext
[write-only]
| Identity | ||
| loggedIn : Boolean | Identity | ||
![]() | meta_context : BaseContext | Component | |
![]() | meta_name : String | Component | |
![]() | meta_remoteObject : RemoteObject | Component | |
![]() | meta_templateObject : Object | Component | |
| username : String | Identity | ||
| Method | Defined by | ||
|---|---|---|---|
|
clearSecurityCache():void
Clear the security cache
| Identity | ||
|
hasRole(roleName:String, resultHandler:Function = null, faultHandler:Function = null):Boolean
Check role permission for the specified role
| Identity | ||
|
initSecurityCache():void
| Identity | ||
|
isLoggedIn(resultHandler:Function = null, faultHandler:Function = null):void
Triggers a remote call to check is user is currently logged in
Can be used at application startup to handle browser refresh cases
| Identity | ||
|
login(username:String, password:String, resultHandler:Function = null, faultHandler:Function = null, charset:String = null):void
| Identity | ||
|
logout():void
| Identity | ||
![]() |
meta_clear():void
| Component | |
|
meta_init(componentName:String, context:BaseContext):void
| Identity | ||
![]() |
meta_propertyResultHandler(propName:String, event:ResultEvent):void
| Component | |
| context | property |
context:BaseContext [write-only]This property can be used as the source for data binding.
Implementation public function set context(value:BaseContext):void
| loggedIn | property |
loggedIn:Boolean [read-write]This property can be used as the source for data binding.
Implementation public function get loggedIn():Boolean
public function set loggedIn(value:Boolean):void
| username | property |
username:String [read-write]This property can be used as the source for data binding.
Implementation public function get username():String
public function set username(value:String):void
| clearSecurityCache | () | method |
public function clearSecurityCache():voidClear the security cache
| hasRole | () | method |
public function hasRole(roleName:String, resultHandler:Function = null, faultHandler:Function = null):BooleanCheck role permission for the specified role
ParametersroleName:String — role name
|
|
resultHandler:Function (default = null) — result handler
|
|
faultHandler:Function (default = null) — fault handler
|
Boolean — true is role allowed
|
| initSecurityCache | () | method |
public function initSecurityCache():void
| isLoggedIn | () | method |
public function isLoggedIn(resultHandler:Function = null, faultHandler:Function = null):voidTriggers a remote call to check is user is currently logged in Can be used at application startup to handle browser refresh cases
ParametersresultHandler:Function (default = null) — optional result handler
|
|
faultHandler:Function (default = null) — optional fault handler
|
| login | () | method |
public function login(username:String, password:String, resultHandler:Function = null, faultHandler:Function = null, charset:String = null):voidParameters
username:String |
|
password:String |
|
resultHandler:Function (default = null) |
|
faultHandler:Function (default = null) |
|
charset:String (default = null) |
| logout | () | method |
public function logout():void
| meta_init | () | method |
public override function meta_init(componentName:String, context:BaseContext):voidParameters
componentName:String |
|
context:BaseContext |