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

All Known Implementing Classes:
DilaXmlService

public interface IDilaXmlService

Interface for XmlDTO


Method Summary
 List<XmlDTO> findAll()
          Find all XML
 XmlDTO findByIdAndTypesAndAudience(String idThemeParent, List<String> availableTypes, Long idAudience)
          Find a XmlDTO by its id and type
 XmlDTO findFolderById(String id)
          Find a XmlDTO by its id
 XmlDTO findHomeHowTo(Long audienceId)
          Find the "How to ..." section for given audience
 Long findIdByXmlAndAudience(String xmlName, Long audienceId)
          Find a national card's technical id by it xml name and audience
 String findResourceTypeByIdXMLAndAudience(String strIdXml, Long lIdAudience)
          Find the resource type of a XmlDTO
 String findTitleById(String id)
          Find the title of a XmlDTO
 String findTitleByIdAndTypesAndAudience(String siblingFolderId, List<String> availableTypes, Long idAudience)
          Find the title of a XmlDTO
 Document insertHowToLinks(Long audienceId, DocumentBuilder builder, Document document)
          Insert "comment faire" resource in document
 Document insertRssLinks(DocumentBuilder builder, Document document, Locale locale)
          Access RSS feeds and get links to display in document
 

Method Detail

findTitleById

String findTitleById(String id)
Find the title of a XmlDTO

Parameters:
id - the id to find
Returns:
the corresponding title

findFolderById

XmlDTO findFolderById(String id)
Find a XmlDTO by its id

Parameters:
id - the id to find
Returns:
the corresponding XmlDTO

findResourceTypeByIdXMLAndAudience

String findResourceTypeByIdXMLAndAudience(String strIdXml,
                                          Long lIdAudience)
Find the resource type of a XmlDTO

Parameters:
strIdXml - the xml id
lIdAudience - the audience id
Returns:
the corresponding type_resource

findByIdAndTypesAndAudience

XmlDTO findByIdAndTypesAndAudience(String idThemeParent,
                                   List<String> availableTypes,
                                   Long idAudience)
Find a XmlDTO by its id and type

Parameters:
idThemeParent - the id to find
availableTypes - list of types for the resource
idAudience - the id audience
Returns:
the corresponding title

findTitleByIdAndTypesAndAudience

String findTitleByIdAndTypesAndAudience(String siblingFolderId,
                                        List<String> availableTypes,
                                        Long idAudience)
Find the title of a XmlDTO

Parameters:
siblingFolderId - the id to find
availableTypes - list of types for the resource
idAudience - the id audience
Returns:
the corresponding title

findAll

List<XmlDTO> findAll()
Find all XML

Returns:
list of all XML files

insertHowToLinks

Document insertHowToLinks(Long audienceId,
                          DocumentBuilder builder,
                          Document document)
Insert "comment faire" resource in document

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

findIdByXmlAndAudience

Long findIdByXmlAndAudience(String xmlName,
                            Long audienceId)
Find a national card's technical id by it xml name and audience

Parameters:
xmlName - the xmlName
audienceId - the audience id
Returns:
the technical id, null if not found

insertRssLinks

Document insertRssLinks(DocumentBuilder builder,
                        Document document,
                        Locale locale)
Access RSS feeds and get links to display in document

Parameters:
builder - the builder
document - the document
locale - the locale
Returns:
the modified document

findHomeHowTo

XmlDTO findHomeHowTo(Long audienceId)
Find the "How to ..." section for given audience

Parameters:
audienceId - the audienceId
Returns:
XmlDTO for "How to ..." section of given audience


Copyright © 2013 Mairie de Paris. All Rights Reserved.