Fórum

Expando/Custom Attribute Questions

David Corpuz, modificado 8 Anos atrás.

Expando/Custom Attribute Questions

New Member Postagens: 8 Data de Entrada: 23/07/12 Postagens Recentes
Good day,

I'm currently doing some development work for Liferay and we are currently experimenting on Expando/Custom Attributes for the Users in Liferay. Here is my question.

Can a user retrieve an Expando value for a user that doesn't have a mapped expando attribute? or does it require to be mapped?
Ex :
customerID expando field has a default of 00000
User1 has customerID as an Expando Filed and is mapped to a value of 00001 while User2 doesn't have customerId custom attribute saved in the database as an Expando field

Hope someone can answer my question.

Thanks,
thumbnail
James Falkner, modificado 8 Anos atrás.

RE: Expando/Custom Attribute Questions

Liferay Legend Postagens: 1399 Data de Entrada: 17/09/10 Postagens Recentes
When you define a custom attribute for the User entity, then all users will have that custom attribute. If a specific user has not defined a value for that attribute, then the defalut value should be returned. There's no way to define a per-user attribute (only the value of the attribute can differ between users).