This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « Back to 日本語ドキュメント
フック DTD - 6.0
Alternative Languages: English
元の DTD は http://www.liferay.com/dtd/liferay-hook_6_0_0.dtd から入手できます。
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.0.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_0_0.dtd">
<!ELEMENT hook (portal-properties?, language-properties*, custom-jsp-dir?, service*)> <!ELEMENT portal-properties (#PCDATA)> <!ELEMENT language-properties (#PCDATA)> <!ELEMENT custom-jsp-dir (#PCDATA)> <!ELEMENT service (service-type, service-impl)> <!ELEMENT service-type (#PCDATA)> <!ELEMENT service-impl (#PCDATA)>
すべてのポータルプロパティがフックでオーバーライドできるわけではありません。対応しているプロパティは以下の通りです。
- admin.default.group.names
- admin.default.role.names
- admin.default.user.group.names
- auth.forward.by.last.path
- auto.deploy.listeners
- application.startup.events
- auth.failure
- auth.max.failures
- auth.pipeline.post
- auth.pipeline.pre
- auth.token.impl
- auto.login.hooks
- captcha.check.portal.create_account
- captcha.engine.impl
- control.panel.entry.class.default
- convert.processes
- default.landing.page.path
- dl.hook.impl
- dl.webdav.auto.unlock
- dl.webdav.save.to.single.version
- field.enable.com.liferay.portal.model.Contact.birthday
- field.enable.com.liferay.portal.model.Contact.male
- field.enable.com.liferay.portal.model.Organization.status
- hot.deploy.listeners
- image.hook.impl
- javascript.fast.load
- layout.static.portlets.all
- layout.template.cache.enabled
- layout.types
- 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
- mail.hook.impl
- 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
- portlet.add.default.resource.check.enabled
- sanitizer.impl
- servlet.session.create.events
- servlet.session.destroy.events
- servlet.service.events.post
- servlet.service.events.pre
- session.phishing.protected.attributes
- terms.of.use.required
- theme.css.fast.load
- theme.images.fast.load
- theme.loader.new.theme.id.on.import
- theme.portlet.decorate.default
- theme.portlet.sharing.default
- theme.shortcut.icon
- upgrade.processes
- users.email.address.generator
- users.email.address.required
- users.full.name.generator
- users.full.name.validator
- users.screen.name.always.autogenerate
- users.screen.name.generator
- users.screen.name.validator
各種サービスビルダ (Service Builder) が生成したモデルクラスに対して、com.liferay.portal.model.ModelListener を独自に実装したリスナを追加することもできます。例えば、
- value.object.listener.com.liferay.portal.model.User
- value.object.listener.com.liferay.portlet.journal.model.JournalArticle
- value.object.listener...
注:
- 単純な値は上書きされる
- リスト値の場合は追加される
また、Ext 環境ではカンマ区切りのリストを指定することで複数のリスナを追加できますが、フックでは HookHotDeployListener の実装上の都合で、複数追加することができません。ひとつのモデルオブジェクトに登録できるリスナはひとつまでです。
33827 Views