gluu
公開メンバ関数 | 静的非公開変数類 | 全メンバ一覧
org.xdi.oxauth.service.external.ExternalApplicationSessionService クラス
org.xdi.oxauth.service.external.ExternalApplicationSessionService の継承関係図
Inheritance graph
org.xdi.oxauth.service.external.ExternalApplicationSessionService 連携図
Collaboration graph

公開メンバ関数

 ExternalApplicationSessionService ()
 
boolean executeExternalStartSessionMethod (CustomScriptConfiguration customScriptConfiguration, HttpServletRequest httpRequest, SessionId sessionId)
 
boolean executeExternalStartSessionMethods (HttpServletRequest httpRequest, SessionId sessionId)
 
boolean executeExternalEndSessionMethod (CustomScriptConfiguration customScriptConfiguration, HttpServletRequest httpRequest, SessionId sessionId)
 
boolean executeExternalEndSessionMethods (HttpServletRequest httpRequest, SessionId sessionId)
 

静的非公開変数類

static final long serialVersionUID = 2316361273036208685L
 

詳解

Provides factory methods needed to create external application session extension

著者
Yuriy Movchan
バージョン
August 9, 2017

構築子と解体子

◆ ExternalApplicationSessionService()

org.xdi.oxauth.service.external.ExternalApplicationSessionService.ExternalApplicationSessionService ( )
inline
36  {
37  super(CustomScriptType.APPLICATION_SESSION);
38  }

関数詳解

◆ executeExternalEndSessionMethod()

boolean org.xdi.oxauth.service.external.ExternalApplicationSessionService.executeExternalEndSessionMethod ( CustomScriptConfiguration  customScriptConfiguration,
HttpServletRequest  httpRequest,
SessionId  sessionId 
)
inline
68  {
69  try {
70  log.debug("Executing python 'endSession' method");
71  ApplicationSessionType applicationSessionType = (ApplicationSessionType) customScriptConfiguration.getExternalType();
72  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
73  return applicationSessionType.endSession(httpRequest, sessionId, configurationAttributes);
74  } catch (Exception ex) {
75  log.error(ex.getMessage(), ex);
76  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
77  }
78 
79  return false;
80  }

◆ executeExternalEndSessionMethods()

boolean org.xdi.oxauth.service.external.ExternalApplicationSessionService.executeExternalEndSessionMethods ( HttpServletRequest  httpRequest,
SessionId  sessionId 
)
inline
82  {
83  boolean result = true;
84  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
85  result &= executeExternalEndSessionMethod(customScriptConfiguration, httpRequest, sessionId);
86  if (!result) {
87  return result;
88  }
89  }
90 
91  return result;
92  }
boolean executeExternalEndSessionMethod(CustomScriptConfiguration customScriptConfiguration, HttpServletRequest httpRequest, SessionId sessionId)
Definition: ExternalApplicationSessionService.java:68

◆ executeExternalStartSessionMethod()

boolean org.xdi.oxauth.service.external.ExternalApplicationSessionService.executeExternalStartSessionMethod ( CustomScriptConfiguration  customScriptConfiguration,
HttpServletRequest  httpRequest,
SessionId  sessionId 
)
inline
40  {
41  try {
42  log.debug("Executing python 'startSession' method");
43  ApplicationSessionType applicationSessionType = (ApplicationSessionType) customScriptConfiguration.getExternalType();
44  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
45  return applicationSessionType.startSession(httpRequest, sessionId, configurationAttributes);
46  } catch (Exception ex) {
47  log.error(ex.getMessage(), ex);
48  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
49  }
50 
51  return false;
52  }

◆ executeExternalStartSessionMethods()

boolean org.xdi.oxauth.service.external.ExternalApplicationSessionService.executeExternalStartSessionMethods ( HttpServletRequest  httpRequest,
SessionId  sessionId 
)
inline
54  {
55  boolean result = true;
56  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
57  if (customScriptConfiguration.getExternalType().getApiVersion() > 1) {
58  result &= executeExternalStartSessionMethod(customScriptConfiguration, httpRequest, sessionId);
59  if (!result) {
60  return result;
61  }
62  }
63  }
64 
65  return result;
66  }
boolean executeExternalStartSessionMethod(CustomScriptConfiguration customScriptConfiguration, HttpServletRequest httpRequest, SessionId sessionId)
Definition: ExternalApplicationSessionService.java:40

メンバ詳解

◆ serialVersionUID

final long org.xdi.oxauth.service.external.ExternalApplicationSessionService.serialVersionUID = 2316361273036208685L
staticprivate

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