gluu
公開メンバ関数 | 公開変数類 | 全メンバ一覧
CacheRefreshInterceptor.CacheRefresh クラス
CacheRefreshInterceptor.CacheRefresh の継承関係図
Inheritance graph
CacheRefreshInterceptor.CacheRefresh 連携図
Collaboration graph

公開メンバ関数

def __init__ (self, currentTimeMillis)
 
def init (self, configurationAttributes)
 
def destroy (self, configurationAttributes)
 
def updateUser (self, user, configurationAttributes)
 
def getApiVersion (self)
 

公開変数類

 currentTimeMillis
 

詳解

構築子と解体子

◆ __init__()

def CacheRefreshInterceptor.CacheRefresh.__init__ (   self,
  currentTimeMillis 
)
10  def __init__(self, currentTimeMillis):
11  self.currentTimeMillis = currentTimeMillis
12 

関数詳解

◆ destroy()

def CacheRefreshInterceptor.CacheRefresh.destroy (   self,
  configurationAttributes 
)
19  def destroy(self, configurationAttributes):
20  print "Cache refresh destroy"
21  print "Cache refresh destroyed successfully"
22  return True
23 

◆ getApiVersion()

def CacheRefreshInterceptor.CacheRefresh.getApiVersion (   self)
46  def getApiVersion(self):
47  return 1
48 

◆ init()

def CacheRefreshInterceptor.CacheRefresh.init (   self,
  configurationAttributes 
)
13  def init(self, configurationAttributes):
14  print "Cache refresh initialization"
15  print "Cache refresh initialized successfully"
16 
17  return True
18 

◆ updateUser()

def CacheRefreshInterceptor.CacheRefresh.updateUser (   self,
  user,
  configurationAttributes 
)
27  def updateUser(self, user, configurationAttributes):
28  attributes = user.getCustomAttributes()
29 
30  # Add new attribute preferredLanguage
31  attrPrefferedLanguage = GluuCustomAttribute("preferredLanguage", "en-us")
32  attributes.add(attrPrefferedLanguage)
33 
34  # Add new attribute userPassword
35  attrUserPassword = GluuCustomAttribute("userPassword", "test")
36  attributes.add(attrUserPassword)
37 
38  # Update givenName attribute
39  for attribute in attributes:
40  attrName = attribute.getName()
41  if (("givenname" == StringHelper.toLowerCase(attrName)) and StringHelper.isNotEmpty(attribute.getValue())):
42  attribute.setValue(StringHelper.removeMultipleSpaces(attribute.getValue()) + " (updated)")
43 
44  return True
45 

メンバ詳解

◆ currentTimeMillis

CacheRefreshInterceptor.CacheRefresh.currentTimeMillis

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