Interface IAccessControllerType
- All Known Implementing Classes:
AbstractUserCodeAccessControllerType,AgeAccessControllerType,CommentAccessControllerType,LuteceUserCodeAccessControllerType,TosAccessControllerType,UserCodeAccessControllerType
public interface IAccessControllerType
Interface for access controllers
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddeleteConfig(int idController) Delete the config of the controllerGets The bean name of the controllerTypedefault StringgetControllerConfigForm(jakarta.servlet.http.HttpServletRequest request, Locale locale, AccessController controller) Get the html form for the config of the controller.getControllerForm(jakarta.servlet.http.HttpServletRequest request, Locale locale, AccessController controller) Get the html form for the config of the controller.Gets The display title of the controllerTypedefault booleanIndicates if the controllerType needs a configdefault voidsaveControllerConfig(jakarta.servlet.http.HttpServletRequest request, Locale locale, AccessController controller) Save the config of the controller.default Stringvalidate(jakarta.servlet.http.HttpServletRequest request, AccessController controller) Validate the controller
-
Method Details
-
getBeanName
String getBeanName()Gets The bean name of the controllerType- Returns:
-
getTitle
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
-