public interface OptionFactory extends de.espirit.firstspirit.access.editor.value.LabelFactory<Option>
Although, this interface provides members with rather generic parameters,
specific factories may only produce output with respect to specific types
of objects. Otherwise, a FactoryException
will be thrown.
Modifier and Type | Method and Description |
---|---|
Option |
create(Object object)
Create a new option from the given object, which usually is the
value.
|
OptionModel |
getOptionModel(SpecialistsBroker broker,
Language language,
boolean release)
Return a model on options, based upon information provided by the given specialists broker.
|
OptionModel |
getOptionModel(UserService userService,
Language language,
boolean release)
Deprecated.
|
String |
getPersistence(Option option)
Returns the persistence key for given option.
|
Option create(Object object) throws FactoryException
create
in interface Factory<Option,Object>
create
in interface de.espirit.firstspirit.access.editor.value.LabelFactory<Option>
object
- The object to create an option from.FactoryException
- If the object could not be used as option source.String getPersistence(Option option)
option
- the option to get the persistence key for@Deprecated OptionModel getOptionModel(UserService userService, Language language, boolean release)
getOptionModel(de.espirit.firstspirit.agency.SpecialistsBroker, de.espirit.firstspirit.access.Language, boolean)
userService
- The user service providing needed access information.language
- The language to get the model for.release
- Indicates to get the model for release.FactoryException
- If the given service could not be used as option model source.OptionModel getOptionModel(SpecialistsBroker broker, Language language, boolean release)
broker
- The broker providing needed access information.language
- The language to get the model for.release
- Indicates to get the model for release.FactoryException
- If the given service could not be used as option model source.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408