使用范围:BIZ
Contents
class com.justep.doc.DocServerDefines (com.justep.doc.DocServerDefines)
文档服务定义容器类
Constructor Top
DocServerDefines () |
Methods Top
DocServerDefine | add (String sID, String sDisplayName, String sUrl, String sAccessMode) | |
DocServerDefine | getDocServerByPath (String docPath) | |
DocServerDefine | getIndex (String index) | |
Iterator |
getIterator () | |
String | refresh () | |
DocServerDefine | remove (String index) | |
int | save () | |
Table | toTable () |
Constructor details
Top
public
DocServerDefines
()
文档服务定义容器类
public
DocServerDefines
()
文档服务定义容器类
Methods Detail Top
public
DocServerDefine
add
(String sID, String sDisplayName, String sUrl, String sAccessMode)
新增
public
DocServerDefine
getDocServerByPath
(String docPath)
通过文档路径获得是文档服器务信息
public
DocServerDefine
getIndex
(String index)
获取容器中指定的文档
public
Iterator
getIterator
()
返回所有文档服务的迭代器。
public
String
refresh
()
重新加载所有的文档服务信息
public
DocServerDefine
remove
(String index)
从容器中移除指定的文档
public
int
save
()
保存 (注意这里保存的时候,只会在文档配置中多一条记录,不会在文档中心中多一个文档的根目录,如果需要同时新增出文档中心的根目录需要调用 @see com.justep.doc.Doc @see com.justep.doc.Docs 相关api新增出doc相关对象。 Doc对象约定
- Doc对象的id必须和DocServerDefine对象的id相同
- Doc对象的sNameSpace必须和DocServerDefine对象的id相同
- Doc对象的sDocPath必须为"/"
- Doc对象的sDocName推荐和DocServerDefine对象的sDisplayName相同
public
Table
toTable
()
转换成Table