Class AdminUserMenuItemProviderRegistrar
java.lang.Object
fr.paris.lutece.portal.service.user.menu.AdminUserMenuItemProviderRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class AdminUserMenuItemProviderRegistrar
extends Object
implements org.springframework.beans.factory.BeanNameAware
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
ConstructorsConstructorDescriptionConstructor -
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) Provider
-
Constructor Details
-
Method Details
-
setClassName
public void setClassName(String strClassName) throws InstantiationException, IllegalAccessException, ClassNotFoundException 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 found
-
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
@PostConstruct public void registerAdminUserMenuItemProvider()Registers the item provider -
setBeanName
Set the name under which to register the admin user menu item provider- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware- Parameters:
strName- name of the admin user menu item provider
-