패키지 | lc.foundation.domain |
클래스 | public class SessionMap |
상속 | SessionMap Object |
언어 버전: | 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 요소
메서드 | 정의 주체 | ||
---|---|---|---|
Retrieves a session object using the provided key. | SessionMap | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
Adds an object to be retrieved with the given key. | SessionMap | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
getObject | () | 메서드 |
public function getObject(key:String):Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
런타임 버전: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Retrieves a session object using the provided key.
매개 변수
key:String — Specifies the key for the SessionMap object.
The standard convention is that this will be the fully qualified name of
the class or interface to which the returned object would be cast.
|
Object — An object matching the given key. If no match for the key exists,
a value of null is returned.
|
setObject | () | 메서드 |
public function setObject(key:String, object:Object):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
런타임 버전: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds an object to be retrieved with the given key. If the object with that key already exists, it will be replaced.
매개 변수
key:String — Specifies the key for the object.
| |
object:Object — Specifies the object to be stored for the given key.
|
관련 API 요소
Tue Jun 12 2018, 03:17 PM Z