Interface IResourceExtenderService

All Known Implementing Classes:
ResourceExtenderService

public interface IResourceExtenderService
IResourceExtenderService
  • Method Details

    • create

      void create(ResourceExtenderDTO extender)
      Creates.
      Parameters:
      extender - the extender
    • update

      void update(ResourceExtenderDTO extender)
      Update.
      Parameters:
      extender - the extender
    • remove

      void remove(int nIdExtender)
      Delete.
      Parameters:
      nIdExtender - the n id extender
    • findByPrimaryKey

      ResourceExtenderDTO findByPrimaryKey(int nIdExtender)
      Find by primary key.
      Parameters:
      nIdExtender - the n id extender
      Returns:
      the extender
    • findAll

      Find by id hub resource.
      Returns:
      the list
    • findByFilter

      Find by filter.
      Parameters:
      filter - the filter
      Returns:
      the list
    • findIdsByFilter

      List<Integer> findIdsByFilter(ResourceExtenderDTOFilter filter)
      Find ids by filter.
      Parameters:
      filter - the filter
      Returns:
      the list
    • findByListIds

      List<ResourceExtenderDTO> findByListIds(List<Integer> listIds)
      Find by list ids.
      Parameters:
      listIds - the list ids
      Returns:
      the list
    • findResourceExtender

      ResourceExtenderDTO findResourceExtender(String strExtenderType, String strIdExtendableResource, String strExtendableResourceType)
      Find the resource extender.
      Parameters:
      strExtenderType - the str extender type
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      Returns:
      the resource extender dto
    • findWildCardResourceExtender

      ResourceExtenderDTO findWildCardResourceExtender(String strExtenderType, String strExtendableResourceType)
      Find wildcard resource extender.
      Parameters:
      strExtenderType - the str extender type
      strExtendableResourceType - the str extendable resource type
      Returns:
      the resource extender dto
    • findResourceExtenderIncludingWildcard

      ResourceExtenderDTO findResourceExtenderIncludingWildcard(String strExtenderType, String strIdExtendableResource, String strExtendableResourceType)
      Find the resource extender, or the wildcard resource extender if no extender with the specified id exists.
      Parameters:
      strExtenderType - the str extender type
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      Returns:
      the resource extender dto
    • getExtenderTypes

      fr.paris.lutece.util.ReferenceList getExtenderTypes(Locale locale)
      Gets the extender types.
      Parameters:
      locale - the locale
      Returns:
      the extender types
    • getExtenderTypesInstalled

      Map<String,Boolean> getExtenderTypesInstalled(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of installed extenders for a given resource id and a given resource type.
      Parameters:
      strIdExtendableResource - Id of the resource
      strExtendableResourceType - Type of the resource
      plugin - the plugin
      Returns:
      A map of associations of string / boolean. Only installed extender types are considered.
    • isAuthorized

      boolean isAuthorized(String strIdExtendableResource, String strExtendableResourceType, String strExtenderType)
      Checks if is authorized.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      strExtenderType - the str extender type
      Returns:
      true, if is authorized
    • isAuthorizedToAllResources

      boolean isAuthorizedToAllResources(String strExtendableResourceType, String strExtenderType)
      Checks if is authorized to all resources.
      Parameters:
      strExtendableResourceType - the str extendable resource type
      strExtenderType - the str extender type
      Returns:
      true, if is authorized to all resources
    • isAuthorizedToAllResources

      boolean isAuthorizedToAllResources(int nIdExtender)
      Checks if is authorized to all resources.
      Parameters:
      nIdExtender - the n id extender
      Returns:
      true, if is authorized to all resources
    • getContent

      String getContent(String strIdExtendableResource, String strExtendableResourceType, String strExtenderType, String strParameters, jakarta.servlet.http.HttpServletRequest request)
      Gets the resource extender content.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      strExtenderType - the str resource extender type
      strParameters - the str parameters
      request - the request
      Returns:
      the resource extender content
    • doCreateResourceAddOn

      void doCreateResourceAddOn(ResourceExtenderDTO resourceExtender)
      Do create resource add on.
      Parameters:
      resourceExtender - the extender
    • doDeleteResourceAddOn

      void doDeleteResourceAddOn(ResourceExtenderDTO resourceExtender)
      Do delete resource add on.
      Parameters:
      resourceExtender - the extender
    • getResourceExtenders

      List<IResourceExtender> getResourceExtenders()
      Gets the resource extenders.
      Returns:
      the resource extenders
    • getResourceExtender

      IResourceExtender getResourceExtender(String strExtenderType)
      Gets the resource extender.
      Parameters:
      strExtenderType - the str extender type
      Returns:
      the resource extender
    • getExtendableResourceName

      String getExtendableResourceName(ResourceExtenderDTO resourceExtender)
      Gets the extendable resource name.
      Parameters:
      resourceExtender - the resource extender
      Returns:
      the extendable resource name
    • getExtendableResourceName

      String getExtendableResourceName(String strIdExtendableResource, String strExtendableResourceType)
      Gets the extendable resource name.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      Returns:
      the extendable resource name
    • getExtendableResource

      fr.paris.lutece.portal.service.resource.IExtendableResource getExtendableResource(ResourceExtenderDTO resourceExtender)
      Gets the extendable resource
      Parameters:
      resourceExtender - the resource extender
      Returns:
      the extendable resource
    • getExtendableResource

      fr.paris.lutece.portal.service.resource.IExtendableResource getExtendableResource(String strIdExtendableResource, String strExtendableResourceType)
      Gets the extendable resource.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      Returns:
      the extendable resource
    • getActionPermissions

      Map<String,Map<String,Boolean>> getActionPermissions(List<Integer> listIds, fr.paris.lutece.portal.business.user.AdminUser user)
      Gets the actions permission.
      Parameters:
      listIds - the list ids
      user - the user
      Returns:
      the actions permission
    • getExtendableResourceUrl

      String getExtendableResourceUrl(String strIdResource, String strResourceType)
      Get the main URL to access a resource
      Parameters:
      strIdResource - The id of the resource
      strResourceType - The type of a resource
      Returns:
      The main URL to access a resource, or null if the resource has no main URL