Paket | lc.foundation.domain |
Klasse | public class SessionMap |
Vererbung | SessionMap Object |
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Laufzeitversionen: | 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 .
Verwandte API-Elemente
Methode | Definiert von | ||
---|---|---|---|
Retrieves a session object using the provided key. | SessionMap | ||
Gibt an, ob für ein Objekt eine bestimmte Eigenschaft definiert wurde. | Object | ||
Gibt an, ob eine Instanz der Object-Klasse in der Prototypkette des Objekts vorhanden ist, das als Parameter angegeben wurde. | Object | ||
Gibt an, ob die angegebene Eigenschaft vorhanden ist und durchlaufen werden kann. | Object | ||
Adds an object to be retrieved with the given key. | SessionMap | ||
Legt die Verfügbarkeit einer dynamischen Eigenschaft für Schleifenoperationen fest. | Object | ||
Gibt die Stringdarstellung dieses Objekts zurück, formatiert entsprechend den Konventionen des Gebietsschemas. | Object | ||
Gibt das angegebene Objekt als String zurück. | Object | ||
Gibt den Grundwert des angegebenen Objekts zurück. | Object |
getObject | () | Methode |
public function getObject(key:String):Object
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Laufzeitversionen: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Retrieves a session object using the provided key.
Parameter
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 | () | Methode |
public function setObject(key:String, object:Object):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Laufzeitversionen: | 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.
Parameter
key:String — Specifies the key for the object.
| |
object:Object — Specifies the object to be stored for the given key.
|
Verwandte API-Elemente
Tue Jun 12 2018, 10:04 AM Z