Package com.semanticcms.core.taglib
Class Functions
- java.lang.Object
-
- com.semanticcms.core.taglib.Functions
-
public final class Functions extends Object
-
-
Method Summary
-
-
-
Method Detail
-
capturePageInBook
public static Page capturePageInBook(String book, String page, String level) throws ServletException, IOException
- Throws:
ServletException
IOException
-
capturePage
public static Page capturePage(String page, String level) throws ServletException, IOException
- Throws:
ServletException
IOException
-
captureContentRoot
public static Page captureContentRoot(String level) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getPageIndex
public static PageIndex getPageIndex(PageRef pageRef) throws ServletException, IOException
- Throws:
ServletException
IOException
-
convertPageDagToList
public static List<Page> convertPageDagToList(Page rootPage, String level) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getCaptureLevel
public static String getCaptureLevel()
Gets the current capture level ornull
if not currently capturing- See Also:
CaptureLevel
-
getFileInBook
public static File getFileInBook(String book, String path, boolean requireFile) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getFile
public static File getFile(String path, boolean requireFile) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getExeFileInBook
public static File getExeFileInBook(String book, String path) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getExeFile
public static File getExeFile(String path) throws ServletException, IOException
- Throws:
ServletException
IOException
-
encodeUrlParam
@Deprecated public static String encodeUrlParam(String value)
Deprecated.Please useURIEncoder.encodeURIComponent(java.lang.String)
instead.
-
getRefId
public static String getRefId(String id) throws ServletException
- Throws:
ServletException
-
isExporting
public static boolean isExporting()
-
findCopyright
public static Copyright findCopyright(Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
findAuthors
public static Set<Author> findAuthors(Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
findAllowRobots
public static boolean findAllowRobots(Page page) throws ServletException, IOException
- 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
public static boolean isViewApplicable(View view, Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getViewLinkCssClass
public static String getViewLinkCssClass(View view) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getViewLinkParams
public static Map<String,List<String>> getViewLinkParams(View view, Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getViewCopyright
public static Copyright getViewCopyright(View view, Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getViewAuthors
public static Set<Author> getViewAuthors(View view, Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getViewTitle
public static String getViewTitle(View view, Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getViewLinks
public static Collection<Link> getViewLinks(View view, Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getViewAllowRobots
public static boolean getViewAllowRobots(View view, Page page) throws ServletException, IOException
- Throws:
ServletException
IOException
-
-