Class EntryServiceManager
java.lang.Object
fr.paris.lutece.plugins.forms.service.EntryServiceManager
@ApplicationScoped
@Named("forms.entryServiceManager")
public class EntryServiceManager
extends Object
Manager for entry-type-specific display/data services and validators.
Discovers every
IEntryDisplayService, IEntryDataService and
IValidator bean exposed by CDI producers and exposes them by name.
Prefer @Inject EntryServiceManager over getInstance() in new
code. The static accessor is kept as a bridge for static utilities and
non-CDI-managed classes (e.g. FormResponseManager,
FormsResponseUtils) that cannot use field injection yet; those will
migrate as part of the factorisation work (plan lot L6).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntryDataService(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the right IEntryDataServicegetEntryDisplayService(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the right IEntryDisplayServicestatic EntryServiceManagerDeprecated.getListAvailableValidator(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the available IValidator list for the given entryTypefr.paris.lutece.util.ReferenceListgetRefListAvailableValidator(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the available IValidator list for the given entryTypegetValidator(String strValidatorName) Get the right IValidator
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Constructor Details
-
EntryServiceManager
public EntryServiceManager()
-
-
Method Details
-
getInstance
Deprecated.Prefer@Inject EntryServiceManager _entryServiceManagerin CDI-managed classes. This bridge is retained for static utilities and non-CDI callers during the migration window.Gives the CDI-managed instance.- Returns:
- the
EntryServiceManagerbean resolved through the current CDI container
-
getEntryDisplayService
public IEntryDisplayService getEntryDisplayService(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the right IEntryDisplayService- Parameters:
entryType- The entrytype- Returns:
- the IEntryDisplayService
-
getEntryDataService
public IEntryDataService getEntryDataService(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the right IEntryDataService- Parameters:
entryType- The entrytype- Returns:
- the IEntryDataService
-
getValidator
Get the right IValidator- Parameters:
strValidatorName- The validator name- Returns:
- the IValidator
-
getRefListAvailableValidator
public fr.paris.lutece.util.ReferenceList getRefListAvailableValidator(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the available IValidator list for the given entryType- Parameters:
entryType- The entrytype- Returns:
- the ReferenceList of IValidator
-
getListAvailableValidator
public List<IValidator> getListAvailableValidator(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType) Get the available IValidator list for the given entryType- Parameters:
entryType- The entrytype- Returns:
- the List of IValidator
-
@Inject EntryServiceManager _entryServiceManagerin CDI-managed classes.