Interface UserServiceRecordFormFactory


public interface UserServiceRecordFormFactory
This interface defines a factory to create a UserService replacing the default model-driven record form. Regarding UIForm, it allows implementing more advanced user interfaces, for instance navigating between multiple pages, or accessing and manipulating multiple records and dynamic objects.

In the context of an association, the user service can be further refined by implementing UserServiceAssociationRecordFormFactory.

Definition in the data model

The factory must be declared under the element <osd:table>. For example:

 <xs:annotation>
   <xs:appinfo>
     <osd:table>
       <primaryKeys>/id</primaryKeys>
       <recordForm osd:class="com.foo.MyFactory"/>
     </osd:table>
   </xs:appinfo>
 </xs:annotation>
 
where com.foo.MyFactory is the fully qualified name of a class implementing this interface. The declaration may also use parameters:
 <recordForm class="com.foo.MyFactory">
        <param1>...</param1>
        <param2>...</param2>
 </recordForm>
 
where param1 and param2 are JavaBean properties of the com.foo.MyFactory class.

For more information, see the JavaBean specification.

Life cycle

  1. If the concrete factory is referenced by a data model element, then, when the data model is loaded:
    1. the specified factory class is instantiated through its default constructor and the setters of the JavaBean properties are called (in the example above, setParam1(...) and setParam2(...));
    2. then, the method setup(UserServiceRecordFormFactoryContext) is called for the new instance).
  2. During the operational phase: the method:

Since:
5.9.0
See Also: