intra-mart 6.1.14

jp.co.intra_mart.foundation.security.account
クラス StandardAccountBackup

java.lang.Object
  拡張jp.co.intra_mart.foundation.security.account.StandardAccountBackup
すべての実装インタフェース:
AccountExporter, AccountImporter

public class StandardAccountBackup
extends Object
implements AccountImporter, AccountExporter

アカウント情報をインポート・エクスポートするクラス。

アカウント情報をXML形式でインポート・エクスポートするクラスです。

このクラスを[ServerManager]/access-security.xmlのbackup-configタグ内に設定して利用します。

設定例

 <backup-config>
   <backup-group>
     <category>カテゴリ名</category>
     <account-backup>
       <import>
          <import-class>jp.co.intra_mart.foundation.security.account.StandardAccountBackup</import-class>
       </import>
       <export>
         <export-class>jp.co.intra_mart.foundation.security.account.StandardAccountBackup</export-class>
       </export>
     </account-backup>
   </backup-group>
 <backup-config>
 

導入されたバージョン:
5.0
バージョン:
2.0

フィールドの概要
static String ID_CRYPTION_CLASS
          暗号化クラス名
 
コンストラクタの概要
StandardAccountBackup()
           
 
メソッドの概要
 void doExport(AccountManager manager, OutputStream outputStream)
          エクスポートを行います。
 void doImport(InputStream inputStream, AccountManager manager)
          インポートを行います。
protected  Account[] getAllAccounts(String groupId)
           
 void init(Map params)
          初期化。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ID_CRYPTION_CLASS

public static final String ID_CRYPTION_CLASS
暗号化クラス名

関連項目:
定数フィールド値
コンストラクタの詳細

StandardAccountBackup

public StandardAccountBackup()
メソッドの詳細

init

public void init(Map params)
初期化。

初期化する。

定義:
インタフェース AccountImporter 内の init
パラメータ:
params - 初期化パラメータのマップ(Map)

doImport

public void doImport(InputStream inputStream,
                     AccountManager manager)
              throws AccessSecurityImportException
インポートを行います。

ストリーム内の情報からアカウント情報を生成します。

定義:
インタフェース AccountImporter 内の doImport
パラメータ:
manager - アカウントマネージャクラス
inputStream - 入力ストリーム
例外:
AccessSecurityImportException

doExport

public void doExport(AccountManager manager,
                     OutputStream outputStream)
              throws AccessSecurityExportException
エクスポートを行います。

アカウントバックアップ情報を生成し、ストリームに返却します。

定義:
インタフェース AccountExporter 内の doExport
パラメータ:
manager - アカウントマネージャクラス
outputStream - 出力ストリーム
例外:
AccessSecurityExportException

getAllAccounts

protected Account[] getAllAccounts(String groupId)
                            throws AccessSecurityException
例外:
AccessSecurityException

intra-mart 6.1.14

Copyright © 2000-2010 NTT DATA INTRAMART CO.,LTD.. All Rights Reserved.