Class AdminUserMenuItemProviderRegistrar
java.lang.Object
fr.paris.lutece.portal.service.user.menu.AdminUserMenuItemProviderRegistrar
Admin user menu provider registrar.
Used to add item providers to the admin user menu provider registry. One of
className or provider must be set. Ordering can be
altered by using insertAfter or insertBefore properties.
Normally used from Spring.- Since:
- 6.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the item providervoidsetBeanName(String strName) Set the name under which to register the admin user menu item providervoidsetClassName(String strClassName) Class name of the admin user menu item providervoidsetInsertAfter(String strAfterName) Name of the item provider after which to insert this onevoidsetInsertBefore(String strBeforeName) Name of the item provider before which to insert this onevoidsetProvider(IAdminUserMenuItemProvider provider) ProvidervoidsetService(AdminUserMenuService service) Set AdminUserMenuService
-
Constructor Details
-
AdminUserMenuItemProviderRegistrar
public AdminUserMenuItemProviderRegistrar()Constructor- Parameters:
service- the admin user item service
-
-
Method Details
-
setClassName
public void setClassName(String strClassName) throws InstantiationException, IllegalAccessException, ClassNotFoundException, InvocationTargetException, NoSuchMethodException Class name of the admin user menu item provider- Parameters:
strClassName- class name- Throws:
InstantiationException- if the class cannot be instantiatedIllegalAccessException- if the class cannot be instantiatedIllegalStateException- if the item provider is already setClassNotFoundException- if the class cannot be foundInvocationTargetExceptionNoSuchMethodException
-
setInsertAfter
Name of the item provider after which to insert this one- Parameters:
strAfterName- item provider name
-
setInsertBefore
Name of the item provider before which to insert this one- Parameters:
strBeforeName- item provider name
-
registerAdminUserMenuItemProvider
public void registerAdminUserMenuItemProvider()Registers the item provider -
setBeanName
Set the name under which to register the admin user menu item provider- Parameters:
strName- name of the admin user menu item provider