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

All Known Implementing Classes:
XmlDAO

public interface IXmlDAO

DAO for XmlDTO


Method Summary
 void create(XmlDTO dilaXml)
          Create a XmlDTO
 void delete()
          Delete old files
 List<XmlDTO> findAll()
          Find all XML
 XmlDTO findByIdAndTypesAndAudience(String parentThemeId, List<String> availableTypes, Long audienceId)
          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
 List<XmlDTO> findHowToByAudience(Long audienceId)
          Find all "Comment faire si" resources for audience
 Long findIdByXmlAndAudience(String xmlName, Long audienceId)
          Find a national card's technical id by its 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
 void store(XmlDTO dilaXml)
          Update a XmlDTO
 

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 resource type

findByIdAndTypesAndAudience

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

Parameters:
parentThemeId - the id to find
availableTypes - list of types for the resource
audienceId - 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

findHowToByAudience

List<XmlDTO> findHowToByAudience(Long audienceId)
Find all "Comment faire si" resources for audience

Parameters:
audienceId - the audience to check
Returns:
the list of corresponding XmlDTO

findIdByXmlAndAudience

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

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

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

create

void create(XmlDTO dilaXml)
Create a XmlDTO

Parameters:
dilaXml - the xml to create

store

void store(XmlDTO dilaXml)
Update a XmlDTO

Parameters:
dilaXml - the xml to store

delete

void delete()
Delete old files



Copyright © 2013 Mairie de Paris. All Rights Reserved.