public interface UserServiceAssociationRecordFormFactory
UserService
replacing
the default record form in the context of an associated object to be created
or accessed.
The factory must be declared under the element
<osd:association>
. For example:
where<xs:annotation> <xs:appinfo> <osd:association> <recordForm osd:class="com.foo.MyFactory"/> ... </osd:association> </xs:appinfo> </xs:annotation>
com.foo.MyFactory
is
the fully qualified name of a class implementing this interface.
The declaration may also use parameters:
where<recordForm class="com.foo.MyFactory"> <param1>...</param1> <param2>...</param2> </recordForm>
param1
and param2
are JavaBean properties
of the com.foo.MyFactory
class.
For more information, see the JavaBean specification.
setParam1(...)
and
setParam2(...)
);setup(UserServiceAssociationRecordFormFactoryContext)
is called for the new instance).newUserServiceForCreate(UserServiceAssociationRecordFormContext.ForCreate)
is called each time
a record view must be displayed for creating a record in the context of an association.newUserServiceForDefault(UserServiceAssociationRecordFormContext.ForDefault)
is called each time
a record view must be displayed for modifying a record in the context of an association.newUserServiceForDuplicate(UserServiceAssociationRecordFormContext.ForDuplicate)
is called each time
a record view must be displayed for duplicating a record in the context of an association.UserServiceRecordFormFactory
,
AssociationLink.getRecordFormFactoryClass()
Modifier and Type | Method and Description |
---|---|
UserService<AssociationEntitySelection> |
newUserServiceForCreate(UserServiceAssociationRecordFormContext.ForCreate aContext)
Creates and returns a new instance of
UserService
for creating a record in the context of an association. |
UserService<AssociationRecordEntitySelection> |
newUserServiceForDefault(UserServiceAssociationRecordFormContext.ForDefault aContext)
Creates and returns a new instance of
UserService
for displaying a record on consultation or on modification
in the context of an association. |
UserService<AssociationRecordEntitySelection> |
newUserServiceForDuplicate(UserServiceAssociationRecordFormContext.ForDuplicate aContext)
Creates and returns a new instance of
UserService
for duplicating a record in the context of an association. |
void |
setup(UserServiceAssociationRecordFormFactoryContext aContext)
This method is called when the data model is loaded.
|
UserService<AssociationEntitySelection> newUserServiceForCreate(UserServiceAssociationRecordFormContext.ForCreate aContext)
UserService
for creating a record in the context of an association.
If this method returns null
then the
default model-driven form will be used for creating a record.
ServiceKey.CREATE
UserService<AssociationRecordEntitySelection> newUserServiceForDefault(UserServiceAssociationRecordFormContext.ForDefault aContext)
UserService
for displaying a record on consultation or on modification
in the context of an association.
If this method returns null
then the
default model-driven form will be used for
displaying a record on consultation or on modification.
ServiceKey.DEFAULT_SERVICE
UserService<AssociationRecordEntitySelection> newUserServiceForDuplicate(UserServiceAssociationRecordFormContext.ForDuplicate aContext)
UserService
for duplicating a record in the context of an association.
If this method returns null
then the
default model-driven form will be used for duplicating a record.
ServiceKey.DUPLICATE
void setup(UserServiceAssociationRecordFormFactoryContext aContext)