public class DictionaryContainer extends Object implements IContainer<Map<String,CodeEntity>>, ISysConst
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DIC_SEARCH_INFO_PREFIX
参数中设置字典搜索信息的名称前缀。
|
static String |
DICTIONARY_TYPE_FLAG
参数中设置字典分类的标识。
|
static String |
USE_DEFAULT_CONDITION_FLAG
参数中设置是否使用默认条件的标识。
|
ACTION_FLOW_STACK, AUTH_USER, CURRENT_APP, EC_ACTION_FAIL, EC_ALERM, EC_EMPTY_DIC, EC_FILE_DEL, EC_FILE_MD, EC_FILE_OTHER, EC_LONG_TIME, EC_NEED_INIT, EC_WRONG_FIELD, EC_WRONG_INIT, EC_WRONG_PARAM, EMAP_ACTION, EMAP_PARAM, ENVIROMENT_INFO, EXT_INFO, IGNORE, LOG_NODE, NOW_DS_SERVICE, NULL_USER, PRE_GUID, SPECIAL_OPT_OBJ, THREAD_CONTEXT, TIME_LOG, TRANSACTION_CONTAINER, UNKNOW_FLAG1| 构造器和说明 |
|---|
DictionaryContainer(IEmapApp app,
self.micromagic.eterna.digester2.ConfigResource res,
DictionaryTable dic) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
清除容器中存放的内容。
|
void |
clear(long nextTime)
设置延时再次清理的时间。
|
Map<String,CodeEntity> |
get()
获取容器中存放的对象。
|
Map<String,CodeEntity> |
get(String type,
boolean useDefault) |
IEmapAction<QueryResult<Map<String,Object>>> |
getAction()
获取字典表关联的动作。
|
IEmapApp |
getApp()
获取容器对象所在的应用。
|
String |
getAppName()
获取容器对象所在的应用名称。
|
self.micromagic.eterna.digester2.ConfigResource |
getConfigResource()
获取容器对象所存放的配置资源。
|
DictionaryContainer |
getDictionaryContainerWithLocale(Locale locale)
根据语言获取字典容器。
|
Map<String,CodeEntity> |
getDictionaryData(String type,
String orderConfig,
boolean containDefaultCondtion,
Object otherParams)
获取字典数据。
|
DictionaryTable |
getDictionaryTable() |
boolean |
isTimeout(long now)
根据给出的当前时间来判断容器是否已超时。
|
public static final String DIC_SEARCH_INFO_PREFIX
public static final String USE_DEFAULT_CONDITION_FLAG
public DictionaryContainer(IEmapApp app, self.micromagic.eterna.digester2.ConfigResource res, DictionaryTable dic)
public String getAppName()
IContainergetAppName 在接口中 IContainer<Map<String,CodeEntity>>public IEmapApp getApp()
IContainergetApp 在接口中 IContainer<Map<String,CodeEntity>>public self.micromagic.eterna.digester2.ConfigResource getConfigResource()
IContainergetConfigResource 在接口中 IContainer<Map<String,CodeEntity>>public DictionaryTable getDictionaryTable()
public Map<String,CodeEntity> get()
IContainerget 在接口中 IContainer<Map<String,CodeEntity>>public Map<String,CodeEntity> get(String type, boolean useDefault)
public boolean isTimeout(long now)
IContainerisTimeout 在接口中 IContainer<Map<String,CodeEntity>>now - 当前时间public void clear()
IContainerclear 在接口中 IContainer<Map<String,CodeEntity>>public void clear(long nextTime)
nextTime - 再次执行清理的时间public Map<String,CodeEntity> getDictionaryData(String type, String orderConfig, boolean containDefaultCondtion, Object otherParams)
type - 类型orderConfig - 排序containDefaultCondtion - 是否包含默认条件otherParams - 参数public IEmapAction<QueryResult<Map<String,Object>>> getAction()
public DictionaryContainer getDictionaryContainerWithLocale(Locale locale)
locale - 语言Copyright © 2022. All rights reserved.