Class AuthorizedUrlDAO

    • Constructor Detail

      • AuthorizedUrlDAO

        public AuthorizedUrlDAO()
    • Method Detail

      • newPrimaryKey

        public int newPrimaryKey​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Generates a new primary key
        Parameters:
        plugin - The Plugin
        Returns:
        The new primary key
      • insert

        public void insert​(AuthorizedUrl authorizedUrl,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IAuthorizedUrlDAO
        Parameters:
        authorizedUrl - instance of the AuthorizedUrl object to insert
        plugin - the Plugin
      • load

        public AuthorizedUrl load​(int nKey,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IAuthorizedUrlDAO
        Parameters:
        nKey - The identifier of the authorizedUrl
        plugin - the Plugin
        Returns:
        The instance of the authorizedUrl
      • delete

        public void delete​(int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface IAuthorizedUrlDAO
        Parameters:
        nKey - The identifier of the AuthorizedUrl to delete
        plugin - the Plugin
      • store

        public void store​(AuthorizedUrl authorizedUrl,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IAuthorizedUrlDAO
        Parameters:
        authorizedUrl - the reference of the AuthorizedUrl
        plugin - the Plugin
      • selectAuthorizedUrlsList

        public List<AuthorizedUrl> selectAuthorizedUrlsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the authorizedUrl objects and returns them as a list
        Specified by:
        selectAuthorizedUrlsList in interface IAuthorizedUrlDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the authorizedUrl objects
      • selectAuthorizedUrlsByApplicationCode

        public List<AuthorizedUrl> selectAuthorizedUrlsByApplicationCode​(String strApplicationCode,
                                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the authorizedUrl objects filtered by application codeand returns them as a list
        Specified by:
        selectAuthorizedUrlsByApplicationCode in interface IAuthorizedUrlDAO
        Parameters:
        strApplicationCode - the application code
        plugin - the Plugin
        Returns:
        The list which contains the data of all the authorizedUrl objects
      • selectIdAuthorizedUrlsList

        public List<Integer> selectIdAuthorizedUrlsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the authorizedUrl objects and returns them as a list
        Specified by:
        selectIdAuthorizedUrlsList in interface IAuthorizedUrlDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the authorizedUrl objects
      • selectAuthorizedUrlsReferenceList

        public fr.paris.lutece.util.ReferenceList selectAuthorizedUrlsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the authorizedUrl objects and returns them as a referenceList
        Specified by:
        selectAuthorizedUrlsReferenceList in interface IAuthorizedUrlDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the authorizedUrl objects