Packageorg.granite.tide.cdi
Classpublic class Identity
InheritanceIdentity Inheritance Component Inheritance mx.utils.ObjectProxy
ImplementsIIdentity

Implementation of the Tide identity component for CDI services



Public Properties
 PropertyDefined by
  context : BaseContext
[write-only]
Identity
  loggedIn : Boolean
Identity
 Inheritedmeta_context : BaseContext
Component
  meta_credentialsClassName : String
[read-only]
Identity
 Inheritedmeta_name : String
Component
 Inheritedmeta_remoteObject : RemoteObject
Component
 Inheritedmeta_templateObject : Object
Component
  username : String
Identity
Protected Properties
 PropertyDefined by
 Inherited_context : BaseContext
Component
 Inheritedobject : Object
Component
Public Methods
 MethodDefined by
  
Clear the security cache
Identity
  
hasRole(roleName:String, resultHandler:Function = null, faultHandler:Function = null):Boolean
Check role permission for the specified role
Identity
  
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
 Inherited
meta_clear():void
Component
  
meta_init(componentName:String, context:BaseContext):void
Identity
 Inherited
meta_propertyResultHandler(propName:String, event:ResultEvent):void
Component
Protected Methods
 MethodDefined by
 Inherited
callProperty(name:*, ... args):*
Component
 Inherited
getInternalProperty(propertyName:*):*
Component
 Inherited
getProperty(propertyName:*):*
Component
 Inherited
meta_internalSetProperty(propName:String, value:Boolean, addUpdate:Boolean = false, proxy:* = true):*
Component
 Inherited
setInternalProperty(propertyName:*, value:*):void
Component
 Inherited
setProperty(propertyName:*, value:*):void
Component
Property detail
contextproperty
context:BaseContext  [write-only]

This property can be used as the source for data binding.

Implementation
    public function set context(value:BaseContext):void
loggedInproperty 
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
meta_credentialsClassNameproperty 
meta_credentialsClassName:String  [read-only]

This property can be used as the source for data binding.

Implementation
    public function get meta_credentialsClassName():String
usernameproperty 
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
Method detail
clearSecurityCache()method
public function clearSecurityCache():void

Clear the security cache

hasRole()method 
public function hasRole(roleName:String, resultHandler:Function = null, faultHandler:Function = null):Boolean

Check role permission for the specified role

Parameters
roleName:String — role name
 
resultHandler:Function (default = null) — result handler
 
faultHandler:Function (default = null) — fault handler

Returns
Boolean — true is role allowed
initSecurityCache()method 
public function initSecurityCache():void
isLoggedIn()method 
public function 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

Parameters
resultHandler: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