fr.paris.lutece.plugins.mylutece.modules.notification.service.folder
Class FolderService

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.notification.service.folder.FolderService

public final class FolderService
extends java.lang.Object

FolderService


Method Summary
 int create(IFolder folder)
          Create a folder
 java.util.List<IFolder> findAll(java.util.Locale locale)
          Find all folders
 IFolder findByPrimaryKey(int nIdFolder, java.util.Locale locale)
          Find the notification by its primary key
 java.util.List<IFolder> findByUserGuid(java.lang.String strUserGuid, java.util.Locale locale)
          Find the folders associated to the user guid
 java.util.List<FolderType> getFolderTypes(java.util.Locale locale)
          Get the list of folder types
static FolderService getService()
          Get the instance of FolderService
 void remove(int nIdFolder)
          Remove the folder
 void update(IFolder folder)
          Update the folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static FolderService getService()
Get the instance of FolderService

Returns:
the instance of FolderService

findByPrimaryKey

public IFolder findByPrimaryKey(int nIdFolder,
                                java.util.Locale locale)
Find the notification by its primary key

Parameters:
nIdFolder - the id notification
locale - the Locale
Returns:
a IFolder

create

public int create(IFolder folder)
Create a folder

Parameters:
folder - the folder
Returns:
the newly created notification id

update

public void update(IFolder folder)
Update the folder

Parameters:
folder - the folder

remove

public void remove(int nIdFolder)
Remove the folder

Parameters:
nIdFolder - the id folder

findAll

public java.util.List<IFolder> findAll(java.util.Locale locale)
Find all folders

Parameters:
locale - the Locale
Returns:
a list of IFolder

findByUserGuid

public java.util.List<IFolder> findByUserGuid(java.lang.String strUserGuid,
                                              java.util.Locale locale)
Find the folders associated to the user guid

Parameters:
strUserGuid - the user guid
locale - Locale
Returns:
a list of IFolder

getFolderTypes

public java.util.List<FolderType> getFolderTypes(java.util.Locale locale)
Get the list of folder types

Parameters:
locale - the Locale
Returns:
a list of FolderType


Copyright © 2011 Mairie de Paris. All Rights Reserved.