簡體   English   中英

如何在JAVA中定義NotesXspDocument對象

[英]How to define a NotesXspDocument Object in JAVA

在我正在處理的JAVA bean中,我想將NotesXspDocument(可以使用NotesDocument)傳遞給一個如下所示的方法:

public List<String>  getReaders(NotesXspDocument thisXspDoc){
// do some stuff

}

但是JAVA無法識別NotesXspDocument定義。 我導入了以下包:

import lotus.domino.NotesException;
import lotus.domino.Session;
import lotus.domino.Database;
import lotus.domino.View;
import lotus.domino.Document;

是否還有一個要導入的包以使用NotesXspDocument?

NotesXspDocument是僅SSJS別名; 真正的類是com.ibm.xsp.model.domino.wrapped.DominoDocumenthttp//public.dhe.ibm.com/software/dw/lotus/Domino-Designer/JavaDocs/DesignerAPIs/com/ibm/xsp/模型/多米諾/包裹/ DominoDocument.html

詳細說明Jesses答案:在您的情況下,您需要這樣做才能使用XPage版本的Document:

import com.ibm.xsp.model.domino.wrapped.DominoDocument;

public List<String> getReaders(DominoDocument thisXspDoc){
    // do some stuff
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM