Class PreferencesHandler


  • public class PreferencesHandler
    extends Object

    This class contains handlers for managing preferences.

    Author:
    jasonlee, Ken Paulsen ([email protected])
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void normalizeTagViewId​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      This handler normalizes the given tagViewId.
      static void removeTag​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      This handler provides a way to remove tags.
      static void saveTagInformation​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      This handler should be used whenever you want to add a Tag to a page.
      static void searchTags​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
      This handler provides a way to search for tags.
    • Constructor Detail

      • PreferencesHandler

        public PreferencesHandler()
    • Method Detail

      • saveTagInformation

        public static void saveTagInformation​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

        This handler should be used whenever you want to add a Tag to a page. If the exact same Tag is added twice, it will be ignored. If "user" is not specified the current principal user will be used for this value.

      • searchTags

        public static void searchTags​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

        This handler provides a way to search for tags. All 3 properties are optional. If none are specified, all tags will be returned. If more than one are specified, tags matching all specified criteria will be returned.

      • removeTag

        public static void removeTag​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

        This handler provides a way to remove tags. If the user is not specified, the current "principal user" will be used.

      • normalizeTagViewId

        public static void normalizeTagViewId​(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

        This handler normalizes the given tagViewId. This is required in order to ensure tagViewId's are compared the same way every time.