Class BpeeFactory

java.lang.Object
de.uplanet.lucy.server.auxiliaries.BpeeFactory

@VelocityVariable("BpeeFactory") @VelocityCallable("singleton") public final class BpeeFactory extends Object
  • Constructor Details

    • BpeeFactory

      public BpeeFactory()
      Standard constructor.
  • Method Details

    • createContext

      public de.uplanet.lucy.bpee.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 de.uplanet.lucy.bpee.IBpeeExecutionContext createContext(Map<QName,Object> p_namedObjects, de.uplanet.lucy.server.session.ISession p_session, de.uplanet.lucy.server.connector.IServerBridgeRequest p_request, 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 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 de.uplanet.lucy.bpee.IBpeeExecutionContext createContext(Map<QName,Object> p_namedObjects, de.uplanet.lucy.server.session.ISession p_session, de.uplanet.lucy.server.connector.IServerBridgeRequest p_request, org.apache.velocity.context.AbstractContext p_ctxVelocity, TimeZone p_tz) throws de.uplanet.xml.schema.XmlSchemaDatatypeParseException
      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 de.uplanet.lucy.bpee.BpeeEngine createEngine()
    • getBeanProperties

      public Map<QName,de.uplanet.lucy.server.dataobjects.IValueHolder<?>> getBeanProperties(String p_strNamespaceUri, de.uplanet.lucy.server.usermanager.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 is null.
      ReflectiveOperationException - If a reflection error occurred.
      See Also:
    • getBeanProperties

      public Map<QName,de.uplanet.lucy.server.dataobjects.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 is null.
      ReflectiveOperationException - If a reflection error occurred.