Class DatabaseResourceTypeDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a resource type from the database
      java.util.List<DatabaseResourceType> findAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of resource types
      DatabaseResourceType findByPrimaryKey​(java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find a resource from its primary key
      java.util.List<java.lang.String> 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
      • Methods inherited from class java.lang.Object

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

      • DatabaseResourceTypeDAO

        public DatabaseResourceTypeDAO()
    • Method Detail

      • insert

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

        public void update​(DatabaseResourceType resourceType,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Updates a resource type
        Specified by:
        update in interface IDatabaseResourceTypeDAO
        Parameters:
        resourceType - The resource
        plugin - The plugin
      • delete

        public void delete​(java.lang.String strResourceType,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove a resource type from the database
        Specified by:
        delete in interface IDatabaseResourceTypeDAO
        Parameters:
        strResourceType - the name of the resource type
        plugin - the plugin
      • findByPrimaryKey

        public DatabaseResourceType findByPrimaryKey​(java.lang.String strResourceType,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find a resource from its primary key
        Specified by:
        findByPrimaryKey in interface IDatabaseResourceTypeDAO
        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

        public java.util.List<DatabaseResourceType> findAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of resource types
        Specified by:
        findAll in interface IDatabaseResourceTypeDAO
        Parameters:
        plugin - the plugin
        Returns:
        The list of resource types
      • getResourceTypesList

        public java.util.List<java.lang.String> getResourceTypesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of resource type names
        Specified by:
        getResourceTypesList in interface IDatabaseResourceTypeDAO
        Parameters:
        plugin - the plugin
        Returns:
        the list of resource type names