fr.paris.lutece.plugins.userban.service
Interface IAbstractService<K,E>

Type Parameters:
K - the primary key of the bean
E - the bean class
All Known Subinterfaces:
IUserService
All Known Implementing Classes:
AbstractService, UserService

@Transactional
public interface IAbstractService<K,E>

The User interface for service

Author:
jchaline

Method Summary
 void doDeleteBean(K bean)
          Delete user in database
 void doSaveBean(E bean)
          Create or update user in database
 List<E> find(AbstractFilter<K> filter, PaginationProperties paginationProperties)
          Get all the bean matching the filter from dao
 List<E> findAll(PaginationProperties paginationProperties)
          Get all the bean from dao
 E findByPrimaryKey(K key)
          Find an entity by its Id
 

Method Detail

findByPrimaryKey

E findByPrimaryKey(K key)
Find an entity by its Id

Parameters:
key - The entity key
Returns:
The entity object

doSaveBean

void doSaveBean(E bean)
Create or update user in database

Parameters:
bean - the bean to save

doDeleteBean

void doDeleteBean(K bean)
Delete user in database

Parameters:
bean - the bean to delete

findAll

List<E> findAll(PaginationProperties paginationProperties)
Get all the bean from dao

Parameters:
paginationProperties - the pagination properties
Returns:
the bean list

find

List<E> find(AbstractFilter<K> filter,
             PaginationProperties paginationProperties)
Get all the bean matching the filter from dao

Parameters:
filter - the filter
paginationProperties - the pagination properties
Returns:
the bean list


Copyright © 2013 Mairie de Paris. All Rights Reserved.