| Package | org.granite.tide.seam.security |
| Class | public class Identity |
| Inheritance | Identity Component mx.utils.ObjectProxy |
| Implements | IIdentity |
identity.username = 'john';
identity.password = 'doe';
identity.login();
| Property | Defined by | ||
|---|---|---|---|
| context : BaseContext
[write-only]
| Identity | ||
| loggedIn : Boolean
Logged in
| Identity | ||
![]() | meta_context : BaseContext | Component | |
![]() | meta_name : String | Component | |
![]() | meta_remoteObject : RemoteObject | Component | |
![]() | meta_templateObject : Object | Component | |
| password : String [write-only]
Password
| Identity | ||
| username : String
User name
| Identity | ||
| Method | Defined by | ||
|---|---|---|---|
|
clearSecurityCache():void
Clear the security cache
| Identity | ||
|
hasPermission(target:Object, action:String, resultHandler:Function = null, faultHandler:Function = null):Boolean
Check permission for the specified target and action
| Identity | ||
|
hasRole(roleName:String, resultHandler:Function = null, faultHandler:Function = null):Boolean
Check role permission for the specified role
| Identity | ||
|
[static]
| 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(resultHandler:Function = null, faultHandler:Function = null, charset:String = null):void
Triggers a login request
| Identity | ||
|
logout():void
Triggers a logout request
| 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]Logged in
This property can be used as the source for data binding.
Implementation public function get loggedIn():Boolean
public function set loggedIn(value:Boolean):void
| password | property |
password:String [write-only]Password
This property can be used as the source for data binding.
Implementation public function set password(value:String):void
| username | property |
username:String [read-write]User name
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
| hasPermission | () | method |
public function hasPermission(target:Object, action:String, resultHandler:Function = null, faultHandler:Function = null):BooleanCheck permission for the specified target and action
Parameterstarget:Object — target object
|
|
action:String — requested action
|
|
resultHandler:Function (default = null) — result handler
|
|
faultHandler:Function (default = null) — fault handler
|
Boolean — true is permission granted
|
| 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
|
| instance | () | method |
| 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(resultHandler:Function = null, faultHandler:Function = null, charset:String = null):voidTriggers a login request
ParametersresultHandler:Function (default = null) — optional result handler
|
|
faultHandler:Function (default = null) — optional fault handler
|
|
charset:String (default = null) |
| logout | () | method |
public function logout():voidTriggers a logout request
| meta_init | () | method |
public override function meta_init(componentName:String, context:BaseContext):voidParameters
componentName:String |
|
context:BaseContext |