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

公開メンバ関数

abstract List< GluuCustomAttributegetCustomAttributes ()
 
abstract void setCustomAttributes (List< GluuCustomAttribute > customAttributes)
 
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 ()
 

非公開変数類

String [] customObjectClasses
 

静的非公開変数類

static final long serialVersionUID = 5079582184398161111L
 

詳解

Entry with custom attributes and custom object classes lists

著者
Yuriy Movchan Date: 07.05.2011

関数詳解

◆ getAttribute() [1/2]

String org.gluu.oxtrust.model.CustomEntry.getAttribute ( String  attributeName)
inline
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 
)
inline
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)
inline
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()

abstract List<GluuCustomAttribute> org.gluu.oxtrust.model.CustomEntry.getCustomAttributes ( )
abstract

◆ getCustomObjectClasses()

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

◆ setAttribute() [1/3]

void org.gluu.oxtrust.model.CustomEntry.setAttribute ( String  attributeName,
String  attributeValue 
)
inline
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 
)
inline
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)
inline
88  {
89  List<GluuCustomAttribute> customAttributes = getCustomAttributes();
90  customAttributes.remove(attribute);
91  customAttributes.add(attribute);
92  }
abstract List< GluuCustomAttribute > getCustomAttributes()

◆ setCustomAttributes()

abstract void org.gluu.oxtrust.model.CustomEntry.setCustomAttributes ( List< GluuCustomAttribute customAttributes)
abstract

◆ setCustomObjectClasses()

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

◆ toString()

String org.gluu.oxtrust.model.CustomEntry.toString ( )
inline
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()

メンバ詳解

◆ customObjectClasses

String [] org.gluu.oxtrust.model.CustomEntry.customObjectClasses
private

◆ serialVersionUID

final long org.gluu.oxtrust.model.CustomEntry.serialVersionUID = 5079582184398161111L
staticprivate

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