org.glassfish.admingui.common.handlers
Class PreferencesHandler

java.lang.Object
  extended by org.glassfish.admingui.common.handlers.PreferencesHandler

public class PreferencesHandler
extends Object

This class contains handlers for managing preferences.

Author:
jasonlee, Ken Paulsen (ken.paulsen@sun.com)

Constructor Summary
PreferencesHandler()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2012. All Rights Reserved.