mitreid-connect
公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository クラス
org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository の継承関係図
Inheritance graph
org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository 連携図
Collaboration graph

公開メンバ関数

List< AuthenticationHolderEntitygetAll ()
 
AuthenticationHolderEntity getById (Long id)
 
void remove (AuthenticationHolderEntity a)
 
AuthenticationHolderEntity save (AuthenticationHolderEntity a)
 
List< AuthenticationHolderEntitygetOrphanedAuthenticationHolders ()
 
List< AuthenticationHolderEntitygetOrphanedAuthenticationHolders (PageCriteria pageCriteria)
 

非公開変数類

EntityManager manager
 

静的非公開変数類

static final int MAXEXPIREDRESULTS = 1000
 

詳解

関数詳解

◆ getAll()

List<AuthenticationHolderEntity> org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.getAll ( )
inline

org.mitre.oauth2.repository.AuthenticationHolderRepositoryを実装しています。

44  {
45  TypedQuery<AuthenticationHolderEntity> query = manager.createNamedQuery(AuthenticationHolderEntity.QUERY_ALL, AuthenticationHolderEntity.class);
46  return query.getResultList();
47  }
EntityManager manager
Definition: JpaAuthenticationHolderRepository.java:41

◆ getById()

AuthenticationHolderEntity org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.getById ( Long  id)
inline

org.mitre.oauth2.repository.AuthenticationHolderRepositoryを実装しています。

50  {
51  return manager.find(AuthenticationHolderEntity.class, id);
52  }
EntityManager manager
Definition: JpaAuthenticationHolderRepository.java:41

◆ getOrphanedAuthenticationHolders() [1/2]

List<AuthenticationHolderEntity> org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.getOrphanedAuthenticationHolders ( )
inline

org.mitre.oauth2.repository.AuthenticationHolderRepositoryを実装しています。

73  {
74  DefaultPageCriteria pageCriteria = new DefaultPageCriteria(0,MAXEXPIREDRESULTS);
75  return getOrphanedAuthenticationHolders(pageCriteria);
76  }
static final int MAXEXPIREDRESULTS
Definition: JpaAuthenticationHolderRepository.java:38
List< AuthenticationHolderEntity > getOrphanedAuthenticationHolders()
Definition: JpaAuthenticationHolderRepository.java:73

◆ getOrphanedAuthenticationHolders() [2/2]

List<AuthenticationHolderEntity> org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.getOrphanedAuthenticationHolders ( PageCriteria  pageCriteria)
inline

org.mitre.oauth2.repository.AuthenticationHolderRepositoryを実装しています。

80  {
81  TypedQuery<AuthenticationHolderEntity> query = manager.createNamedQuery(AuthenticationHolderEntity.QUERY_GET_UNUSED, AuthenticationHolderEntity.class);
82  return JpaUtil.getResultPage(query, pageCriteria);
83  }
EntityManager manager
Definition: JpaAuthenticationHolderRepository.java:41

◆ remove()

void org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.remove ( AuthenticationHolderEntity  a)
inline

org.mitre.oauth2.repository.AuthenticationHolderRepositoryを実装しています。

56  {
57  AuthenticationHolderEntity found = getById(a.getId());
58  if (found != null) {
59  manager.remove(found);
60  } else {
61  throw new IllegalArgumentException("AuthenticationHolderEntity not found: " + a);
62  }
63  }
AuthenticationHolderEntity getById(Long id)
Definition: JpaAuthenticationHolderRepository.java:50
EntityManager manager
Definition: JpaAuthenticationHolderRepository.java:41

◆ save()

AuthenticationHolderEntity org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.save ( AuthenticationHolderEntity  a)
inline

org.mitre.oauth2.repository.AuthenticationHolderRepositoryを実装しています。

67  {
68  return JpaUtil.saveOrUpdate(a.getId(), manager, a);
69  }
EntityManager manager
Definition: JpaAuthenticationHolderRepository.java:41

メンバ詳解

◆ manager

EntityManager org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.manager
private

◆ MAXEXPIREDRESULTS

final int org.mitre.oauth2.repository.impl.JpaAuthenticationHolderRepository.MAXEXPIREDRESULTS = 1000
staticprivate

このクラス詳解は次のファイルから抽出されました: