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

All Known Implementing Classes:
LocalCardDAO

public interface ILocalCardDAO

DAO for LocalCardDTO


Method Summary
 void delete(Long localCardId)
          Delete a card
 LocalCardDTO findCardByLocalId(Long localId)
          Find a LocalCardDTO by its id local
 Long findCardIdByLocalId(String localId)
          Find a LocalCardDTO id by its local id
 List<LocalCardDTO> findLocalCardsByParentFolder(String parentId)
          Find all LocalCardDTO attached to parent folder
 Long insert(LocalCardDTO card)
          Create a LocalCardDTO
 boolean isCardWithParentId(String localId)
          Check if a LocalCardDTO reference the idLocal as parent dossier
 void store(LocalCardDTO card)
          Update a LocalCardDTO
 

Method Detail

insert

Long insert(LocalCardDTO card)
Create a LocalCardDTO

Parameters:
card - the card to create
Returns:
the id of new card

findCardIdByLocalId

Long findCardIdByLocalId(String localId)
Find a LocalCardDTO id by its local id

Parameters:
localId - the id to find
Returns:
the id of corresponding LocalCardDTO

delete

void delete(Long localCardId)
Delete a card

Parameters:
localCardId - the id of card to delete

findCardByLocalId

LocalCardDTO findCardByLocalId(Long localId)
Find a LocalCardDTO by its id local

Parameters:
localId - the id to find
Returns:
the corresponding LocalCardDTO

store

void store(LocalCardDTO card)
Update a LocalCardDTO

Parameters:
card - the card to update

isCardWithParentId

boolean isCardWithParentId(String localId)
Check if a LocalCardDTO reference the idLocal as parent dossier

Parameters:
localId - the id to check
Returns:
true if at least one card exists, false otherwise

findLocalCardsByParentFolder

List<LocalCardDTO> findLocalCardsByParentFolder(String parentId)
Find all LocalCardDTO attached to parent folder

Parameters:
parentId - the parent folder id
Returns:
the attached local cards


Copyright © 2014 Mairie de Paris. All Rights Reserved.