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

公開メンバ関数

 ExternalUpdateUserService ()
 
boolean executeExternalAddUserMethod (CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted)
 
boolean executeExternalAddUserMethods (GluuCustomPerson user)
 
boolean executeExternalPostAddUserMethod (CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
 
boolean executeExternalPostAddUserMethods (GluuCustomPerson user)
 
boolean executeExternalUpdateUserMethod (CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted)
 
boolean executeExternalUpdateUserMethods (GluuCustomPerson user)
 
boolean executeExternalPostUpdateUserMethod (CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
 
boolean executeExternalPostUpdateUserMethods (GluuCustomPerson user)
 
boolean executeExternalNewUserMethod (CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
 
boolean executeExternalNewUserMethods (GluuCustomPerson user)
 
boolean executeExternalDeleteUserMethod (CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted)
 
boolean executeExternalDeleteUserMethods (GluuCustomPerson user)
 
boolean executeExternalPostDeleteUserMethod (CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
 
boolean executeExternalPostDeleteUserMethods (GluuCustomPerson user)
 
int executeExternalGetApiVersion (CustomScriptConfiguration customScriptConfiguration)
 

静的非公開変数類

static final long serialVersionUID = 1416361273036208685L
 

詳解

Provides factory methods needed to create external dynamic client registration extension

著者
Yuriy Movchan Date: 01/08/2015

構築子と解体子

◆ ExternalUpdateUserService()

org.gluu.oxtrust.service.external.ExternalUpdateUserService.ExternalUpdateUserService ( )
inline
32  {
33  super(CustomScriptType.UPDATE_USER);
34  }

関数詳解

◆ executeExternalAddUserMethod()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalAddUserMethod ( CustomScriptConfiguration  customScriptConfiguration,
GluuCustomPerson  user,
boolean  persisted 
)
inline
36  {
37  try {
38  log.debug("Executing python 'addUser' method");
39  UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
40  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
41  return externalType.addUser(user, persisted, configurationAttributes);
42  } catch (Exception ex) {
43  log.error(ex.getMessage(), ex);
44  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
45  }
46 
47  return false;
48  }

◆ executeExternalAddUserMethods()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalAddUserMethods ( GluuCustomPerson  user)
inline
50  {
51  boolean result = true;
52  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
53  result &= executeExternalAddUserMethod(customScriptConfiguration, user, true);
54  if (!result) {
55  return result;
56  }
57  }
58 
59  return result;
60  }
boolean executeExternalAddUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted)
Definition: ExternalUpdateUserService.java:36

◆ executeExternalDeleteUserMethod()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalDeleteUserMethod ( CustomScriptConfiguration  customScriptConfiguration,
GluuCustomPerson  user,
boolean  persisted 
)
inline
176  {
177  try {
178  log.debug("Executing python 'addUser' method");
179  UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
180  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
181  return externalType.deleteUser(user, persisted, configurationAttributes);
182  } catch (Exception ex) {
183  log.error(ex.getMessage(), ex);
184  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
185  }
186 
187  return false;
188  }

◆ executeExternalDeleteUserMethods()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalDeleteUserMethods ( GluuCustomPerson  user)
inline
190  {
191  boolean result = true;
192  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
193  result &= executeExternalDeleteUserMethod(customScriptConfiguration, user, true);
194  if (!result) {
195  return result;
196  }
197  }
198 
199  return result;
200  }
boolean executeExternalDeleteUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted)
Definition: ExternalUpdateUserService.java:176

◆ executeExternalGetApiVersion()

int org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalGetApiVersion ( CustomScriptConfiguration  customScriptConfiguration)
inline
233  {
234  try {
235  log.debug("Executing python 'getApiVersion' method");
236  UpdateUserType externalAuthenticator = (UpdateUserType) customScriptConfiguration.getExternalType();
237  return externalAuthenticator.getApiVersion();
238  } catch (Exception ex) {
239  log.error(ex.getMessage(), ex);
240  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
241  }
242 
243  return -1;
244  }

◆ executeExternalNewUserMethod()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalNewUserMethod ( CustomScriptConfiguration  customScriptConfiguration,
GluuCustomPerson  user 
)
inline
150  {
151  try {
152  log.debug("Executing python 'newUser' method");
153  UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
154  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
155  return externalType.newUser(user, configurationAttributes);
156  } catch (Exception ex) {
157  log.error(ex.getMessage(), ex);
158  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
159  }
160 
161  return false;
162  }

◆ executeExternalNewUserMethods()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalNewUserMethods ( GluuCustomPerson  user)
inline
164  {
165  boolean result = true;
166  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
167  result &= executeExternalNewUserMethod(customScriptConfiguration, user);
168  if (!result) {
169  return result;
170  }
171  }
172 
173  return result;
174  }
boolean executeExternalNewUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
Definition: ExternalUpdateUserService.java:150

◆ executeExternalPostAddUserMethod()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalPostAddUserMethod ( CustomScriptConfiguration  customScriptConfiguration,
GluuCustomPerson  user 
)
inline
62  {
63  int apiVersion = executeExternalGetApiVersion(customScriptConfiguration);
64  if (apiVersion < 2) {
65  return true;
66  }
67 
68  try {
69  log.debug("Executing python 'postAddUser' method");
70  UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
71  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
72  return externalType.postAddUser(user, configurationAttributes);
73  } catch (Exception ex) {
74  log.error(ex.getMessage(), ex);
75  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
76  }
77 
78  return false;
79  }
int executeExternalGetApiVersion(CustomScriptConfiguration customScriptConfiguration)
Definition: ExternalUpdateUserService.java:233

◆ executeExternalPostAddUserMethods()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalPostAddUserMethods ( GluuCustomPerson  user)
inline
81  {
82  boolean result = true;
83  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
84  result &= executeExternalPostAddUserMethod(customScriptConfiguration, user);
85  if (!result) {
86  return result;
87  }
88  }
89 
90  return result;
91  }
boolean executeExternalPostAddUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
Definition: ExternalUpdateUserService.java:62

◆ executeExternalPostDeleteUserMethod()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalPostDeleteUserMethod ( CustomScriptConfiguration  customScriptConfiguration,
GluuCustomPerson  user 
)
inline
202  {
203  int apiVersion = executeExternalGetApiVersion(customScriptConfiguration);
204  if (apiVersion < 2) {
205  return true;
206  }
207 
208  try {
209  log.debug("Executing python 'postAddUser' method");
210  UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
211  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
212  return externalType.postDeleteUser(user, configurationAttributes);
213  } catch (Exception ex) {
214  log.error(ex.getMessage(), ex);
215  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
216  }
217 
218  return false;
219  }
int executeExternalGetApiVersion(CustomScriptConfiguration customScriptConfiguration)
Definition: ExternalUpdateUserService.java:233

◆ executeExternalPostDeleteUserMethods()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalPostDeleteUserMethods ( GluuCustomPerson  user)
inline
221  {
222  boolean result = true;
223  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
224  result &= executeExternalPostDeleteUserMethod(customScriptConfiguration, user);
225  if (!result) {
226  return result;
227  }
228  }
229 
230  return result;
231  }
boolean executeExternalPostDeleteUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
Definition: ExternalUpdateUserService.java:202

◆ executeExternalPostUpdateUserMethod()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalPostUpdateUserMethod ( CustomScriptConfiguration  customScriptConfiguration,
GluuCustomPerson  user 
)
inline
119  {
120  int apiVersion = executeExternalGetApiVersion(customScriptConfiguration);
121  if (apiVersion < 2) {
122  return true;
123  }
124 
125  try {
126  log.debug("Executing python 'postUpdateUser' method");
127  UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
128  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
129  return externalType.postUpdateUser(user, configurationAttributes);
130  } catch (Exception ex) {
131  log.error(ex.getMessage(), ex);
132  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
133  }
134 
135  return false;
136  }
int executeExternalGetApiVersion(CustomScriptConfiguration customScriptConfiguration)
Definition: ExternalUpdateUserService.java:233

◆ executeExternalPostUpdateUserMethods()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalPostUpdateUserMethods ( GluuCustomPerson  user)
inline
138  {
139  boolean result = true;
140  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
141  result &= executeExternalPostUpdateUserMethod(customScriptConfiguration, user);
142  if (!result) {
143  return result;
144  }
145  }
146 
147  return result;
148  }
boolean executeExternalPostUpdateUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user)
Definition: ExternalUpdateUserService.java:119

◆ executeExternalUpdateUserMethod()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalUpdateUserMethod ( CustomScriptConfiguration  customScriptConfiguration,
GluuCustomPerson  user,
boolean  persisted 
)
inline
93  {
94  try {
95  log.debug("Executing python 'updateUser' method");
96  UpdateUserType externalType = (UpdateUserType) customScriptConfiguration.getExternalType();
97  Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
98  return externalType.updateUser(user, persisted, configurationAttributes);
99  } catch (Exception ex) {
100  log.error(ex.getMessage(), ex);
101  saveScriptError(customScriptConfiguration.getCustomScript(), ex);
102  }
103 
104  return false;
105  }

◆ executeExternalUpdateUserMethods()

boolean org.gluu.oxtrust.service.external.ExternalUpdateUserService.executeExternalUpdateUserMethods ( GluuCustomPerson  user)
inline
107  {
108  boolean result = true;
109  for (CustomScriptConfiguration customScriptConfiguration : this.customScriptConfigurations) {
110  result &= executeExternalUpdateUserMethod(customScriptConfiguration, user, true);
111  if (!result) {
112  return result;
113  }
114  }
115 
116  return result;
117  }
boolean executeExternalUpdateUserMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, boolean persisted)
Definition: ExternalUpdateUserService.java:93

メンバ詳解

◆ serialVersionUID

final long org.gluu.oxtrust.service.external.ExternalUpdateUserService.serialVersionUID = 1416361273036208685L
staticprivate

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