フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Daniel Nordhoff-Vergien
Accessing custom attributes from java
2013/04/22 7:37
答え

Daniel Nordhoff-Vergien

ランク: New Member

投稿: 7

参加年月日: 2013/03/17

最近の投稿

Hi,

I have added some custom attributes to my organizations, which I want to read inside the portlet. I get the ExpandoBridge from my organization object and I can access text custom fields. But what to cast the group of X , e.g. group of integer, custom fields to? They are not collections, so what then?

Regards

Daniel
Sandeep Nair
RE: Accessing custom attributes from java
2013/04/22 8:03
答え

Sandeep Nair

ランク: Liferay Legend

投稿: 1721

参加年月日: 2008/11/05

最近の投稿

Hi,

It should be array of int (int [])

I would refer ExpandoValueLocalServiceUtil to see what are the return types available.

Regards,
Sandeep
Daniel Nordhoff-Vergien
RE: Accessing custom attributes from java
2013/04/22 11:40
答え

Daniel Nordhoff-Vergien

ランク: New Member

投稿: 7

参加年月日: 2013/03/17

最近の投稿

Thanks for the hint. But can you give me an example how the custom field values of e.g. an organization object are connected to the ExpandoValueLocalServiceUtil methods?

Regards

Daniel
Sandeep Nair
RE: Accessing custom attributes from java
2013/04/22 11:59
答え

Sandeep Nair

ランク: Liferay Legend

投稿: 1721

参加年月日: 2008/11/05

最近の投稿

Hi,

If you see ExpandoBridgeImpl class(actual implementation class), you should see in all the implemented methods(take for example getAttribute), the actual call is made to to the methods of ExpandoValueLocalServiceUtil(or ExpandoValueServiceUtil in case permission has to be checked) class.

Regards,
Sandeep Nair