java.lang.Object
com.semanticcms.core.taglib.Functions
Tag library function implementations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Page
captureContentRoot
(String level) static Page
capturePage
(String page, String level) static Page
capturePageInBook
(String book, String page, String level) static Double
convertPageDagToList
(Page rootPage, String level) static String
encodeUrlParam
(String value) Deprecated, for removal: This API element is subject to removal in a future version.filterElements
(Page page, String elementType) static boolean
findAllowRobots
(Page page) findAuthors
(Page page) static Copyright
findCopyright
(Page page) static List
<?> findTopLevelElements
(Node node, String elementType) static Double
static Book
static String
Gets the current capture level ornull
if not currently capturing.static File
getExeFile
(String path) static File
getExeFileInBook
(String book, String path) static File
static File
getFileInBook
(String book, String path, boolean requireFile) static String
getLinkCssClass
(Element element) static PageIndex
getPageIndex
(PageRef pageRef) static String
static String
getRefIdInPage
(Page page, String id) static boolean
getViewAllowRobots
(View view, Page page) getViewAuthors
(View view, Page page) static Copyright
getViewCopyright
(View view, Page page) static String
getViewLinkCssClass
(View view) getViewLinkParams
(View view, Page page) static Collection
<Link> getViewLinks
(View view, Page page) static String
getViewTitle
(View view, Page page) static boolean
hasElement
(Page page, String elementType, boolean recursive) static boolean
static boolean
isViewApplicable
(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:
ServletException
IOException
-
capturePage
- Throws:
ServletException
IOException
-
captureContentRoot
- Throws:
ServletException
IOException
-
getPageIndex
- Throws:
ServletException
IOException
-
convertPageDagToList
public static List<Page> convertPageDagToList(Page rootPage, String level) throws ServletException, IOException - Throws:
ServletException
IOException
-
getCaptureLevel
Gets the current capture level ornull
if not currently capturing.- See Also:
-
getFileInBook
public static File getFileInBook(String book, String path, boolean requireFile) throws ServletException, IOException - Throws:
ServletException
IOException
-
getFile
- Throws:
ServletException
IOException
-
getExeFileInBook
- Throws:
ServletException
IOException
-
getExeFile
- Throws:
ServletException
IOException
-
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:
ServletException
IOException
-
findAuthors
- Throws:
ServletException
IOException
-
findAllowRobots
- Throws:
ServletException
IOException
-
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:
ServletException
IOException
-
getViewLinkCssClass
-
getViewLinkParams
-
getViewCopyright
- Throws:
ServletException
IOException
-
getViewAuthors
- Throws:
ServletException
IOException
-
getViewTitle
-
getViewLinks
public static Collection<Link> getViewLinks(View view, Page page) throws ServletException, IOException - Throws:
ServletException
IOException
-
getViewAllowRobots
- Throws:
ServletException
IOException
-
getLinkCssClass
-
mergeGlobalAndViewScripts
-
URIEncoder.encodeURIComponent(java.lang.String)
instead.