java.lang.Object
com.semanticcms.core.taglib.Functions
Tag library function implementations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PagecaptureContentRoot(String level) static PagecapturePage(String page, String level) static PagecapturePageInBook(String book, String page, String level) static DoubleconvertPageDagToList(Page rootPage, String level) static StringencodeUrlParam(String value) Deprecated, for removal: This API element is subject to removal in a future version.filterElements(Page page, String elementType) static booleanfindAllowRobots(Page page) findAuthors(Page page) static CopyrightfindCopyright(Page page) static List<?> findTopLevelElements(Node node, String elementType) static Doublestatic Bookstatic StringGets the current capture level ornullif not currently capturing.static FilegetExeFile(String path) static FilegetExeFileInBook(String book, String path) static Filestatic FilegetFileInBook(String book, String path, boolean requireFile) static StringgetLinkCssClass(Element element) static PageIndexgetPageIndex(PageRef pageRef) static Stringstatic StringgetRefIdInPage(Page page, String id) static booleangetViewAllowRobots(View view, Page page) getViewAuthors(View view, Page page) static CopyrightgetViewCopyright(View view, Page page) static StringgetViewLinkCssClass(View view) getViewLinkParams(View view, Page page) static Collection<Link> getViewLinks(View view, Page page) static StringgetViewTitle(View view, Page page) static booleanhasElement(Page page, String elementType, boolean recursive) static booleanstatic booleanisViewApplicable(View view, Page page) parseQueryString(String queryString) static String
-
Method Details
-
capturePageInBook
public static Page capturePageInBook(String book, String page, String level) throws ServletException, IOException - Throws:
ServletExceptionIOException
-
capturePage
- Throws:
ServletExceptionIOException
-
captureContentRoot
- Throws:
ServletExceptionIOException
-
getPageIndex
- Throws:
ServletExceptionIOException
-
convertPageDagToList
public static List<Page> convertPageDagToList(Page rootPage, String level) throws ServletException, IOException - Throws:
ServletExceptionIOException
-
getCaptureLevel
Gets the current capture level ornullif not currently capturing.- See Also:
-
getFileInBook
public static File getFileInBook(String book, String path, boolean requireFile) throws ServletException, IOException - Throws:
ServletExceptionIOException
-
getFile
- Throws:
ServletExceptionIOException
-
getExeFileInBook
- Throws:
ServletExceptionIOException
-
getExeFile
- Throws:
ServletExceptionIOException
-
encodeUrlParam
Deprecated, for removal: This API element is subject to removal in a future version.Please useURIEncoder.encodeURIComponent(java.lang.String)instead. -
getRefId
- Throws:
ServletException
-
getRefIdInPage
-
ceil
-
floor
-
parseQueryString
-
repeat
-
getBook
-
isExporting
public static boolean isExporting() -
findCopyright
- Throws:
ServletExceptionIOException
-
findAuthors
- Throws:
ServletExceptionIOException
-
findAllowRobots
- Throws:
ServletExceptionIOException
-
hasElement
public static boolean hasElement(Page page, String elementType, boolean recursive) throws ServletException, IOException, ClassNotFoundException -
findTopLevelElements
public static List<?> findTopLevelElements(Node node, String elementType) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
filterElements
public static List<? extends Element> filterElements(Page page, String elementType) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
isViewApplicable
- Throws:
ServletExceptionIOException
-
getViewLinkCssClass
-
getViewLinkParams
-
getViewCopyright
- Throws:
ServletExceptionIOException
-
getViewAuthors
- Throws:
ServletExceptionIOException
-
getViewTitle
-
getViewLinks
public static Collection<Link> getViewLinks(View view, Page page) throws ServletException, IOException - Throws:
ServletExceptionIOException
-
getViewAllowRobots
- Throws:
ServletExceptionIOException
-
getLinkCssClass
-
mergeGlobalAndViewScripts
-

URIEncoder.encodeURIComponent(java.lang.String)instead.