Class ExtendableResourceManager

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_MANAGER
      The Constant BEAN_MANAGER.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      fr.paris.lutece.portal.service.resource.IExtendableResourceService getExtendableResourceService​(java.lang.String strResourceType)
      Gets the extendable resource service.
      java.util.List<fr.paris.lutece.portal.service.resource.IExtendableResourceService> getExtendableResourceServices()
      Gets the extendable resource services.
      fr.paris.lutece.portal.service.resource.IExtendableResource getResource​(java.lang.String strIdResource, java.lang.String strResourceType)
      Gets the resource.
      boolean useDefaultExtendableResourceService​(java.lang.String strIdResource, java.lang.String strResourceType)
      Check if the user must be redirected to the default resource extender creation page or not.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BEAN_MANAGER

        public static final java.lang.String BEAN_MANAGER
        The Constant BEAN_MANAGER.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExtendableResourceManager

        public ExtendableResourceManager()
    • Method Detail

      • getExtendableResourceServices

        public java.util.List<fr.paris.lutece.portal.service.resource.IExtendableResourceService> getExtendableResourceServices()
        Gets the extendable resource services.
        Specified by:
        getExtendableResourceServices in interface IExtendableResourceManager
        Returns:
        the extendable resource services
      • getExtendableResourceService

        public fr.paris.lutece.portal.service.resource.IExtendableResourceService getExtendableResourceService​(java.lang.String strResourceType)
        Gets the extendable resource service.
        Specified by:
        getExtendableResourceService in interface IExtendableResourceManager
        Parameters:
        strResourceType - the str resource type
        Returns:
        the extendable resource service
      • getResource

        public fr.paris.lutece.portal.service.resource.IExtendableResource getResource​(java.lang.String strIdResource,
                                                                                       java.lang.String strResourceType)
        Gets the resource.
        Specified by:
        getResource in interface IExtendableResourceManager
        Parameters:
        strIdResource - the str id resource
        strResourceType - the str resource type
        Returns:
        the resource
      • useDefaultExtendableResourceService

        public boolean useDefaultExtendableResourceService​(java.lang.String strIdResource,
                                                           java.lang.String strResourceType)
        Check if the user must be redirected to the default resource extender creation page or not.
        To be redirected, the following conditions must be set :
        • The resource service for the given resource type is not found
        • There are no existing resource for the given id resource
        Specified by:
        useDefaultExtendableResourceService in interface IExtendableResourceManager
        Parameters:
        strIdResource - the str id resource
        strResourceType - the str resource type
        Returns:
        true, if successful