Class ReservationJpaManager
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Reservation>
-
- org.silverpeas.components.resourcesmanager.repository.ReservationJpaManager
-
- All Implemented Interfaces:
ReservationRepository
,org.silverpeas.core.persistence.datasource.repository.EntityRepository<Reservation>
,org.silverpeas.core.persistence.datasource.repository.WithSaveAndFlush<Reservation>
@Repository public class ReservationJpaManager extends org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Reservation> implements ReservationRepository
- Author:
- ebonnet
-
-
Constructor Summary
Constructors Constructor Description ReservationJpaManager()
-
Method Summary
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository
deleteByComponentInstanceId, saveAndFlush
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository
contains, countByCriteria, countFromJpqlString, delete, deleteById, deleteFromJpqlQuery, deleteFromNamedQuery, findByCriteria, findByNamedQuery, findFirstByNamedQuery, flush, getAll, getById, getById, getEntityClass, getEntityManager, getFromJpqlString, getFromJpqlString, getFromNamedQuery, getFromNamedQuery, getIdentifierConverter, getMaximumItemsInClause, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromNamedQuery, listFromNamedQuery, newNamedParameters, noParameter, save, setMaximumItemsInClause, split, streamByNamedQuery, streamByNamedQuery, streamFromJpqlString, streamFromJpqlString, updateFromJpqlQuery, updateFromNamedQuery
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
findAllReservationsInRange
public List<Reservation> findAllReservationsInRange(String instanceId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsInRange
in interfaceReservationRepository
-
findAllReservationsForUserInRange
public List<Reservation> findAllReservationsForUserInRange(String instanceId, Integer userId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsForUserInRange
in interfaceReservationRepository
-
findAllReservationsForUser
public List<Reservation> findAllReservationsForUser(String instanceId, Integer userId)
- Specified by:
findAllReservationsForUser
in interfaceReservationRepository
-
findAllReservationsForValidation
public List<Reservation> findAllReservationsForValidation(String instanceId, Long managerId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsForValidation
in interfaceReservationRepository
-
findAllReservationsNotRefusedForResourceInRange
public List<Reservation> findAllReservationsNotRefusedForResourceInRange(Long resourceId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsNotRefusedForResourceInRange
in interfaceReservationRepository
-
findAllReservationsForCategoryInRange
public List<Reservation> findAllReservationsForCategoryInRange(String instanceId, Long categoryId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsForCategoryInRange
in interfaceReservationRepository
-
findAllReservationsForUserAndCategoryInRange
public List<Reservation> findAllReservationsForUserAndCategoryInRange(String instanceId, Integer userId, Long categoryId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsForUserAndCategoryInRange
in interfaceReservationRepository
-
findAllReservationsForResourceInRange
public List<Reservation> findAllReservationsForResourceInRange(String instanceId, Long resourceId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsForResourceInRange
in interfaceReservationRepository
-
findAllReservationsForUserAndResourceInRange
public List<Reservation> findAllReservationsForUserAndResourceInRange(String instanceId, Integer userId, Long resourceId, String startPeriod, String endPeriod)
- Specified by:
findAllReservationsForUserAndResourceInRange
in interfaceReservationRepository
-
findAllReservations
public List<Reservation> findAllReservations(String instanceId)
- Specified by:
findAllReservations
in interfaceReservationRepository
-
-