Class PreferencesHandler
This class contains handlers for managing preferences.
- Author:
- jasonlee, Ken Paulsen (ken.paulsen@sun.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidnormalizeTagViewId(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) This handler normalizes the given tagViewId.static voidremoveTag(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) This handler provides a way to remove tags.static voidsaveTagInformation(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) This handler should be used whenever you want to add a Tag to a page.static voidsearchTags(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) This handler provides a way to search for tags.
-
Constructor Details
-
PreferencesHandler
public PreferencesHandler()
-
-
Method Details
-
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.
-