|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.fesiextensions.JSDirectoryObjectFactory
public class JSDirectoryObjectFactory
JSDirectoryObjectFactory provides an interface for creating JS objects that
represent entities in the platform's data model, such as services, accounts,
and people. Any extension that wishes to create and return entities to the
javascript interpreter can use this object to ensure proper construction of
the representing javascript objects. The JS Object created by this object
will have the following profile:
Members:
JSDirectoryObjectWrapperFactory
Field Summary |
---|
Fields inherited from interface com.ibm.itim.fesiextensions.JSObjectFactory |
---|
CLASS_NAME |
Constructor Summary | |
---|---|
JSDirectoryObjectFactory()
Deprecated. |
Method Summary | |
---|---|
static java.lang.Object |
checkForJSDirectoryObject(java.lang.Object object)
Deprecated. Check if given object is of DirectoryObjectWrapper type and return the wrapped DirectoryObjectEntity if it is. |
static FESI.jslib.JSObject |
createDirectoryObject(FESI.jslib.JSGlobalObject go,
DirectoryObject directoryObject)
Deprecated. Within the context of the global JS object, create a DirectoryObject JS object. |
static FESI.jslib.JSObject |
createDirectoryObject(FESI.jslib.JSGlobalObject go,
DirectoryObjectEntity entity)
Deprecated. Within the context of the global JS object, create a DirectoryObject JS object. |
static FESI.jslib.JSObject |
createDirectoryObject(FESI.jslib.JSGlobalObject go,
FESI.jslib.JSObject parent,
java.lang.String name,
DirectoryObject directoryObject)
Deprecated. Within the context of the global JS object, create a named DirectoryObject JS object. |
static FESI.jslib.JSObject |
createDirectoryObject(FESI.jslib.JSGlobalObject go,
FESI.jslib.JSObject parent,
java.lang.String name,
DirectoryObjectEntity directoryObjectEntity)
Deprecated. Within the context of the global JS object, create a named DirectoryObject JS object. |
static com.ibm.itim.fesiextensions.wrapper.DirectoryObjectWrapper |
createDirectoryObjectWrapper(DirectoryObject directoryObject)
Deprecated. factory method for creating DirectoryObjectWrappers of the correct subclass This methods can be used by extensions that need to return directory object wrappers from extension methods. |
static com.ibm.itim.fesiextensions.wrapper.DirectoryObjectWrapper |
createDirectoryObjectWrapper(DirectoryObjectEntity directoryObjectEntity)
Deprecated. factory method for creating DirectoryObjectWrappers of the correct subclass This method may be used by extensions that need to return directory object wrappers from extension methods. |
java.lang.Object |
createJavaObject(java.lang.String name,
FESI.jslib.JSObject o)
Deprecated. Creates a Java object from the specified JavaScript object. |
FESI.jslib.JSObject |
createScriptObject(FESI.jslib.JSGlobalObject go,
FESI.jslib.JSObject parent,
java.lang.String name,
java.lang.Object item)
Deprecated. Creates a named object that can be used in the client's script. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSDirectoryObjectFactory()
Method Detail |
---|
public FESI.jslib.JSObject createScriptObject(FESI.jslib.JSGlobalObject go, FESI.jslib.JSObject parent, java.lang.String name, java.lang.Object item) throws FESI.jslib.JSException
createScriptObject
in interface JSObjectFactory
go
- JSGlobalObject as calling context.parent
- JSObject to be registered as a member of. Same as go if
global.name
- Name of the object in the scripting environmentitem
- Object that will be made available as a script object
FESI.jslib.JSException
- when the object can not be converted into a format that can
be used within the script environmentpublic java.lang.Object createJavaObject(java.lang.String name, FESI.jslib.JSObject o) throws FESI.jslib.JSException
createJavaObject
in interface JSObjectFactory
name
- Name of the JavaScript object. Can be empty.o
- JSObject to convert from.
FESI.jslib.JSException
- if the specified JSObject is malformed or not compatible with
this factory.public static java.lang.Object checkForJSDirectoryObject(java.lang.Object object) throws FESI.jslib.JSException
object
- Object to check
FESI.jslib.JSException
- If anything goes wrong.public static FESI.jslib.JSObject createDirectoryObject(FESI.jslib.JSGlobalObject go, FESI.jslib.JSObject parent, java.lang.String name, DirectoryObjectEntity directoryObjectEntity) throws FESI.jslib.JSException
go
- JSGlobalObject as calling context.parent
- JSObject to be registered as a member of.name
- Name of the JS object in the script environment.directoryObjectEntity
- DirectoryObjectEntity that implements, or is represented by,
the created JS object.
FESI.jslib.JSException
public static FESI.jslib.JSObject createDirectoryObject(FESI.jslib.JSGlobalObject go, FESI.jslib.JSObject parent, java.lang.String name, DirectoryObject directoryObject) throws FESI.jslib.JSException
go
- JSGlobalObject as calling context.parent
- JSObject to be registered as a member of.name
- Name of the JS object in the script environment.directoryObject
- DirectoryObject that implements, or is represented by, the
created JS object.
FESI.jslib.JSException
public static FESI.jslib.JSObject createDirectoryObject(FESI.jslib.JSGlobalObject go, DirectoryObjectEntity entity) throws FESI.jslib.JSException
go
- JSObject as calling context.entity
- DirectoryObjectEntity that implements, or is represented by,
the created JS object.
FESI.jslib.JSException
public static FESI.jslib.JSObject createDirectoryObject(FESI.jslib.JSGlobalObject go, DirectoryObject directoryObject) throws FESI.jslib.JSException
go
- JSObject as calling context.directoryObject
- DirectoryObject that implements, or is represented by, the
created JS object.
FESI.jslib.JSException
public static com.ibm.itim.fesiextensions.wrapper.DirectoryObjectWrapper createDirectoryObjectWrapper(DirectoryObjectEntity directoryObjectEntity)
directoryObjectEntity
- the dirObjectEntity to wrap
public static com.ibm.itim.fesiextensions.wrapper.DirectoryObjectWrapper createDirectoryObjectWrapper(DirectoryObject directoryObject)
directoryObject
- the dirObject to wrap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |