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

All Known Implementing Classes:
DilaLocalFolderService

public interface IDilaLocalFolderService

Interface service for LocalFolderDTO


Method Summary
 Long create(LocalFolderDTO folder)
          Create a LocalFolderDTO
 void delete(Long localFolderId)
          Delete a LocalFolderDTO
 LocalFolderDTO findFolderByLocalId(Long localId)
          Find a LocalFolderDTO by its local id
 Long findFolderIdByLocalId(String localId)
          Find folde id by its local id
 List<LocalFolderDTO> findLocalFoldersByParentTheme(String idParent)
          Find all LocalFolderDTO attached to parent folder
 Document insertFolderLinks(String parentId, DocumentBuilder builder, Document document)
          Insert local folders links into document
 void update(LocalFolderDTO folder)
          Update a LocalFolderDTO
 

Method Detail

create

Long create(LocalFolderDTO folder)
Create a LocalFolderDTO

Parameters:
folder - the folder to create
Returns:
the id of new LocalFolderDTO

findFolderIdByLocalId

Long findFolderIdByLocalId(String localId)
Find folde id by its local id

Parameters:
localId - the local id to find
Returns:
the id of corresponding LocalFolderDTO

delete

void delete(Long localFolderId)
Delete a LocalFolderDTO

Parameters:
localFolderId - the id to delete

findFolderByLocalId

LocalFolderDTO findFolderByLocalId(Long localId)
Find a LocalFolderDTO by its local id

Parameters:
localId - the local id to find
Returns:
the corresponding local folder

update

void update(LocalFolderDTO folder)
Update a LocalFolderDTO

Parameters:
folder - the LocalFolderDTO to update

insertFolderLinks

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

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

findLocalFoldersByParentTheme

List<LocalFolderDTO> findLocalFoldersByParentTheme(String idParent)
Find all LocalFolderDTO attached to parent folder

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


Copyright © 2013 Mairie de Paris. All Rights Reserved.