类 AbstractTemplateDirective

java.lang.Object
com.publiccms.common.directive.BaseTemplateDirective
com.publiccms.common.base.AbstractTemplateDirective
所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel
直接已知子类:
CmsCategoryDirective, CmsCategoryListDirective, CmsCategoryModelDirective, CmsCategoryModelListDirective, CmsCategoryTypeDirective, CmsCategoryTypeListDirective, CmsCommentDirective, CmsCommentListDirective, CmsContentDirective, CmsContentFileListDirective, CmsContentListDirective, CmsContentProductDirective, CmsContentProductListDirective, CmsContentQuoteListDirective, CmsContentRelatedListDirective, CmsDictionaryDataDirective, CmsDictionaryDataListDirective, CmsDictionaryDirective, CmsDictionaryExcludeDirective, CmsDictionaryExcludeListDirective, CmsDictionaryExcludeValueDirective, CmsDictionaryListDirective, CmsEditorHistoryDirective, CmsEditorHistoryListDirective, CmsModelDirective, CmsModelListDirective, CmsPlaceDirective, CmsPlaceListDirective, CmsSearchDirective, CmsSurveyDirective, CmsSurveyListDirective, CmsSurveyQuestionDirective, CmsSurveyQuestionItemDirective, CmsSurveyQuestionItemListDirective, CmsSurveyQuestionListDirective, CmsTagDirective, CmsTagListDirective, CmsTagTypeDirective, CmsTagTypeListDirective, CmsUserCollectionDirective, CmsUserCollectionListDirective, CmsUserScoreDirective, CmsUserScoreListDirective, CmsUserSurveyDirective, CmsUserSurveyListDirective, CmsUserSurveyQuestionDirective, CmsUserSurveyQuestionListDirective, CmsUserVoteDirective, CmsUserVoteListDirective, CmsVoteDirective, CmsVoteItemDirective, CmsVoteItemListDirective, CmsVoteListDirective, CmsWordDirective, CmsWordListDirective, CreateCategoryFileDirective, CreateContentFileDirective, CreateLockDirective, CreateTemplateFileDirective, CsrfTokenDirective, DiskDirective, DiyMetadataDirective, DiyMetadataListDirective, DiyRegionDataDirective, ExceptionDirective, ExecuteScriptDirective, FileBackupContentDirective, FileBackupListDirective, FileContentDirective, FileExistDirective, FileHistoryContentDirective, FileHistoryListDirective, FileListDirective, GatewayListDirective, IncludeLayoutDirective, IncludePlaceDirective, IncludeRegionDirective, LicenseVerifyDirective, LogLoginListDirective, LogOperateDirective, LogOperateListDirective, LogTaskDirective, LogTaskListDirective, LogUploadListDirective, MasterSiteDirective, MemoryDirective, MetadataDirective, OauthListDirective, PlaceMetadataDirective, SendEmailDirective, SysAppClientDirective, SysAppClientListDirective, SysAppDirective, SysAppListDirective, SysAppTokenListDirective, SysAuthorizedDirective, SysClusterListDirective, SysConfigDataDirective, SysConfigDirective, SysConfigFieldListDirective, SysConfigListDirective, SysDeptDirective, SysDeptItemDirective, SysDeptItemListDirective, SysDeptListDirective, SysDomainDirective, SysDomainListDirective, SysExtendFieldListDirective, SysLockDirective, SysModuleDirective, SysModuleLangDirective, SysModuleListDirective, SysRecordDirective, SysRecordListDirective, SysRoleDirective, SysRoleListDirective, SysRoleModuleDirective, SysRoleModuleListDirective, SysRoleUserListDirective, SysSiteDirective, SysSiteListDirective, SysTaskDirective, SysTaskListDirective, SystemPropertiesDirective, SysUserDirective, SysUserListDirective, SysUserSettingDirective, SysUserTokenListDirective, SysWorkflowDirective, SysWorkflowListDirective, SysWorkflowProcessDirective, SysWorkflowProcessHistoryListDirective, SysWorkflowProcessItemDirective, SysWorkflowProcessListDirective, SysWorkflowStepDirective, SysWorkflowStepListDirective, TemplatePlaceListDirective, TemplateRegionListDirective, TemplateResultDirective, TemplateSearchListDirective, ThumbDirective, TradeAccountDirective, TradeAccountHistoryDirective, TradeAccountHistoryListDirective, TradeAccountListDirective, TradeAddressDirective, TradeAddressListDirective, TradeOrderDirective, TradeOrderHistoryDirective, TradeOrderHistoryListDirective, TradeOrderListDirective, TradeOrderProductDirective, TradeOrderProductListDirective, TradePaymentDirective, TradePaymentHistoryDirective, TradePaymentHistoryListDirective, TradePaymentListDirective, TradeRefundDirective, TradeRefundListDirective, UserAgentDirective, VersionDirective, VisitDayDirective, VisitDayListDirective, VisitHistoryDirective, VisitHistoryListDirective, VisitItemDirective, VisitItemListDirective, VisitSessionDirective, VisitSessionListDirective, VisitUrlDirective, VisitUrlListDirective, WorkloadDirective

public abstract class AbstractTemplateDirective extends BaseTemplateDirective
AbstractTemplateDirective 自定义模板指令基类
  • 字段详细资料

  • 构造器详细资料

    • AbstractTemplateDirective

      public AbstractTemplateDirective()
  • 方法详细资料

    • getSite

      protected SysSite getSite(RenderHandler handler) throws freemarker.template.TemplateModelException
      参数:
      handler -
      返回:
      site
      抛出:
      freemarker.template.TemplateModelException
    • expose

      protected void expose(RenderHandler handler, Map<String,Object> model) throws freemarker.template.TemplateModelException
      参数:
      handler -
      model -
      抛出:
      freemarker.template.TemplateModelException
    • getAdvanced

      protected boolean getAdvanced(RenderHandler handler) throws freemarker.template.TemplateModelException
      抛出:
      freemarker.template.TemplateModelException
    • getUserId

      protected Long getUserId(RenderHandler handler, String name) throws freemarker.template.TemplateModelException
      抛出:
      freemarker.template.TemplateModelException
    • execute

      public void execute(org.springframework.http.converter.HttpMessageConverter<Object> httpMessageConverter, org.springframework.http.MediaType mediaType, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws freemarker.template.TemplateException, IOException
      参数:
      httpMessageConverter -
      mediaType -
      request -
      response -
      抛出:
      freemarker.template.TemplateException
      IOException
    • getApp

      protected SysApp getApp(RenderHandler handler) throws freemarker.template.TemplateModelException
      抛出:
      freemarker.template.TemplateModelException
    • getUser

      protected SysUser getUser(RenderHandler handler) throws freemarker.template.TemplateModelException
      抛出:
      freemarker.template.TemplateModelException
    • supportAdvanced

      public boolean supportAdvanced()
      返回:
      support advanced parameters
    • needAppToken

      public boolean needAppToken()
      返回:
      whether need the app token
    • needUserToken

      public boolean needUserToken()
      返回:
      whether need the user token