API
Class

com.justep.doc.DocServerDefines (com.justep.doc.DocServerDefines)

使用范围: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 ()

文档服务定义容器类

Methods Detail Top

public DocServerDefine add (String sID, String sDisplayName, String sUrl, String sAccessMode)

新增

Parameters

String sID

文档服务id

String sDisplayName

文档服务名称

String sUrl

文档服务地址(一般为http://localhost:8080/DocServer 这种格式)

String sAccessMode

访问模式(1 采用ui转调 0采用直连模式,推荐采用ui转调,除非你确定的知道直连的细节否则不推荐采用直连)

Return Value

DocServerDefine

public DocServerDefine getDocServerByPath (String docPath)

通过文档路径获得是文档服器务信息

Parameters

String docPath

文档路径

Return Value

DocServerDefine

public DocServerDefine getIndex (String index)

获取容器中指定的文档

Parameters

String index

文档服务的位置

Return Value

DocServerDefine

public Iterator getIterator ()

返回所有文档服务的迭代器。

Return Value

Iterator

public String refresh ()

重新加载所有的文档服务信息

Return Value

String

public DocServerDefine remove (String index)

从容器中移除指定的文档

Parameters

String index

要删除文档服务的位置

Return Value

DocServerDefine

public int save ()

保存 (注意这里保存的时候,只会在文档配置中多一条记录,不会在文档中心中多一个文档的根目录,如果需要同时新增出文档中心的根目录需要调用 @see com.justep.doc.Doc @see com.justep.doc.Docs 相关api新增出doc相关对象。 Doc对象约定

Return Value

int

public Table toTable ()

转换成Table

Return Value

Table