<< Click to Display Table of Contents >>
IOZRepository
Method Detail
setProperty
public void setProperty(SortProperties prop) throws OZRepositoryException
リポジトリ設定を変更します。"repository.properties"に設定されている値を変更できます。
設定できるKeyと値は後述の表を参照してください。
Parameters:
prop : リポジトリ設定属性
getRepositoryVersion
public int getRepositoryVersion()
リポジトリのバージョンを定義して定義したバージョンを取得します。
openRepository
public void openRepository() throws OZRepositoryException
サーバーの起動時にリポジトリを開きます。
closeRepository
public void closeRepository() throws OZRepositoryException
サーバーの終了時にリポジトリを終了します。
checkRepositoryLogin
public Object checkRepositoryLogin(String userName, String password, IOZLoginInfo loginInfo, HttpServletRequest request, HttpServlet servlet) throws OZRepositoryException
クライアントの呼び出し時、該当メソッドを呼び出してログインしたセッション情報を取得します。
Parameters:
userName : 接続したユーザー名
password : 接続したユーザーのパスワード
isCallServer : サーバーから呼び出しかを確認
loginInfo : ログイン情報。詳細はIOZLoginInfoインターフェースを参照してください。
request : HTTP Servelt Request
servlet : HTTP Servlet
updateSesssionState
public void updateSesssionState(Object sessionID, int type) throws OZRepositoryException
クライアントの呼び出し時、該当メソッドを呼び出してログインしたセッション情報を取得します。
Parameters:
sessionID : セッションID
type : サーバー状態。(0:DEFAULT、1:BARE_SERVER、2:FROM_SERVER)
repositoryLogout
public boolean repositoryLogout(Object sessionID, String userName, IOZLoginInfo loginInfo, HttpServletRequest request, HttpServlet servlet) throws OZRepositoryException
指定したユーザーIDに該当するユーザーをログアウト(接続解除)させてログアウトの実行結果を取得します。
Parameters:
sessionID : セッションID
userName : ユーザー名
loginInfo : ログイン情報(詳細は該当インターフェースを参照)
request : HTTP Servelt Request
servlet : HTTP Servlet
getRepositoryCategory
public IOZRepositoryCategory getRepositoryCategory() throws OZRepositoryException
カテゴリーインターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryItem
public IOZRepositoryItem getRepositoryItem() throws OZRepositoryException
アイテムインターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryItemHistory
public IOZRepositoryItemHistory getRepositoryItemHistory() throws OZRepositoryException
アイテムの履歴インターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryGroup
public IOZRepositoryGroup getRepositoryGroup() throws OZRepositoryException
グループインターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryUser
public IOZRepositoryUser getRepositoryUser() throws OZRepositoryException
ユーザーインターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryMultiLoginUser
public IOZRepositoryMultiLoginUser getRepositoryMultiLoginUser() throws OZRepositoryException
マルチログインユーザーのインターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryAuthGroupCategory
public IOZRepositoryAuthGroupCategory getRepositoryAuthGroupCategory() throws OZRepositoryException
カテゴリーに対するグループ権限インターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryAuthGroupItem
public IOZRepositoryAuthGroupItem getRepositoryAuthGroupItem() throws OZRepositoryException
アイテムに対するグループ権限インターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryAuthUserCategory
public IOZRepositoryAuthUserCategory getRepositoryAuthUserCategory() throws OZRepositoryException
カテゴリーに対するユーザー権限インターフェースを実装した場合に実装されたクラスを取得します。
getRepositoryAuthUserItem
public IOZRepositoryAuthUserItem getRepositoryAuthUserItem() throws OZRepositoryException
アイテムに対するユーザー権限インターフェースを実装した場合に実装されたクラスを取得します。
使用されるkeyは次の表のようです。
Key |
Description |
---|---|
REPOSITORY_TYPE |
リポジトリタイプ RDB, BUILTIN のいずれかの値を設定する。 |
REPOSITORY_FILE_PATH |
リポジトリファイルパス |
REPOSITORY_ITEM_NUMBER_PER_DIRECTORY |
ディレクトリ内保存可能なアイテムファイル数 (既定値:"500") |
REPOSITORY_HISTORY_ITEM_VALID_DAYS |
アイテムの有効期間 |
REPOSITORY_ADD_COMPRESSED_ITEM |
アイテムを圧縮するか否か(true/false) |