fr.paris.lutece.plugins.dila.service.impl
Class DilaLocalCardService

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.service.impl.DilaLocalCardService
All Implemented Interfaces:
IDilaLocalCardService, Serializable

public class DilaLocalCardService
extends Object
implements IDilaLocalCardService, Serializable

Implementation of IDilaLocalCardService

See Also:
Serialized Form

Constructor Summary
DilaLocalCardService()
           
 
Method Summary
 Long create(LocalCardDTO fiche)
          Create a LocalCardDTO
 void delete(Long localCardId)
          Delete a LocalCardDTO
 LocalCardDTO findCardByLocalId(Long idLocal)
          Find a LocalCardDTO by its id local
 Long findCardIdByLocalId(String idLocal)
          Find a card id by its local id
 List<LocalCardDTO> findLocalCardsByParentFolder(String idParent)
          Find all LocalCardDTO attached to parent folder
 Document insertCardLinks(String parentId, DocumentBuilder builder, Document document)
          Insert local links into document
 boolean isCardWithParentId(String idLocal)
          Check if a LocalCardDTO reference the idLocal as parent folder
 void update(LocalCardDTO card)
          Update a LocalCardDTO
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DilaLocalCardService

public DilaLocalCardService()
Method Detail

create

public Long create(LocalCardDTO fiche)
Description copied from interface: IDilaLocalCardService
Create a LocalCardDTO

Specified by:
create in interface IDilaLocalCardService
Parameters:
fiche - the LocalCardDTO to create
Returns:
the id of new card

findCardIdByLocalId

public Long findCardIdByLocalId(String idLocal)
Description copied from interface: IDilaLocalCardService
Find a card id by its local id

Specified by:
findCardIdByLocalId in interface IDilaLocalCardService
Parameters:
idLocal - the id find
Returns:
the corresponding id

delete

public void delete(Long localCardId)
Description copied from interface: IDilaLocalCardService
Delete a LocalCardDTO

Specified by:
delete in interface IDilaLocalCardService
Parameters:
localCardId - the id to delete

findCardByLocalId

public LocalCardDTO findCardByLocalId(Long idLocal)
Description copied from interface: IDilaLocalCardService
Find a LocalCardDTO by its id local

Specified by:
findCardByLocalId in interface IDilaLocalCardService
Parameters:
idLocal - the id to find
Returns:
the corresponding LocalCardDTO

update

public void update(LocalCardDTO card)
Description copied from interface: IDilaLocalCardService
Update a LocalCardDTO

Specified by:
update in interface IDilaLocalCardService
Parameters:
card - the card to update

isCardWithParentId

public boolean isCardWithParentId(String idLocal)
Description copied from interface: IDilaLocalCardService
Check if a LocalCardDTO reference the idLocal as parent folder

Specified by:
isCardWithParentId in interface IDilaLocalCardService
Parameters:
idLocal - the id to check
Returns:
true if at least one fiche exists, false otherwise

insertCardLinks

public Document insertCardLinks(String parentId,
                                DocumentBuilder builder,
                                Document document)
Description copied from interface: IDilaLocalCardService
Insert local links into document

Specified by:
insertCardLinks in interface IDilaLocalCardService
Parameters:
parentId - the parent id
builder - the builder to use
document - the document to complete
Returns:
the document with links

findLocalCardsByParentFolder

public List<LocalCardDTO> findLocalCardsByParentFolder(String idParent)
Description copied from interface: IDilaLocalCardService
Find all LocalCardDTO attached to parent folder

Specified by:
findLocalCardsByParentFolder in interface IDilaLocalCardService
Parameters:
idParent - the parent folder id
Returns:
the attached local cards


Copyright © 2014 Mairie de Paris. All Rights Reserved.