keycloak-service
公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry クラス
org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry 連携図
Collaboration graph

公開メンバ関数

 ApplicationEntry (List< RoleModel > realmRolesAvailable, MultivaluedHashMap< String, ClientRoleEntry > resourceRolesAvailable, ClientModel client, List< String > clientScopesGranted, List< String > additionalGrants)
 
List< RoleModel > getRealmRolesAvailable ()
 
MultivaluedHashMap< String, ClientRoleEntrygetResourceRolesAvailable ()
 
List< String > getClientScopesGranted ()
 
String getEffectiveUrl ()
 
ClientModel getClient ()
 
List< String > getAdditionalGrants ()
 

非公開メンバ関数

String concatUrls (String u1, String u2)
 
boolean isBaseUrlRelative ()
 

非公開変数類

final List< RoleModel > realmRolesAvailable
 
final MultivaluedHashMap< String, ClientRoleEntryresourceRolesAvailable
 
final ClientModel client
 
final List< String > clientScopesGranted
 
final List< String > additionalGrants
 

詳解

構築子と解体子

◆ ApplicationEntry()

org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.ApplicationEntry ( List< RoleModel >  realmRolesAvailable,
MultivaluedHashMap< String, ClientRoleEntry resourceRolesAvailable,
ClientModel  client,
List< String >  clientScopesGranted,
List< String >  additionalGrants 
)
inline
129  {
132  this.client = client;
135  }
final MultivaluedHashMap< String, ClientRoleEntry > resourceRolesAvailable
Definition: ApplicationsBean.java:123
final List< String > additionalGrants
Definition: ApplicationsBean.java:126
final List< RoleModel > realmRolesAvailable
Definition: ApplicationsBean.java:122
final ClientModel client
Definition: ApplicationsBean.java:124
final List< String > clientScopesGranted
Definition: ApplicationsBean.java:125

関数詳解

◆ concatUrls()

String org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.concatUrls ( String  u1,
String  u2 
)
inlineprivate
175  {
176  if (u1.endsWith("/")) u1 = u1.substring(0, u1.length() - 1);
177  if (u2.startsWith("/")) u2 = u2.substring(1);
178  return u1 + "/" + u2;
179  }

◆ getAdditionalGrants()

List<String> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.getAdditionalGrants ( )
inline
194  {
195  return additionalGrants;
196  }
final List< String > additionalGrants
Definition: ApplicationsBean.java:126

◆ getClient()

ClientModel org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.getClient ( )
inline
190  {
191  return client;
192  }
final ClientModel client
Definition: ApplicationsBean.java:124

◆ getClientScopesGranted()

List<String> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.getClientScopesGranted ( )
inline
145  {
146  return clientScopesGranted;
147  }
final List< String > clientScopesGranted
Definition: ApplicationsBean.java:125

◆ getEffectiveUrl()

String org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.getEffectiveUrl ( )
inline
149  {
150  String rootUrl = getClient().getRootUrl();
151  String baseUrl = getClient().getBaseUrl();
152 
153  if (rootUrl == null) rootUrl = "";
154  if (baseUrl == null) baseUrl = "";
155 
156  if (rootUrl.equals("") && baseUrl.equals("")) {
157  return "";
158  }
159 
160  if (rootUrl.equals("") && !baseUrl.equals("")) {
161  return baseUrl;
162  }
163 
164  if (!rootUrl.equals("") && baseUrl.equals("")) {
165  return rootUrl;
166  }
167 
168  if (isBaseUrlRelative() && !rootUrl.equals("")) {
169  return concatUrls(rootUrl, baseUrl);
170  }
171 
172  return baseUrl;
173  }
ClientModel getClient()
Definition: ApplicationsBean.java:190
boolean isBaseUrlRelative()
Definition: ApplicationsBean.java:181
String concatUrls(String u1, String u2)
Definition: ApplicationsBean.java:175

◆ getRealmRolesAvailable()

List<RoleModel> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.getRealmRolesAvailable ( )
inline
137  {
138  return realmRolesAvailable;
139  }
final List< RoleModel > realmRolesAvailable
Definition: ApplicationsBean.java:122

◆ getResourceRolesAvailable()

MultivaluedHashMap<String, ClientRoleEntry> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.getResourceRolesAvailable ( )
inline
141  {
142  return resourceRolesAvailable;
143  }
final MultivaluedHashMap< String, ClientRoleEntry > resourceRolesAvailable
Definition: ApplicationsBean.java:123

◆ isBaseUrlRelative()

boolean org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.isBaseUrlRelative ( )
inlineprivate
181  {
182  String baseUrl = getClient().getBaseUrl();
183  if (baseUrl.equals("")) return false;
184  if (baseUrl.startsWith("/")) return true;
185  if (baseUrl.startsWith("./")) return true;
186  if (baseUrl.startsWith("../")) return true;
187  return false;
188  }
ClientModel getClient()
Definition: ApplicationsBean.java:190

メンバ詳解

◆ additionalGrants

final List<String> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.additionalGrants
private

◆ client

final ClientModel org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.client
private

◆ clientScopesGranted

final List<String> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.clientScopesGranted
private

◆ realmRolesAvailable

final List<RoleModel> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.realmRolesAvailable
private

◆ resourceRolesAvailable

final MultivaluedHashMap<String, ClientRoleEntry> org.keycloak.forms.account.freemarker.model.ApplicationsBean.ApplicationEntry.resourceRolesAvailable
private

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