Class PersistentResourceTokenJPARepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<PersistentResourceToken>
-
- org.silverpeas.core.security.token.persistent.repository.PersistentResourceTokenJPARepository
-
- All Implemented Interfaces:
EntityRepository<PersistentResourceToken>
,WithSaveAndFlush<PersistentResourceToken>
,PersistentResourceTokenRepository
@Repository @Singleton public class PersistentResourceTokenJPARepository extends BasicJpaEntityRepository<PersistentResourceToken> implements PersistentResourceTokenRepository
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description PersistentResourceTokenJPARepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistentResourceToken
getByToken(String token)
PersistentResourceToken
getByTypeAndResourceId(String type, String resourceId)
-
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
-
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
-
getByTypeAndResourceId
public PersistentResourceToken getByTypeAndResourceId(String type, String resourceId)
- Specified by:
getByTypeAndResourceId
in interfacePersistentResourceTokenRepository
-
getByToken
public PersistentResourceToken getByToken(String token)
- Specified by:
getByToken
in interfacePersistentResourceTokenRepository
-
-