public class FSConfig extends XMLFileManager implements FSConfigProvider
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_MOBILE_USER_AUTH_LIMIT |
static int |
DEFAULT_USER_LIMIT |
MARK_STRING| 限定符和类型 | 方法和说明 |
|---|---|
void |
addUserDevice(java.lang.String username,
DeviceInfo deviceInfo)
添加一个用户和硬件信息的绑定
|
void |
addUserDevice(java.lang.String username,
UserDevice userDevice)
添加一个用户和硬件信息的绑定
|
void |
clearCache()
清除cache
|
java.lang.String |
fileName()
FSConfig类对应的持久化xml文件名
|
AuthenticateObjectType |
getAuthenticateObjectType()
获取认证类型
|
<T> T |
getAuthenticateObjectType(java.lang.Class<? extends T> t)
获取指定类型的认证方式
|
AuthorizeAttr |
getAuthorizeAttr() |
CachePolicy |
getCachePolicy() |
UserDataControl |
getControl()
获取验证方式使用的控制器,是当前fs平台使用的控制器
|
DatabaseAdapterAttr |
getDatabaseAdapterAttr()
平台数据库是否全部采用新表名
|
java.util.Map<java.lang.String,java.lang.Object> |
getFSParaMap(java.lang.String name,
long userID)
获取FS需要使用的参数Map
|
static FSConfig |
getInstance()
已过时。
|
LoginConfig |
getLoginConfig()
登录设置项
|
java.lang.String |
getLoginPluginId()
获取当前登陆插件的id
|
int |
getMobileUserAuthLimit()
允许从移动端访问的用户数限制
|
static FSConfigProvider |
getProviderInstance()
获取fs配置管理接口
|
JSONObject |
getRootInfo(long userID)
获取管理系统根节点数据
|
JSONObject |
getSortedUserDeviceJSONObject()
将所有用户以及其可访问的硬件信息输出为一个JSON对象,并按首字母排序
|
SystemAttr |
getSystemAttr() |
SystemStyle |
getSystemStyle() |
Theme |
getTheme()
获取当前的主题对象
|
UpgradeProgressAttr |
getUpgradeProgress()
获取保存的升级进度
|
UserDevice |
getUserDevice(java.lang.String username)
根据指定的用户名获取用户以及其可访问的硬件设备的信息
|
JSONObject |
getUserDeviceJSONObject()
将所有用户以及其可访问的硬件信息输出为一个JSON对象
|
java.util.Collection<UserDevice> |
getUserDeviceList() |
int |
getUserLimit()
允许使用的用户数限制
|
long |
getXmlVersion() |
void |
initLoginUserListByType(int loginType)
按类型初始化用户登录白名单
|
boolean |
isMobileDeviceBinding()
是否启用了移动设备绑定
|
boolean |
isSyncTransferred()
同步数据集数据是否已经迁移
|
boolean |
isUseFS()
标志用户是否正在使用fs(平台),如果正在使用,就要进行数据初始化了
|
boolean |
needUpdate()
是否第一次使用
|
void |
readXML(XMLableReader reader)
读xml方法
|
UserDevice |
removeUserDevice(java.lang.String username)
移除指定用户的所有可访问硬件信息
|
void |
setAuthenticateObjectType(AuthenticateObjectType authenticateObjectType)
设置认证类型
|
void |
setAuthorizeAttr(AuthorizeAttr authorizeAttr) |
boolean |
setControl(UserDataControl control)
切换验证方式
|
void |
setDatabaseAdapterAttr(DatabaseAdapterAttr databaseAdapterAttr) |
void |
setLoginConfig(LoginConfig loginConfig) |
void |
setLoginPluginId(java.lang.String loginPluginId)
设置当前的登陆插件id
|
void |
setMobileDeviceBinding(boolean bind)
设置是否启用硬件绑定功能
|
void |
setNeedUpdate(boolean needUpdate)
设置是否需要版本升级
|
void |
setSyncTransferred(boolean syncTransferred)
设置同步数据集数据是否迁移
|
void |
setSystemAttr(SystemAttr systemAttr) |
void |
setSystemStyle(SystemStyle systemStyle) |
void |
setTheme(Theme theme)
设置当前的主题对象
|
void |
setUpgradeProgress(UpgradeProgressAttr upgradeProgress)
设置成功的升级步骤0,1,2,3...
|
void |
setUseFS(boolean useFS)
设置用户是否正在使用fs(平台)
|
void |
setXmlVersion(long xmlVersion) |
void |
transferDeviceInfo() |
void |
writeXML(XMLPrintWriter writer)
写xml方法
|
readFromInputStream, readXMLFilegetNameSpaceclone, initialize, mirrorequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFromInputStream, readXMLFilepublic static final int DEFAULT_USER_LIMIT
public static final int DEFAULT_MOBILE_USER_AUTH_LIMIT
public static FSConfig getInstance()
getProviderInstance()public static FSConfigProvider getProviderInstance()
public void transferDeviceInfo()
transferDeviceInfo 在接口中 FSConfigProviderpublic java.lang.String fileName()
fileName 在接口中 XMLFileManagerProviderpublic CachePolicy getCachePolicy()
getCachePolicy 在接口中 FSConfigProviderpublic SystemAttr getSystemAttr()
getSystemAttr 在接口中 FSConfigProviderpublic void setSystemAttr(SystemAttr systemAttr)
setSystemAttr 在接口中 FSConfigProviderpublic SystemStyle getSystemStyle()
getSystemStyle 在接口中 FSConfigProviderpublic void setSystemStyle(SystemStyle systemStyle)
setSystemStyle 在接口中 FSConfigProviderpublic boolean isUseFS()
isUseFS 在接口中 FSConfigProviderpublic void setUseFS(boolean useFS)
setUseFS 在接口中 FSConfigProvideruseFS - public UserDataControl getControl()
getControl 在接口中 FSConfigProviderpublic boolean setControl(UserDataControl control)
setControl 在接口中 FSConfigProvidercontrol - 参数是控制器public void clearCache()
clearCache 在接口中 FSConfigProviderpublic boolean needUpdate()
needUpdate 在接口中 FSConfigProviderpublic void setNeedUpdate(boolean needUpdate)
setNeedUpdate 在接口中 FSConfigProviderneedUpdate - 是否需要版本升级public AuthorizeAttr getAuthorizeAttr()
getAuthorizeAttr 在接口中 FSConfigProviderpublic void setAuthorizeAttr(AuthorizeAttr authorizeAttr)
setAuthorizeAttr 在接口中 FSConfigProviderpublic <T> T getAuthenticateObjectType(java.lang.Class<? extends T> t)
getAuthenticateObjectType 在接口中 FSConfigProviderT - 认证类型t - 认证类型public AuthenticateObjectType getAuthenticateObjectType()
getAuthenticateObjectType 在接口中 FSConfigProviderpublic void setAuthenticateObjectType(AuthenticateObjectType authenticateObjectType)
setAuthenticateObjectType 在接口中 FSConfigProviderauthenticateObjectType - 认证类型public boolean isMobileDeviceBinding()
isMobileDeviceBinding 在接口中 FSConfigProviderpublic void setMobileDeviceBinding(boolean bind)
setMobileDeviceBinding 在接口中 FSConfigProviderbind - 是否启用public void addUserDevice(java.lang.String username,
UserDevice userDevice)
addUserDevice 在接口中 FSConfigProviderusername - 用户名userDevice - 硬件信息public void addUserDevice(java.lang.String username,
DeviceInfo deviceInfo)
addUserDevice 在接口中 FSConfigProviderusername - 用户名deviceInfo - 硬件信息public UserDevice getUserDevice(java.lang.String username)
getUserDevice 在接口中 FSConfigProviderusername - 用户名public UserDevice removeUserDevice(java.lang.String username)
removeUserDevice 在接口中 FSConfigProviderusername - 用户名public JSONObject getUserDeviceJSONObject() throws JSONException
getUserDeviceJSONObject 在接口中 FSConfigProviderJSONExceptionpublic JSONObject getSortedUserDeviceJSONObject() throws JSONException
getSortedUserDeviceJSONObject 在接口中 FSConfigProviderJSONExceptionpublic int getUserLimit()
getUserLimit 在接口中 FSConfigProviderpublic int getMobileUserAuthLimit()
getMobileUserAuthLimit 在接口中 FSConfigProviderpublic void initLoginUserListByType(int loginType)
initLoginUserListByType 在接口中 FSConfigProviderloginType - 登录类型public long getXmlVersion()
getXmlVersion 在接口中 FSConfigProviderpublic void setXmlVersion(long xmlVersion)
setXmlVersion 在接口中 FSConfigProviderpublic Theme getTheme()
getTheme 在接口中 FSConfigProviderpublic void setTheme(Theme theme)
setTheme 在接口中 FSConfigProvidertheme - 主题public java.lang.String getLoginPluginId()
getLoginPluginId 在接口中 FSConfigProviderpublic void setLoginPluginId(java.lang.String loginPluginId)
setLoginPluginId 在接口中 FSConfigProviderpublic boolean isSyncTransferred()
isSyncTransferred 在接口中 FSConfigProviderpublic void setSyncTransferred(boolean syncTransferred)
setSyncTransferred 在接口中 FSConfigProvidersyncTransferred - 同步数据集数据是否迁移public java.util.Map<java.lang.String,java.lang.Object> getFSParaMap(java.lang.String name,
long userID)
throws java.lang.Exception
getFSParaMap 在接口中 FSConfigProvidername - 用户姓名或用户名userID - 用户IDjava.lang.Exception - 异常public JSONObject getRootInfo(long userID) throws java.lang.Exception
getRootInfo 在接口中 FSConfigProvideruserID - 用户IDjava.lang.Exceptionpublic void readXML(XMLableReader reader)
readXML 在接口中 FSConfigProviderreadXML 在接口中 XMLReadablereader - XMLableReaderpublic void writeXML(XMLPrintWriter writer)
writeXML 在接口中 FSConfigProviderwriteXML 在接口中 XMLWriterwriter - public DatabaseAdapterAttr getDatabaseAdapterAttr()
FSConfigProvidergetDatabaseAdapterAttr 在接口中 FSConfigProviderpublic void setDatabaseAdapterAttr(DatabaseAdapterAttr databaseAdapterAttr)
setDatabaseAdapterAttr 在接口中 FSConfigProviderpublic java.util.Collection<UserDevice> getUserDeviceList()
getUserDeviceList 在接口中 FSConfigProviderpublic LoginConfig getLoginConfig()
FSConfigProvidergetLoginConfig 在接口中 FSConfigProviderpublic void setLoginConfig(LoginConfig loginConfig)
setLoginConfig 在接口中 FSConfigProviderpublic UpgradeProgressAttr getUpgradeProgress()
FSConfigProvidergetUpgradeProgress 在接口中 FSConfigProviderpublic void setUpgradeProgress(UpgradeProgressAttr upgradeProgress)
FSConfigProvidersetUpgradeProgress 在接口中 FSConfigProviderupgradeProgress - 成功的步骤