« Zurück zu Hook DTD

Hook DTD - 5.2

Asset-Tag: liferay v5.2 dtd hook

Get the original DTD at http://www.liferay.com/dtd/liferay-hook_5_2_0.dtd

<!DOCTYPE hook PUBLIC
	"-//Liferay//DTD Hook 5.2.0//EN"
	"http://www.liferay.com/dtd/liferay-hook_5_2_0.dtd">
<!ELEMENT hook (portal-properties?, language-properties*, custom-jsp-dir?)>

<!ELEMENT portal-properties (#PCDATA)>
<!ELEMENT language-properties (#PCDATA)>
<!ELEMENT custom-jsp-dir (#PCDATA)>

Not all portal properties can be overridden via a hook. The supported properties are:

  • auth.forward.by.last.path
  • application.startup.events
  • auth.failure
  • auth.max.failures
  • auth.pipeline.post
  • auth.pipeline.pre
  • auto.login.hooks
  • captcha.check.portal.create_account
  • default.landing.page.path
  • field.enable.com.liferay.portal.model.Contact.birthday
  • field.enable.com.liferay.portal.model.Contact.male
  • field.enable.com.liferay.portal.model.Organization.status
  • javascript.fast.load
  • layout.static.portlets.all
  • layout.template.cache.enabled
  • layout.user.private.layouts.auto.create
  • layout.user.private.layouts.enabled
  • layout.user.private.layouts.modifiable
  • layout.user.public.layouts.auto.create
  • layout.user.public.layouts.enabled
  • layout.user.public.layouts.modifiable
  • ldap.attrs.transformer.impl
  • login.create.account.allow.custom.password
  • login.events.post
  • login.events.pre
  • logout.events.post
  • logout.events.pre
  • my.places.show.community.private.sites.with.no.layouts
  • my.places.show.community.public.sites.with.no.layouts
  • my.places.show.organization.private.sites.with.no.layouts
  • my.places.show.organization.public.sites.with.no.layouts
  • my.places.show.user.private.sites.with.no.layouts
  • my.places.show.user.public.sites.with.no.layouts
  • passwords.passwordpolicytoolkit.generator
  • passwords.passwordpolicytoolkit.static
  • servlet.service.events.post
  • servlet.service.events.pre
  • session.phishing.protected.attributes
  • terms.of.use.required
  • theme.css.fast.load
  • theme.images.fast.load

You can also add your own com.liferay.portal.model.ModelListener for each Service Builder generated model class. Some examples:

  • value.object.listener.com.liferay.portal.model.User
  • value.object.listener.com.liferay.portlet.journal.model.JournalArticle
  • value.object.listener...

Note that:

  • Simple values are overwritten
  • List values are appended

Also note that while in ext environment you add multiple listener classes in comma delimited list, in hook you can not do that due to the implementation of HookHotDeployListener. You can register add only one listener per model object.

0 Anhänge
33421 Angesehen
Durchschnitt (1 Stimme)
Die durchschnittliche Bewertung ist 3.0 von max. 5 Sternen.