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

公開メンバ関数

List< GluuCustomAttributegetCustomAttributes ()
 
void setCustomAttributes (List< GluuCustomAttribute > customAttributes)
 
String getInum ()
 
void setInum (String value)
 
String getUid ()
 
void setUid (String value)
 
String getDisplayName ()
 
void setDisplayName (String value)
 
String [] getCustomObjectClasses ()
 
void setCustomObjectClasses (String[] customObjectClasses)
 
String [] getAttributes (String attributeName)
 
String getAttribute (String attributeName)
 
String getAttribute (String attributeName, String defaultValue)
 
void setAttribute (String attributeName, String attributeValue)
 
void setAttribute (String attributeName, String[] attributeValue)
 
void setAttribute (GluuCustomAttribute attribute)
 
String toString ()
 

限定公開変数類

List< GluuCustomAttributecustomAttributes = new ArrayList<GluuCustomAttribute>()
 

静的非公開変数類

static final long serialVersionUID = -7779582184398161112L
 

詳解

User

著者
Yuriy Movchan Date: 06/10/2013

関数詳解

◆ getAttribute() [1/2]

String org.gluu.oxtrust.model.CustomEntry.getAttribute ( String  attributeName)
inlineinherited
56  {
57  if (StringHelper.isEmpty(attributeName)) {
58  return null;
59  }
60 
61  String value = null;
62  for (GluuCustomAttribute attribute : getCustomAttributes()) {
63  if (StringHelper.equalsIgnoreCase(attribute.getName(), attributeName)) {
64  value = attribute.getValue();
65  break;
66  }
67  }
68  return value;
69  }
abstract List< GluuCustomAttribute > getCustomAttributes()

◆ getAttribute() [2/2]

String org.gluu.oxtrust.model.CustomEntry.getAttribute ( String  attributeName,
String  defaultValue 
)
inlineinherited
71  {
72  String result = getAttribute(attributeName);
73  if (StringHelper.isEmpty(result)) {
74  result = defaultValue;
75  }
76 
77  return result;
78  }
String getAttribute(String attributeName)
Definition: CustomEntry.java:56

◆ getAttributes()

String [] org.gluu.oxtrust.model.CustomEntry.getAttributes ( String  attributeName)
inlineinherited
41  {
42  if (StringHelper.isEmpty(attributeName)) {
43  return null;
44  }
45 
46  String[] values = null;
47  for (GluuCustomAttribute attribute : getCustomAttributes()) {
48  if (StringHelper.equalsIgnoreCase(attribute.getName(), attributeName)) {
49  values = attribute.getValues();
50  break;
51  }
52  }
53  return values;
54  }
abstract List< GluuCustomAttribute > getCustomAttributes()

◆ getCustomAttributes()

List<GluuCustomAttribute> org.gluu.oxtrust.model.User.getCustomAttributes ( )
inline
34  {
35  return customAttributes;
36  }
List< GluuCustomAttribute > customAttributes
Definition: User.java:32

◆ getCustomObjectClasses()

String [] org.gluu.oxtrust.model.CustomEntry.getCustomObjectClasses ( )
inlineinherited
33  {
34  return customObjectClasses;
35  }
String [] customObjectClasses
Definition: CustomEntry.java:27

◆ getDisplayName()

String org.gluu.oxtrust.model.User.getDisplayName ( )
inline
58  {
59  return getAttribute("displayName");
60  }
String getAttribute(String attributeName)
Definition: CustomEntry.java:56

◆ getInum()

String org.gluu.oxtrust.model.User.getInum ( )
inline
42  {
43  return getAttribute("inum");
44  }
String getAttribute(String attributeName)
Definition: CustomEntry.java:56

◆ getUid()

String org.gluu.oxtrust.model.User.getUid ( )
inline
50  {
51  return getAttribute("uid");
52  }
String getAttribute(String attributeName)
Definition: CustomEntry.java:56

◆ setAttribute() [1/3]

void org.gluu.oxtrust.model.CustomEntry.setAttribute ( String  attributeName,
String  attributeValue 
)
inlineinherited
80  {
81  setAttribute(new GluuCustomAttribute(attributeName, attributeValue));
82  }
void setAttribute(String attributeName, String attributeValue)
Definition: CustomEntry.java:80

◆ setAttribute() [2/3]

void org.gluu.oxtrust.model.CustomEntry.setAttribute ( String  attributeName,
String []  attributeValue 
)
inlineinherited
84  {
85  setAttribute(new GluuCustomAttribute(attributeName, attributeValue));
86  }
void setAttribute(String attributeName, String attributeValue)
Definition: CustomEntry.java:80

◆ setAttribute() [3/3]

void org.gluu.oxtrust.model.CustomEntry.setAttribute ( GluuCustomAttribute  attribute)
inlineinherited
88  {
89  List<GluuCustomAttribute> customAttributes = getCustomAttributes();
90  customAttributes.remove(attribute);
91  customAttributes.add(attribute);
92  }
abstract List< GluuCustomAttribute > getCustomAttributes()

◆ setCustomAttributes()

void org.gluu.oxtrust.model.User.setCustomAttributes ( List< GluuCustomAttribute customAttributes)
inline
38  {
40  }
List< GluuCustomAttribute > customAttributes
Definition: User.java:32

◆ setCustomObjectClasses()

void org.gluu.oxtrust.model.CustomEntry.setCustomObjectClasses ( String []  customObjectClasses)
inlineinherited
37  {
39  }
String [] customObjectClasses
Definition: CustomEntry.java:27

◆ setDisplayName()

void org.gluu.oxtrust.model.User.setDisplayName ( String  value)
inline
62  {
63  setAttribute("displayName", value);
64  }
void setAttribute(String attributeName, String attributeValue)
Definition: CustomEntry.java:80

◆ setInum()

void org.gluu.oxtrust.model.User.setInum ( String  value)
inline
46  {
47  setAttribute("inum", value);
48  }
void setAttribute(String attributeName, String attributeValue)
Definition: CustomEntry.java:80

◆ setUid()

void org.gluu.oxtrust.model.User.setUid ( String  value)
inline
54  {
55  setAttribute("uid", value);
56  }
void setAttribute(String attributeName, String attributeValue)
Definition: CustomEntry.java:80

◆ toString()

String org.gluu.oxtrust.model.CustomEntry.toString ( )
inlineinherited
95  {
96  return String.format("CustomEntry [customAttributes=%s, customObjectClasses=%s, toString()=%s]", getCustomAttributes(),
97  Arrays.toString(customObjectClasses), super.toString());
98  }
String [] customObjectClasses
Definition: CustomEntry.java:27
abstract List< GluuCustomAttribute > getCustomAttributes()

メンバ詳解

◆ customAttributes

List<GluuCustomAttribute> org.gluu.oxtrust.model.User.customAttributes = new ArrayList<GluuCustomAttribute>()
protected

◆ serialVersionUID

final long org.gluu.oxtrust.model.User.serialVersionUID = -7779582184398161112L
staticprivate

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