Friday, July 13, 2012

can you list some common scenarios where hooks can be used?

Some common scenarios which require the use of a hook are


1. the need to perform custom actions on portal startup or user login,
2. overwrite or extend portal JSPs,
3. modify portal properties,
4. replace a portal service with your own implementation.














In general, there are four kinds of hook parameters:
  1. portal-properties (called portal properties hooks)
  2. language-properties (called language properties hooks)
  3. custom-jsp-dir (called custom JSPs hooks) and
  4. service (called portal service hooks)
portal properties hooks allow runtime re-configuration of the portal.

Language properties hooks allow us to install new translations or override few words in existing translations.

JSP hooks provide a way to easily modify JSP files without having to alter the core of the portal



Portal service hooks provide a way to easily override portal services.

No comments:

Post a Comment