Interface IAccessControllerType

All Known Implementing Classes:
AbstractUserCodeAccessControllerType, AgeAccessControllerType, CommentAccessControllerType, LuteceUserCodeAccessControllerType, TosAccessControllerType, UserCodeAccessControllerType

public interface IAccessControllerType
Interface for access controllers
  • Method Details

    • getBeanName

      String getBeanName()
      Gets The bean name of the controllerType
      Returns:
    • getTitle

      String getTitle(Locale locale)
      Gets The display title of the controllerType
      Parameters:
      locale -
      Returns:
    • hasConfig

      default boolean hasConfig()
      Indicates if the controllerType needs a config
      Returns:
    • deleteConfig

      default void deleteConfig(int idController)
      Delete the config of the controller
    • getControllerConfigForm

      default String getControllerConfigForm(jakarta.servlet.http.HttpServletRequest request, Locale locale, AccessController controller)
      Get the html form for the config of the controller.
      Parameters:
      idController -
      Returns:
    • saveControllerConfig

      default void saveControllerConfig(jakarta.servlet.http.HttpServletRequest request, Locale locale, AccessController controller)
      Save the config of the controller.
      Parameters:
      idController -
    • validate

      default String validate(jakarta.servlet.http.HttpServletRequest request, AccessController controller) throws fr.paris.lutece.portal.service.security.UserNotSignedException
      Validate the controller
      Parameters:
      request -
      Returns:
      null if OK, an error message otherwise
      Throws:
      fr.paris.lutece.portal.service.security.UserNotSignedException
    • getControllerForm

      String getControllerForm(jakarta.servlet.http.HttpServletRequest request, Locale locale, AccessController controller)
      Get the html form for the config of the controller. if there is nothing to ask or display to the user And to skip form return null
      Parameters:
      idController -
      Returns:
      controllerForm