public class GuiQueryTag extends QueryTag
●形式:<og:guiQuery command="…" roles="…" /> ●body:なし ●Tag定義: <og:guiQuery roles 【TAG】画面リソースの条件となるロールズを指定します level 【TAG】画面リソースの条件となるレベルを指定します rwmode 【TAG】画面リソースの条件となるRWモードを指定します command 【TAG】コマンド(NEW,RENEW)をセットします(PlsqlUpdateTag,UpdateTag の場合は、ENTRY) scope 【TAG】キャッシュする場合のスコープ[request/page/session/applicaton]を指定します(初期値:session) displayMsg 【TAG】検索結果を画面上に表示するメッセージリソースIDを指定します (初期値:VIEW_DISPLAY_MSG[=]) notfoundMsg 【TAG】検索結果がゼロ件の場合に表示するメッセージリソースIDを指定します(初期値:MSG0077[対象データはありませんでした]) tableId 【TAG】(通常は使いません)結果のDBTableModelを、sessionに登録するときのキーを指定します debug 【TAG】デバッグ情報を出力するかどうか[true/false]を指定します(初期値:false) > ... Body ... </og:guiQuery> ●使用例 <og:guiQuery command = "NEW" roles = "AA|BB|CC" />
5.2.2.0 (2010/11/01) 新規追加 |
CMD_NEW, CMD_RENEW, command, displayMsg, dyStart, errCode, errMessage, errMsgId, executeCount, maxRowCount, names, outMessage, quotCheck, skipRowCount, sql, stopError, table, tableId, xssCheck
bodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
コンストラクタと説明 |
---|
GuiQueryTag() |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
doStartTag()
Taglibの開始タグが見つかったときに処理する doStartTag() を オーバーライドします。
|
protected void |
execute()
guiQuery を実行します。
|
protected void |
release2()
タグリブオブジェクトをリリースします。
|
void |
setLevel(String lvl)
【TAG】画面リソースの条件となるレベルを指定します。
|
void |
setRoles(String rols)
【TAG】画面リソースの条件となるロールズを指定します。
|
void |
setRwmode(String mode)
【TAG】画面リソースの条件となるRWモードを指定します。
|
String |
toString()
このオブジェクトの文字列表現を返します。
|
doAfterBody, doEndTag, execute, getRequest, setCheckNames, setCommand, setDbid, setDisplayMsg, setMainTrans, setMaxRowCount, setModifyType, setNames, setNotfoundMsg, setOutMessage, setOverflowMsg, setQueryType, setQuotCheck, setSkipRowCount, setStopError, setStopZero, setTableId, setTrace, setUseBeforeHtmlTag, setXssCheck
add, add, addEventColumn, addEventColumn, check, check, commitTableObject, debugPrint, doCatch, doFinally, get, getApplicationInfo, getAttributes, getBodyRawString, getBodyString, getContextAttribute, getContextPath, getCookie, getCSVParameter, getDataCondition, getDateFormat, getDBColumn, getDBFunctionName, getDocumentLink, getGUIInfo, getGUIInfoAttri, getHostName, getLabel, getLabelInterface, getLanguage, getLASTAttri, getLongLabel, getMsglbl, getNVLAttri, getObject, getParameterNames, getParameterRows, getRequest, getRequestAttribute, getRequestCacheData, getRequestParameter, getRequestParameterValues, getRequestValue, getRequestValue, getRequestValues, getReservedParameter, getReservedValue, getResource, getSanitizedBodyString, getScope, getSessionAttribute, getTagName, getUser, getUserEditInfo, getUserInfo, isAjaxSubmitRequest, isDebug, isNoTransitionRequest, isNull, jspPrint, removeContextAttribute, removeObject, removeRequestAttribute, removeSessionAttribute, set, setAjaxSubmitRequest, setCaseKey, setCaseNN, setCaseNull, setCaseVal, setContextAttribute, setCookie, setDebug, setLanguage, setLbl, setNoTransitionRequest, setObject, setObject, setParameterNames, setParameterRows, setRequestAttribute, setRequestCacheData, setScope, setSessionAttribute, setUserInfo, startQueryTransaction, sys, sysBool, sysInt, useMainTrans, useQuotCheck, useTag, useXssCheck
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParent, setPageContext, setParent
public GuiQueryTag()
public int doStartTag()
doStartTag
インタフェース内 Tag
doStartTag
クラス内 QueryTag
protected void release2()
protected void execute()
public void setRoles(String rols)
rols
- ロールズロールズ判定は、ダミーユーザーを作成して通常の処理と同様の判定方式で 有効な画面リソースをピックアップします。
public void setLevel(String lvl)
lvl
- ロールズレベル判定は、文字列レベルの判定を行います。 画面リソースの階層番号(レベル)は、 0:グループ分類メニュー(class="GUI_GRP"のtdタグで囲われます) 1:トップ階層(【分類名称】) 2:選択階層(通常の折りたたみメニュー) 3:選択非表示(通常は、隠してあります) です。 ロール等の他の条件でピックアップされたリソースと AND 処理されます。 何も指定しなければ、すべてを対象とします。
public void setRwmode(String mode)
mode
- RWモードRWモード判定は、文字列レベルの判定を行います。(通常のRW判定と異なります) RWモードの代表的な記述は、mw,mr,-w,-r です。ここでは、特殊な検索は出来ないため、 上記文字列そのままで、一致するか、m,- の前方一致で判断するかのどちらかです。 ロール等の他の条件でピックアップされたリソースと AND 処理されます。 何も指定しなければ、すべてを対象とします。
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.