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

All Known Implementing Classes:
DilaLocalCardService

public interface IDilaLocalCardService

Interface For LocalCardDTO


Method Summary
 Long create(LocalCardDTO card)
          Create a LocalCardDTO
 void delete(Long localCardId)
          Delete a LocalCardDTO
 LocalCardDTO findCardByLocalId(Long localId)
          Find a LocalCardDTO by its id local
 Long findCardIdByLocalId(String localId)
          Find a card id by its local id
 List<LocalCardDTO> findLocalCardsByParentFolder(String parentId)
          Find all LocalCardDTO attached to parent folder
 Document insertCardLinks(String parentId, DocumentBuilder builder, Document document)
          Insert local links into document
 boolean isCardWithParentId(String localId)
          Check if a LocalCardDTO reference the idLocal as parent folder
 void update(LocalCardDTO card)
          Update a LocalCardDTO
 

Method Detail

create

Long create(LocalCardDTO card)
Create a LocalCardDTO

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

findCardIdByLocalId

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

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

delete

void delete(Long localCardId)
Delete a LocalCardDTO

Parameters:
localCardId - the id to delete

findCardByLocalId

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

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

update

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

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

insertCardLinks

Document insertCardLinks(String parentId,
                         DocumentBuilder builder,
                         Document document)
Insert local links into document

Parameters:
parentId - the parent id
builder - the builder to use
document - the document to complete
Returns:
the document with links

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.