Package org.silverpeas.core.variables
Class DefaultVariablesRepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.SilverpeasJpaEntityRepository<Variable>
-
- org.silverpeas.core.variables.DefaultVariablesRepository
-
- All Implemented Interfaces:
EntityRepository<Variable>
,VariablesRepository
@Repository @Singleton public class DefaultVariablesRepository extends SilverpeasJpaEntityRepository<Variable> implements VariablesRepository
-
-
Constructor Summary
Constructors Constructor Description DefaultVariablesRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Variable>
getAllCurrentVariables()
Gets all the variables that are currently active.List<Variable>
getAllVariables()
Gets all the variables that are persisted into this repository.-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.SilverpeasJpaEntityRepository
deleteByComponentInstanceId
-
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
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.repository.EntityRepository
contains, delete, delete, deleteByComponentInstanceId, deleteById, deleteById, findByCriteria, flush, getAll, getById, getById, getById, save, save, save
-
-
-
-
Method Detail
-
getAllVariables
public List<Variable> getAllVariables()
Description copied from interface:VariablesRepository
Gets all the variables that are persisted into this repository.- Specified by:
getAllVariables
in interfaceVariablesRepository
- Returns:
- a list of all of the persisted variables.
-
getAllCurrentVariables
public List<Variable> getAllCurrentVariables()
Description copied from interface:VariablesRepository
Gets all the variables that are currently active. An active variable is a variable that have now a scheduled value.- Specified by:
getAllCurrentVariables
in interfaceVariablesRepository
- Returns:
- a list of all of the currently active variables.
-
-