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 Details

  • Constructor Details

    • EntryServiceManager

      public EntryServiceManager()
  • Method Details

    • getInstance

      @Deprecated(since="4.0.3") public static EntryServiceManager getInstance()
      Deprecated.
      Prefer @Inject EntryServiceManager _entryServiceManager in 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 EntryServiceManager bean 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

      public IValidator getValidator(String strValidatorName)
      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