Class ExtendableResourceManager

java.lang.Object
fr.paris.lutece.plugins.extend.service.ExtendableResourceManager
All Implemented Interfaces:
IExtendableResourceManager

public class ExtendableResourceManager extends Object implements IExtendableResourceManager
ExtendableResourceManager
  • Field Details

  • Constructor Details

    • ExtendableResourceManager

      public ExtendableResourceManager()
  • Method Details

    • getExtendableResourceServices

      public 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(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(String strIdResource, 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(String strIdResource, 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