keycloak
公開メンバ関数 | 静的公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.authorization.jpa.store.ScopeAdapter クラス
org.keycloak.authorization.jpa.store.ScopeAdapter の継承関係図
Inheritance graph
org.keycloak.authorization.jpa.store.ScopeAdapter 連携図
Collaboration graph

公開メンバ関数

 ScopeAdapter (ScopeEntity entity, EntityManager em, StoreFactory storeFactory)
 
ScopeEntity getEntity ()
 
String getId ()
 
String getName ()
 
void setName (String name)
 
String getDisplayName ()
 
void setDisplayName (String name)
 
String getIconUri ()
 
void setIconUri (String iconUri)
 
ResourceServer getResourceServer ()
 
boolean equals (Object o)
 
int hashCode ()
 

静的公開メンバ関数

static ScopeEntity toEntity (EntityManager em, Scope scope)
 

非公開変数類

ScopeEntity entity
 
EntityManager em
 
StoreFactory storeFactory
 

詳解

著者
Bill Burke
バージョン
Revision
1

構築子と解体子

◆ ScopeAdapter()

org.keycloak.authorization.jpa.store.ScopeAdapter.ScopeAdapter ( ScopeEntity  entity,
EntityManager  em,
StoreFactory  storeFactory 
)
inline
36  {
37  this.entity = entity;
38  this.em = em;
40  }
EntityManager em
Definition: ScopeAdapter.java:33
ScopeEntity entity
Definition: ScopeAdapter.java:32
StoreFactory storeFactory
Definition: ScopeAdapter.java:34

関数詳解

◆ equals()

boolean org.keycloak.authorization.jpa.store.ScopeAdapter.equals ( Object  o)
inline
98  {
99  if (this == o) return true;
100  if (o == null || !(o instanceof Scope)) return false;
101 
102  Scope that = (Scope) o;
103  return that.getId().equals(getId());
104  }
String getId()
Definition: ScopeAdapter.java:48

◆ getDisplayName()

String org.keycloak.authorization.jpa.store.ScopeAdapter.getDisplayName ( )
inline

org.keycloak.authorization.model.Scopeを実装しています。

64  {
65  return entity.getDisplayName();
66  }
ScopeEntity entity
Definition: ScopeAdapter.java:32
String getDisplayName()
Definition: ScopeEntity.java:100

◆ getEntity()

ScopeEntity org.keycloak.authorization.jpa.store.ScopeAdapter.getEntity ( )
inline

org.keycloak.models.jpa.JpaModel< T >を実装しています。

43  {
44  return entity;
45  }
ScopeEntity entity
Definition: ScopeAdapter.java:32

◆ getIconUri()

String org.keycloak.authorization.jpa.store.ScopeAdapter.getIconUri ( )
inline

org.keycloak.authorization.model.Scopeを実装しています。

74  {
75  return entity.getIconUri();
76  }
String getIconUri()
Definition: ScopeEntity.java:104
ScopeEntity entity
Definition: ScopeAdapter.java:32

◆ getId()

String org.keycloak.authorization.jpa.store.ScopeAdapter.getId ( )
inline

org.keycloak.authorization.model.Scopeを実装しています。

48  {
49  return entity.getId();
50  }
ScopeEntity entity
Definition: ScopeAdapter.java:32
String getId()
Definition: ScopeEntity.java:76

◆ getName()

String org.keycloak.authorization.jpa.store.ScopeAdapter.getName ( )
inline

org.keycloak.authorization.model.Scopeを実装しています。

53  {
54  return entity.getName();
55  }
String getName()
Definition: ScopeEntity.java:84
ScopeEntity entity
Definition: ScopeAdapter.java:32

◆ getResourceServer()

ResourceServer org.keycloak.authorization.jpa.store.ScopeAdapter.getResourceServer ( )
inline

org.keycloak.authorization.model.Scopeを実装しています。

85  {
87  }
ScopeEntity entity
Definition: ScopeAdapter.java:32
ResourceServerEntity getResourceServer()
Definition: ScopeEntity.java:112
String getId()
Definition: ResourceServerEntity.java:45
StoreFactory storeFactory
Definition: ScopeAdapter.java:34

◆ hashCode()

int org.keycloak.authorization.jpa.store.ScopeAdapter.hashCode ( )
inline
107  {
108  return getId().hashCode();
109  }
String getId()
Definition: ScopeAdapter.java:48

◆ setDisplayName()

void org.keycloak.authorization.jpa.store.ScopeAdapter.setDisplayName ( String  name)
inline

org.keycloak.authorization.model.Scopeを実装しています。

69  {
70  entity.setDisplayName(name);
71  }
ScopeEntity entity
Definition: ScopeAdapter.java:32
void setDisplayName(String displayName)
Definition: ScopeEntity.java:92

◆ setIconUri()

void org.keycloak.authorization.jpa.store.ScopeAdapter.setIconUri ( String  iconUri)
inline

org.keycloak.authorization.model.Scopeを実装しています。

79  {
80  entity.setIconUri(iconUri);
81 
82  }
ScopeEntity entity
Definition: ScopeAdapter.java:32
void setIconUri(String iconUri)
Definition: ScopeEntity.java:108

◆ setName()

void org.keycloak.authorization.jpa.store.ScopeAdapter.setName ( String  name)
inline

org.keycloak.authorization.model.Scopeを実装しています。

58  {
59  entity.setName(name);
60 
61  }
ScopeEntity entity
Definition: ScopeAdapter.java:32
void setName(String name)
Definition: ScopeEntity.java:88

◆ toEntity()

static ScopeEntity org.keycloak.authorization.jpa.store.ScopeAdapter.toEntity ( EntityManager  em,
Scope  scope 
)
inlinestatic
89  {
90  if (scope instanceof ScopeAdapter) {
91  return ((ScopeAdapter)scope).getEntity();
92  } else {
93  return em.getReference(ScopeEntity.class, scope.getId());
94  }
95  }
ScopeAdapter(ScopeEntity entity, EntityManager em, StoreFactory storeFactory)
Definition: ScopeAdapter.java:36
EntityManager em
Definition: ScopeAdapter.java:33

メンバ詳解

◆ em

EntityManager org.keycloak.authorization.jpa.store.ScopeAdapter.em
private

◆ entity

ScopeEntity org.keycloak.authorization.jpa.store.ScopeAdapter.entity
private

◆ storeFactory

StoreFactory org.keycloak.authorization.jpa.store.ScopeAdapter.storeFactory
private

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