Class BpeeFactory
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.BpeeFactory
-
@VelocityVariable("BpeeFactory") @VelocityCallable("singleton") public final class BpeeFactory extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBpeeFactory.DeprecatedProcessingContext
-
Constructor Summary
Constructors Constructor Description BpeeFactory()Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IBpeeExecutionContextcreateContext(de.uplanet.lucy.server.IProcessingContext p_ctx, Map<QName,Object> p_namedObjects, org.apache.velocity.context.AbstractContext p_ctxVelocity)Create a BPEE execution context.IBpeeExecutionContextcreateContext(Map<QName,Object> p_namedObjects, ISession p_session, IServerBridgeRequest p_request, org.apache.velocity.context.AbstractContext p_ctxVelocity)Deprecated.IBpeeExecutionContextcreateContext(Map<QName,Object> p_namedObjects, ISession p_session, IServerBridgeRequest p_request, org.apache.velocity.context.AbstractContext p_ctxVelocity, TimeZone p_tz)Deprecated.BpeeEnginecreateEngine()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.
-
-
-
Method Detail
-
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.XmlSchemaDatatypeParseException
Create 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.XmlSchemaDatatypeParseException
Deprecated.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.XmlSchemaDatatypeParseException
Deprecated.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
public BpeeEngine 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(String, Object)
-
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.
-
-