Class BpeeFactory
java.lang.Object
de.uplanet.lucy.server.auxiliaries.BpeeFactory
@VelocityVariable("BpeeFactory")
@VelocityCallable("singleton")
public final class BpeeFactory
extends Object
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(de.uplanet.lucy.server.IProcessingContext p_ctx, Map<QName, Object> p_namedObjects, org.apache.velocity.context.AbstractContext p_ctxVelocity) Create a BPEE execution context.createContext
(Map<QName, Object> p_namedObjects, ISession p_session, IServerBridgeRequest p_request, org.apache.velocity.context.AbstractContext p_ctxVelocity) Deprecated.createContext
(Map<QName, Object> p_namedObjects, ISession p_session, IServerBridgeRequest p_request, org.apache.velocity.context.AbstractContext p_ctxVelocity, TimeZone p_tz) Deprecated.Map
<QName, IValueHolder<?>> getBeanProperties
(String p_strNamespaceUri, IUser p_user) Get a user's properties.Map
<QName, IValueHolder<?>> getBeanProperties
(String p_strNamespaceUri, Object p_obj) Get bean properties from the given object.
-
Constructor Details
-
BpeeFactory
public BpeeFactory()Standard constructor.
-
-
Method Details
-
createContext
public IBpeeExecutionContext createContext(de.uplanet.lucy.server.IProcessingContext p_ctx, Map<QName, Object> p_namedObjects, org.apache.velocity.context.AbstractContext p_ctxVelocity) throws de.uplanet.xml.schema.XmlSchemaDatatypeParseExceptionCreate a BPEE execution context.If a session and an associated user is presentin the given processing context, it's time zone will be put into the execution context. Otherwise the system's default time zone will be used.
- Parameters:
p_ctx
- The processing context.p_namedObjects
-p_ctxVelocity
- The Velocity context.- Returns:
- The BPEE execution context.
- Throws:
de.uplanet.xml.schema.XmlSchemaDatatypeParseException
-
createContext
@Deprecated public IBpeeExecutionContext createContext(Map<QName, Object> p_namedObjects, ISession p_session, IServerBridgeRequest p_request, org.apache.velocity.context.AbstractContext p_ctxVelocity) throws de.uplanet.xml.schema.XmlSchemaDatatypeParseExceptionDeprecated.Create a BPEE execution context.If a session and an associated user is present, it's time zone will be put into the execution context. Otherwise the system's default time zone will be used.
- Parameters:
p_namedObjects
-p_session
-p_request
-p_ctxVelocity
-- Returns:
- The BPEE execution context.
- Throws:
de.uplanet.xml.schema.XmlSchemaDatatypeParseException
-
createContext
@Deprecated public IBpeeExecutionContext createContext(Map<QName, Object> p_namedObjects, ISession p_session, IServerBridgeRequest p_request, org.apache.velocity.context.AbstractContext p_ctxVelocity, TimeZone p_tz) throws de.uplanet.xml.schema.XmlSchemaDatatypeParseExceptionDeprecated.Create a BPEE execution context.- Parameters:
p_namedObjects
-p_session
-p_request
-p_ctxVelocity
-p_tz
- The time zone to be used.- Returns:
- The BPEE execution context.
- Throws:
de.uplanet.xml.schema.XmlSchemaDatatypeParseException
-
createEngine
-
getBeanProperties
public Map<QName,IValueHolder<?>> getBeanProperties(String p_strNamespaceUri, IUser p_user) throws ReflectiveOperationException Get a user's properties.- Parameters:
p_strNamespaceUri
- The namespace URI for the created properties.p_user
- The user object to get the values from.- Throws:
IllegalArgumentException
- If the given user isnull
.ReflectiveOperationException
- If a reflection error occurred.- See Also:
-
getBeanProperties
public Map<QName,IValueHolder<?>> getBeanProperties(String p_strNamespaceUri, Object p_obj) throws ReflectiveOperationException Get bean properties from the given object.- Parameters:
p_strNamespaceUri
- The namespace URI for the created properties.p_obj
- The object to get the values from.- Returns:
- A map that contains the bean properties.
- Throws:
IllegalArgumentException
- If the given object isnull
.ReflectiveOperationException
- If a reflection error occurred.
-
createContext(IProcessingContext, Map, AbstractContext)
instead.