001/* 002 * Copyright (c) 2009 The openGion Project. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 013 * either express or implied. See the License for the specific language 014 * governing permissions and limitations under the License. 015 */ 016package org.opengion.hayabusa.report; 017 018import java.util.Map; 019 020import org.opengion.hayabusa.db.DBTableModel; 021 022/** 023 * RFID発行処理のためのBPELサービスを起動するためのインターフェースです。 024 * 025 * @og.group 帳票システム 026 * 027 * @version 4.0 028 * @author Hiroki Nakamura 029 * @since JDK5.0, 030 */ 031public interface RFIDPrintPointService { 032 033 /** 034 * 帳票起動された要求番号をセットします。 035 * 036 * @param ykno 要求NO 037 */ 038 void setYkno( String ykno ) ; 039 040 /** 041 * システムIDをセットします。 042 * 043 * @param systemId システムID 044 */ 045 void setSystemId( String systemId ) ; 046 047 /** 048 * 実行方法をセットします。 049 * 050 * @param fgrun 実行方法 051 */ 052 void setFgrun( String fgrun ) ; 053 054 /** 055 * 帳票デーモンが実行されているホスト名をセットします。 056 * 057 * @param hostName ホスト名 058 */ 059 void setHostName( String hostName ) ; 060 061 /** 062 * プリンター名をセットします。 063 * 064 * @param printerName プリンタ名 065 */ 066 void setPrinterName( String printerName ) ; 067 068 /** 069 * DBTableModel をセットします。 070 * 071 * @param table DBTableModelオブジェクト 072 */ 073 void setTable( DBTableModel table ) ; 074 075 /** 076 * RFIDのレイアウトデータをセットします。 077 * キーはカラム名です。 078 * 値はGE58で定義された出力区分及びパラメーターの配列です。 079 * 配列の各インデックス番号の意味は、RFIDPrintRequestを参照して下さい。 080 * 081 * @param layout RFIDレイアウト 082 */ 083 void setLayout( Map<String, String[]> layout ) ; 084 085 /** 086 * REPORT_RFID_SERVICE_CLASSから起動するプログラムのディレクトリをセットします。 087 * 088 * @og.rev 4.3.3.0 (2008/10/01) 板金RFID対応 089 * @param dir PG起動ディレクトリ 090 */ 091 void setPrgDir( String dir ); 092 093 /** 094 * REPORT_RFID_SERVICE_CLASSから起動するプログラムをセットします。 095 * 096 * @og.rev 4.3.3.0 (2008/10/01) 板金RFID対応 097 * @param file PGファイル名 098 */ 099 void setPrgFile( String file ); 100 101 /** 102 * ファイル出力時のディレクトリを指定します 103 * 104 * @og.rev 4.3.3.0 (2008/10/01) 板金RFID対応 105 * @param dir 出力ディレクトリ 106 */ 107 void setOutDir( String dir ); 108 109 /** 110 * プリンタIDをセットします。 111 * 112 * @og.rev 5.4.3.0 (2011/12/26) _DEFAULT対応 113 * @param id プリンタID 114 */ 115 void setPrtId( String id ); 116 117 /** 118 * プリンターポート名をセットします。 119 * 120 * @og.rev 5.4.3.1 (2011/12/27) 121 * @param port ポート名 122 */ 123 void setPortnm( String port ) ; 124 125 /** 126 * 帳票IDをセットします。 127 * 128 * @og.rev 5.4.3.4 (2012/01/12) 129 * @param id 帳票ID 130 */ 131 void setListId( String id ) ; 132 133 /** 134 * レイアウトファイルをセットします。 135 * 136 * @og.rev 5.4.3.9 (2012/01/25) 追加要望 137 * @param file レイアウトファイル 138 */ 139 void setLayoutFile( String file ); 140 141 /** 142 * 現在の印刷状況を返します 143 * 144 * @og.rev 4.3.3.0 (2008/10/01) 板金RFID対応 145 * 146 * @return 完成フラグ 147 */ 148 String getFgkan(); 149 150 /** 151 * エラーメッセージを返します 152 * 153 * @og.rev 4.3.3.0 (2008/10/01) 板金RFID対応 154 * 155 * @return エラーメッセージ 156 */ 157 String getErrMsg(); 158 159 /** 160 * RFID発行処理を実行します。 161 * 162 * @og.rev 4.3.3.0 (2008/10/01) 板金RFID voidからbooleanに変更 163 * 164 * @return 実行結果[true:正常/false:異常] 165 */ 166 // void execute() ; 167 boolean execute() ; 168}