パッケージ org.iplass.mtp.impl.core

クラス ExecuteContext

java.lang.Object
org.iplass.mtp.impl.core.ExecuteContext

public class ExecuteContext extends Object
  • フィールド詳細

  • コンストラクタの詳細

    • ExecuteContext

      public ExecuteContext(TenantContext tenantContext, String clientId, String sessionId)
      推奨されていません。
      そのうち削除
      FIXME 本コンストラクタは削除されます。
      パラメータ:
      tenantContext -
      clientId -
    • ExecuteContext

      public ExecuteContext(TenantContext tenantContext)
  • メソッドの詳細

    • getCurrentContext

      public static final ExecuteContext getCurrentContext()
    • isInited

      public static boolean isInited()
    • executeAs

      public static <T> T executeAs(TenantContext tenant, Executable<T> exec)
    • finContext

      public static void finContext()
    • initContext

      public static void initContext(ExecuteContext mtfContext)
    • setContext

      public static void setContext(ExecuteContext mtfContext)
    • mdcPut

      public void mdcPut(String key, String val)
    • mdcPutWithoutLoggingContextReload

      public void mdcPutWithoutLoggingContextReload(String key, String val)
    • getDefaultEndDate

      public Timestamp getDefaultEndDate()
    • getLocale

      public Locale getLocale()
    • getTimeZone

      public TimeZone getTimeZone()
    • getLocaleFormat

      public LocaleFormat getLocaleFormat()
    • getLangLocale

      public Locale getLangLocale()
      言語を表すLocale。
      戻り値:
    • getLanguage

      public String getLanguage()
      java内でResosurceBundleから文字列取得する際の処理では、getLangLocale()を使うように。 じゃないと、毎回のString->Localeのパース処理が無駄なので。。。
      戻り値:
    • setLanguage

      public void setLanguage(String language)
    • clearLanguage

      public void clearLanguage()
    • getPrevStacked

      public ExecuteContext getPrevStacked()
    • getClientTenantId

      public int getClientTenantId()
    • getCurrentTenant

      public Tenant getCurrentTenant()
      現在実行中のコンテキストのテナント情報を取得する。 TenantContext.loadTenantInfo()では、毎回MetaDataを元にTenantをnewする。 このメソッドでは、1回だけnewされたTenantのインスタンスを使い回す。
      戻り値:
    • getTenantContext

      public TenantContext getTenantContext()
    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
    • getAttribute

      public Object getAttribute(String key)
    • setAttribute

      public void setAttribute(String key, Object value, boolean shareContext)
    • getCurrentTimestamp

      public Timestamp getCurrentTimestamp()
    • setCurrentTimestamp

      public void setCurrentTimestamp(Timestamp currentTimestamp)
    • refreshCurrentTimestamp

      public void refreshCurrentTimestamp()
    • getCurrentLocalDate

      public Date getCurrentLocalDate()
    • getCurrentLocalTime

      public Time getCurrentLocalTime()
    • removeAttribute

      public void removeAttribute(String key)