包 | lc.foundation.domain |
类 | public class SessionMap |
继承 | SessionMap ![]() |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The SessionMap
object is initialized during application initialization and passed
to all components, as the session
property, therefore making it available throughout the
application.
It is recommended to use the typed convenience methods from the
WorkspaceSession
object to retrieve Workspace API objects.
For example, if you want to use the QueuesManager
object, it can be retrieved using the following code:
var queuesManager:QueuesManager = WorkspaceSession.getQueuesManager(session);
Additional objects can be added using the setObject
method.
The general convention for key names is that the key name should match the
fully qualified class or interface name that you want.
For example, to add a new object to the session, your can use the following code:
session.setObject("my.example.ISample", new Sample());
This object may be retrieved from the session
property using the following code:
var mySample:ISample =
ISample(session.getObject("my.example.ISample"));
For information on using this component to customize Workspace, see Customizing the Digital Enterprise Platform Document Services - Workspace 10.0 User Interface .
相关 API 元素
方法 | 由以下参数定义 | ||
---|---|---|---|
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() |
返回指定对象的字符串表示形式。 | Object | |
![]() |
返回指定对象的原始值。 | Object |
Tue Jun 12 2018, 11:04 AM Z