Interface IDatabaseResourceTypeDAO

All Known Implementing Classes:
DatabaseResourceTypeDAO

public interface IDatabaseResourceTypeDAO
Interface of DAO of database resource type
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the bean of the DAO
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove a resource type from the database
    findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of resource types
    findByPrimaryKey(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find a resource from its primary key
    getResourceTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of resource type names
    void
    insert(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    insert a new resource type into the database
    void
    update(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Updates a resource type
  • Field Details

  • Method Details

    • insert

      void insert(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      insert a new resource type into the database
      Parameters:
      resourceType - The resource type to creates
      plugin - The plugin
    • update

      void update(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Updates a resource type
      Parameters:
      resourceType - The resource
      plugin - The plugin
    • delete

      void delete(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a resource type from the database
      Parameters:
      strResourceType - the name of the resource type
      plugin - the plugin
    • findByPrimaryKey

      DatabaseResourceType findByPrimaryKey(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find a resource from its primary key
      Parameters:
      strResourceType - the id of the resource
      plugin - The plugin
      Returns:
      The resource type, or null if no resource type has the given primary key
    • findAll

      List<DatabaseResourceType> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of resource types
      Parameters:
      plugin - the plugin
      Returns:
      The list of resource types
    • getResourceTypesList

      List<String> getResourceTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of resource type names
      Parameters:
      plugin - the plugin
      Returns:
      the list of resource type names