Sun GlassFish Web Space Server 10.0 Administration Guide

Value Object

Value Object is a property in the portal.properties file, which is the default configuration file for Sun GlassFish Web Space Server. You can override this property using portal-ext.properties file.

You can add a listener for a specific class by setting the property value.object.listener with a list of comma-delimited class names that implement com.liferay.portal.model.ModelListener. These classes are pooled and reused and must be thread safe.


value.object.listener.com.liferay.portal.model.Contact=com.liferay.portal.-
model.ContactListener
value.object.listener.com.liferay.portal.model.Layout=com.liferay.portal.-
model.LayoutListener
value.object.listener.com.liferay.portal.model.LayoutSet=com.liferay.portal.
model.LayoutSetListener
value.object.listener.com.liferay.portal.model.PortletPreferences=com.liferay.
portal.model.PortletPreferencesListener
value.object.listener.com.liferay.portal.model.User=com.liferay.portal.model.
UserListener
value.object.listener.com.liferay.portlet.journal.model.JournalArticle=com.l
iferay.portlet.journal.model.JournalArticleListener
value.object.listener.com.liferay.portlet.journal.model.JournalTemplate=com.
liferay.portlet.journal.model.JournalTemplateListener

Value objects are cached by default. You can disable caching for all objects or per object.

For mapping tables, the key is the mapping table itself.


value.object.finder.cache.enabled=true
value.object.finder.cache.enabled.com.liferay.portal.model.Layout=true
value.object.finder.cache.enabled.com.liferay.portal.model.User=true
value.object.finder.cache.enabled.Users_Roles=true