fr.paris.lutece.plugins.dila.service
Interface IDilaLocalService

All Known Implementing Classes:
DilaLocalService

public interface IDilaLocalService

Service for LocalDTO


Method Summary
 Long create(LocalDTO local, boolean addIdToBreadcrumb)
          Create a LocalDTO
 void delete(String idLocal)
          Delete a LocalDTO
 List<LocalDTO> findAll()
          Find all LocalDTO
 List<LocalDTO> findAllByAudienceId(Long audienceId)
          Find all LocalDTO by audience id
 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
 Document insertLastCardsLinks(Long categoryId, DocumentBuilder builder, Document document)
          Insert "Fiche locale" resource in document
 void update(LocalDTO localDTO, boolean addIdToBreadcrumb)
          Update a LocalDTO
 

Method Detail

findAll

List<LocalDTO> findAll()
Find all LocalDTO

Returns:
list of all LocalDTO

create

Long create(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 new LocalDTO

delete

void delete(String idLocal)
Delete a LocalDTO

Parameters:
idLocal - the id to delete

update

void update(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

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

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

insertLastCardsLinks

Document insertLastCardsLinks(Long categoryId,
                              DocumentBuilder builder,
                              Document document)
Insert "Fiche locale" resource in document

Parameters:
categoryId - the audience to check
builder - the document builder
document - the document
Returns:
the updated document

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.