gluu
静的公開メンバ関数 | 全メンバ一覧
org.gluu.oxtrust.util.MapperUtil クラス
org.gluu.oxtrust.util.MapperUtil 連携図
Collaboration graph

静的公開メンバ関数

static PersonAssociation map (GluuCustomPerson source, PersonAssociation destination)
 
static ClientAssociation map (OxAuthClient source, ClientAssociation destination)
 

詳解

関数詳解

◆ map() [1/2]

static PersonAssociation org.gluu.oxtrust.util.MapperUtil.map ( GluuCustomPerson  source,
PersonAssociation  destination 
)
inlinestatic

Maps persons association attribute with personAssociation

引数
source
destination
戻り値
27  {
28 
29  if (source == null) {
30  return null;
31  }
32 
33  if (destination == null) {
34  destination = new PersonAssociation();
35  }
36 
37  destination.setUserAssociation(source.getInum());
38  destination.setEntryAssociations(source.getAssociatedClient());
39 
40  return destination;
41 
42  }

◆ map() [2/2]

static ClientAssociation org.gluu.oxtrust.util.MapperUtil.map ( OxAuthClient  source,
ClientAssociation  destination 
)
inlinestatic

Maps Clients association attribute with ClientAssociation

引数
source
destination
戻り値
51  {
52 
53  if (source == null) {
54 
55  return null;
56  }
57 
58  if (destination == null) {
59  destination = new ClientAssociation();
60  }
61 
62  destination.setEntryAssociation(source.getInum());
63  destination.setUserAssociations(source.getAssociatedPersons());
64 
65  return destination;
66 
67  }

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