public final class SQLPageService extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<SQLPage> |
getAuthorizedPages(fr.paris.lutece.portal.business.user.AdminUser user)
Filter the list of pages according user authorization
|
static fr.paris.lutece.portal.web.xpages.XPage |
getSQLPage(String strName,
javax.servlet.http.HttpServletRequest request)
Build the SQL Page
|
static String |
getSQLTemplate(String strName) |
static StringBuilder |
getStringSQLFragment(int nPageId,
javax.servlet.http.HttpServletRequest request)
Build the Fragment Page
|
static boolean |
isAuthorized(SQLPage page,
fr.paris.lutece.portal.business.user.AdminUser user)
Checks if the page has an authorized workgroup for a given user
|
static void |
validateTemplate(String strTemplate,
Locale locale)
Validate a template content
|
public static StringBuilder getStringSQLFragment(int nPageId, javax.servlet.http.HttpServletRequest request)
nPageId - The id SQLPagerequest - The Requestpublic static fr.paris.lutece.portal.web.xpages.XPage getSQLPage(String strName, javax.servlet.http.HttpServletRequest request)
strName - The page namerequest - The HTTP requestpublic static void validateTemplate(String strTemplate, Locale locale) throws freemarker.template.TemplateException, IOException, freemarker.core.ParseException
strTemplate - The template contentlocale - The Localefreemarker.template.TemplateException - if the template is not validIOException - if the template is not validfreemarker.core.ParseException - if the template is not validpublic static boolean isAuthorized(SQLPage page, fr.paris.lutece.portal.business.user.AdminUser user)
page - The pageuser - The userpublic static List<SQLPage> getAuthorizedPages(fr.paris.lutece.portal.business.user.AdminUser user)
user - The pageCopyright © 2016 City of Paris. All rights reserved.