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

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

public class DilaLocalFolderService
extends Object
implements IDilaLocalFolderService, Serializable

Implementation of IDilaLocalFolderService

See Also:
Serialized Form

Constructor Summary
DilaLocalFolderService()
           
 
Method Summary
 Long create(LocalFolderDTO dossier)
          Create a LocalFolderDTO
 void delete(Long localFolderId)
          Delete a LocalFolderDTO
 LocalFolderDTO findFolderByLocalId(Long idLocal)
          Find a LocalFolderDTO by its local id
 Long findFolderIdByLocalId(String idLocal)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DilaLocalFolderService

public DilaLocalFolderService()
Method Detail

create

public Long create(LocalFolderDTO dossier)
Create a LocalFolderDTO

Specified by:
create in interface IDilaLocalFolderService
Parameters:
dossier - the folder to create
Returns:
the id of new LocalFolderDTO

findFolderIdByLocalId

public Long findFolderIdByLocalId(String idLocal)
Find folde id by its local id

Specified by:
findFolderIdByLocalId in interface IDilaLocalFolderService
Parameters:
idLocal - the local id to find
Returns:
the id of corresponding LocalFolderDTO

delete

public void delete(Long localFolderId)
Delete a LocalFolderDTO

Specified by:
delete in interface IDilaLocalFolderService
Parameters:
localFolderId - the id to delete

findFolderByLocalId

public LocalFolderDTO findFolderByLocalId(Long idLocal)
Find a LocalFolderDTO by its local id

Specified by:
findFolderByLocalId in interface IDilaLocalFolderService
Parameters:
idLocal - the local id to find
Returns:
the corresponding local folder

update

public void update(LocalFolderDTO folder)
Update a LocalFolderDTO

Specified by:
update in interface IDilaLocalFolderService
Parameters:
folder - the LocalFolderDTO to update

insertFolderLinks

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

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

findLocalFoldersByParentTheme

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

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


Copyright © 2013 Mairie de Paris. All Rights Reserved.