com.nurelm.util
Class JSPUtil

java.lang.Object
  extended bycom.nurelm.util.JSPUtil

public class JSPUtil
extends java.lang.Object

Commonly used functions within JSP pages.


Constructor Summary
JSPUtil()
           
 
Method Summary
static RepeatItem getRepeatItem(Site site, java.lang.String rootPageId, java.lang.String repeatListId, java.lang.String repeatItemId)
          Gets a repeat item from the root page, repeat block and repeat item id specified.
static RepeatItem getRepeatItem(Site site, java.lang.String rootPageId, java.lang.String repeatListName, java.lang.String contentId, java.lang.String contentValue)
          Gets a repeat item from the root page, repeat block, content id and value specified.
static boolean repeatItemExists(Site site, java.lang.String rootPageId, java.lang.String repeatListId, java.lang.String contentId, java.lang.String contentValue)
          Gets a repeat item from the root page, repeat block, content id and value specified, and reports if it exists or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSPUtil

public JSPUtil()
Method Detail

getRepeatItem

public static RepeatItem getRepeatItem(Site site,
                                       java.lang.String rootPageId,
                                       java.lang.String repeatListId,
                                       java.lang.String repeatItemId)
Gets a repeat item from the root page, repeat block and repeat item id specified. Creates the root page and repeat block if they are not already there.

Parameters:
site - The current site.
rootPageId - The ID of the root page.
repeatListId - The ID of the repeat block.
repeatItemId - The ID of the repeat item.
Returns:
The requested repeat item, or null if it does not exist.

getRepeatItem

public static RepeatItem getRepeatItem(Site site,
                                       java.lang.String rootPageId,
                                       java.lang.String repeatListName,
                                       java.lang.String contentId,
                                       java.lang.String contentValue)
Gets a repeat item from the root page, repeat block, content id and value specified. Creates the root page and repeat block if they are not already there.

Parameters:
site - The current site.
Returns:
The requested repeat item, or null if it does not exist.

repeatItemExists

public static boolean repeatItemExists(Site site,
                                       java.lang.String rootPageId,
                                       java.lang.String repeatListId,
                                       java.lang.String contentId,
                                       java.lang.String contentValue)
Gets a repeat item from the root page, repeat block, content id and value specified, and reports if it exists or not. Creates the root page and repeat block if they are not already there.

Parameters:
site - The current site.
rootPageId - The ID of the root page.
repeatListId - The ID of the repeat block.
Returns:
True if the requested repeat item exists.