fr.paris.lutece.plugins.dila.business.fichelocale.dao
Interface ILocalDAO

All Known Implementing Classes:
LocalDAO

public interface ILocalDAO

DAO for LocalDTO


Method Summary
 void delete(String idLocal)
          Delete a LocalDTO
 List<LocalDTO> findAll()
          Find all LocalDTO
 List<LocalDTO> findAllByAudienceId(Long audienceId)
          Find all LocalDTO by audience id
 List<LocalDTO> findLastCardsByAudience(Long categoryId)
          Find 10 last fiches for display
 LocalDTO findLocalByIdAndTypeAndAudience(Long id, Long type, Long idAudience)
          Find a LocalDTO by its id and type
 String findTitleByIdAndTypeAndAudience(Long id, Long type, Long idAudience)
          Find a title by its id and type
 String findXmlById(Long id)
          Find xml content of LocalDTO by its id
 Long insert(LocalDTO local, boolean addIdToBreadcrumb)
          Create a LocalDTO
 void store(LocalDTO localDTO, boolean addIdToBreadcrumb)
          Update a LocalDTO
 

Method Detail

findLocalByIdAndTypeAndAudience

LocalDTO findLocalByIdAndTypeAndAudience(Long id,
                                         Long type,
                                         Long idAudience)
Find a LocalDTO by its id and type

Parameters:
id - the id to find
type - the type
idAudience - the id audience
Returns:
the corresponding LocalDTO

findTitleByIdAndTypeAndAudience

String findTitleByIdAndTypeAndAudience(Long id,
                                       Long type,
                                       Long idAudience)
Find a title by its id and type

Parameters:
id - the id to find
type - the type
idAudience - the id audience
Returns:
the title of corresponding LocalDTO

findAll

List<LocalDTO> findAll()
Find all LocalDTO

Returns:
list of all LocalDTO

insert

Long insert(LocalDTO local,
            boolean addIdToBreadcrumb)
Create a LocalDTO

Parameters:
local - the LocalDTO to create
addIdToBreadcrumb - true if id must be id to breadcrumb, false otherwise
Returns:
the id of the new LocalDTO

delete

void delete(String idLocal)
Delete a LocalDTO

Parameters:
idLocal - the id to delete

store

void store(LocalDTO localDTO,
           boolean addIdToBreadcrumb)
Update a LocalDTO

Parameters:
localDTO - the LocalDTO to update
addIdToBreadcrumb - true if id must be id to breadcrumb, false otherwise

findXmlById

String findXmlById(Long id)
Find xml content of LocalDTO by its id

Parameters:
id - the id
Returns:
the xml

findLastCardsByAudience

List<LocalDTO> findLastCardsByAudience(Long categoryId)
Find 10 last fiches for display

Parameters:
categoryId - the audience to check
Returns:
list of corresponding LocalDTO

findAllByAudienceId

List<LocalDTO> findAllByAudienceId(Long audienceId)
Find all LocalDTO by audience id

Parameters:
audienceId - the audience id
Returns:
all LocalDTO in audience id


Copyright © 2014 Mairie de Paris. All Rights Reserved.