Interface IAccessControllerType
-
- All Known Implementing Classes:
AbstractUserCodeAccessControllerType,AgeAccessControllerType,CommentAccessControllerType,LuteceUserCodeAccessControllerType,TosAccessControllerType,UserCodeAccessControllerType
public interface IAccessControllerTypeInterface for access controllers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddeleteConfig(int idController)Delete the config of the controllerjava.lang.StringgetBeanName()Gets The bean name of the controllerTypedefault java.lang.StringgetControllerConfigForm(javax.servlet.http.HttpServletRequest request, java.util.Locale locale, AccessController controller)Get the html form for the config of the controller.java.lang.StringgetControllerForm(javax.servlet.http.HttpServletRequest request, java.util.Locale locale, AccessController controller)Get the html form for the config of the controller.java.lang.StringgetTitle(java.util.Locale locale)Gets The display title of the controllerTypedefault booleanhasConfig()Indicates if the controllerType needs a configdefault voidsaveControllerConfig(javax.servlet.http.HttpServletRequest request, java.util.Locale locale, AccessController controller)Save the config of the controller.default java.lang.Stringvalidate(javax.servlet.http.HttpServletRequest request, AccessController controller)Validate the controller
-
-
-
Method Detail
-
getBeanName
java.lang.String getBeanName()
Gets The bean name of the controllerType- Returns:
-
getTitle
java.lang.String getTitle(java.util.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 java.lang.String getControllerConfigForm(javax.servlet.http.HttpServletRequest request, java.util.Locale locale, AccessController controller)Get the html form for the config of the controller.- Parameters:
idController-- Returns:
-
saveControllerConfig
default void saveControllerConfig(javax.servlet.http.HttpServletRequest request, java.util.Locale locale, AccessController controller)Save the config of the controller.- Parameters:
idController-
-
validate
default java.lang.String validate(javax.servlet.http.HttpServletRequest request, AccessController controller) throws fr.paris.lutece.portal.service.security.UserNotSignedExceptionValidate the controller- Parameters:
request-- Returns:
- null if OK, an error message otherwise
- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException
-
getControllerForm
java.lang.String getControllerForm(javax.servlet.http.HttpServletRequest request, java.util.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
-
-