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     */
016    package org.opengion.hayabusa.report;
017    
018    import java.util.Map;
019    
020    import 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     */
031    public interface RFIDPrintPointService {
032    
033            /**
034             * 帳票起動された要求番号をセãƒ?ƒˆしますã?
035             *
036             * @param   ykno 要æ±?O
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    }