Class ElectronicJournalProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.electronicjournal.ElectronicJournalProperties
- All Implemented Interfaces:
ElectronicJournalInterface,JposBaseInterface
- Direct Known Subclasses:
ElectronicJournal
public class ElectronicJournalProperties
extends JposCommonProperties
implements ElectronicJournalInterface
Class containing the electronic journal specific properties, their default values and default implementations of
ElectronicJournalInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Electronic Journal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanUPOS property CapAddMarker.booleanUPOS property CapErasableMedium.booleanUPOS property CapInitializeMedium.booleanUPOS property CapMediumIsAvailable.booleanUPOS property CapPrintContent.booleanUPOS property CapPrintContentFile.booleanUPOS property CapRetrieveCurrentMarker.booleanUPOS property CapRetrieveMarker.booleanUPOS property CapRetrieveMarkerByDateTime.booleanUPOS property CapRetrieveMarkersDateTime.intUPOS property CapStation.booleanUPOS property CapStorageEnabled.booleanUPOS property CapSuspendPrintContent.booleanUPOS property CapSuspendQueryContent.booleanUPOS property CapWaterMark.longUPOS property MediumFreeSpace.longDefault value of MediumFreeSpace property.UPOS property MediumID.Default value of MediumID property.booleanUPOS property MediumIsAvailable.booleanDefault value of MediumIsAvailable property.longUPOS property MediumSize.longDefault value of MediumSize property.intUPOS property Station.booleanUPOS property StorageEnabled.booleanUPOS property Suspended.booleanUPOS property WaterMark.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFinal part of AddMarker method.voidFinal part of CancelPrintContent method.voidFinal part of CancelQueryContent method.voidClear input processing: Clear data event list, clear data event count, set State to idle.voidClear output processing.Validation part of EraseMedium method.voideraseMedium(EraseMedium request)Final part of EraseMedium method.voidinitializeMedium(InitializeMedium request)Final part of InitializeMedium method.initializeMedium(String mediumID)Validation part of InitializeMedium method.voidinitOnEnable(boolean enable)Initialization of properties that must be initialized during deviceEnable.booleanInitialize properties that must be initialized whenever the device will be enabled the first time-voidInitialization of properties that must be initialized during open.Class factory for JposOutputRequests.voidprintContent(PrintContent request)Final part of PrintContent method.printContent(String fromMarker, String toMarker)Validation part of PrintContent method.voidprintContentFile(PrintContentFile request)Final part of PrintContentFile method.printContentFile(String fileName)Validation part of PrintContentFile method.voidqueryContent(QueryContent request)Final part of QueryContent method.queryContent(String fileName, String fromMarker, String toMarker)Validation part of QueryContent method.voidFinal part of ResumePrintContent method.voidFinal part of ResumeQueryContent method.voidretrieveCurrentMarker(int markerType, String[] marker)Final part of RetrieveCurrentMarker method.voidretrieveMarker(int markerType, int sessionNumber, int documentNumber, String[] marker)Final part of RetrieveMarker method.voidretrieveMarkerByDateTime(int markerType, String dateTime, String markerNumber, String[] marker)Final part of RetrieveMarkerByDateTime method.voidretrieveMarkersDateTime(String marker, String[] dateTime)Final part of RetrieveMarkersDateTime method.voidInitiates input retrieval.voidInitiates output retrieval.voidstation(int station)Final part of setting Station.voidstorageEnabled(boolean flag)Final part of setting StorageEnabled.voidFinal part of SuspendPrintContent method.voidFinal part of SuspendQueryContent method.voidwaterMark(boolean flag)Final part of setting WaterMark.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearErrorProperties, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
CapAddMarker
public boolean CapAddMarkerUPOS property CapAddMarker. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapErasableMedium
public boolean CapErasableMediumUPOS property CapErasableMedium. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapInitializeMedium
public boolean CapInitializeMediumUPOS property CapInitializeMedium. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapMediumIsAvailable
public boolean CapMediumIsAvailableUPOS property CapMediumIsAvailable. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPrintContent
public boolean CapPrintContentUPOS property CapPrintContent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPrintContentFile
public boolean CapPrintContentFileUPOS property CapPrintContentFile. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRetrieveCurrentMarker
public boolean CapRetrieveCurrentMarkerUPOS property CapRetrieveCurrentMarker. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRetrieveMarker
public boolean CapRetrieveMarkerUPOS property CapRetrieveMarker. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRetrieveMarkerByDateTime
public boolean CapRetrieveMarkerByDateTimeUPOS property CapRetrieveMarkerByDateTime. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRetrieveMarkersDateTime
public boolean CapRetrieveMarkersDateTimeUPOS property CapRetrieveMarkersDateTime. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapStation
public int CapStationUPOS property CapStation. Default: S_RECEIPT. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapStorageEnabled
public boolean CapStorageEnabledUPOS property CapStorageEnabled. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSuspendPrintContent
public boolean CapSuspendPrintContentUPOS property CapSuspendPrintContent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSuspendQueryContent
public boolean CapSuspendQueryContentUPOS property CapSuspendQueryContent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapWaterMark
public boolean CapWaterMarkUPOS property CapWaterMark. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MediumFreeSpaceDef
public long MediumFreeSpaceDefDefault value of MediumFreeSpace property. Default: 0. Must be overwritten by objects derived from JposDevice within the changeDefaults method. -
MediumFreeSpace
public long MediumFreeSpaceUPOS property MediumFreeSpace. -
MediumIDDef
Default value of MediumID property. Default: "". Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MediumID
UPOS property MediumID. -
MediumIsAvailableDef
public boolean MediumIsAvailableDefDefault value of MediumIsAvailable property. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MediumIsAvailable
public boolean MediumIsAvailableUPOS property MediumIsAvailable. -
MediumSizeDef
public long MediumSizeDefDefault value of MediumSize property. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MediumSize
public long MediumSizeUPOS property MediumSize. -
Station
public int StationUPOS property Station. Default: S_RECEIPT. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
StorageEnabled
public boolean StorageEnabledUPOS property StorageEnabled. -
Suspended
public boolean SuspendedUPOS property Suspended. -
WaterMark
public boolean WaterMarkUPOS property WaterMark. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
-
-
Constructor Details
-
ElectronicJournalProperties
public ElectronicJournalProperties(int dev)Constructor.- Parameters:
dev- Device index
-
-
Method Details
-
initOnOpen
public void initOnOpen()Description copied from class:JposCommonPropertiesInitialization of properties that must be initialized during open.- Overrides:
initOnOpenin classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonPropertiesInitialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnablein classJposCommonProperties- Returns:
- Returns true in case of first enable.
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonPropertiesInitialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnablein classJposCommonProperties- Parameters:
enable- True: initialize properties, false: do nothing
-
newJposOutputRequest
Description copied from interface:JposBaseInterfaceClass factory for JposOutputRequests.- Specified by:
newJposOutputRequestin interfaceJposBaseInterface- Overrides:
newJposOutputRequestin classJposCommonProperties- Returns:
- A new instance of JposOutputRequest or a derived class.
-
clearInput
public void clearInput() throws jpos.JposExceptionDescription copied from interface:JposBaseInterfaceClear input processing: Clear data event list, clear data event count, set State to idle. This method will be called only if the following plausibility checks lead to a positive result:- Device has not been closed,
- ExclusiveUse equals ExclusiveYes: Device is claimed.
- Specified by:
clearInputin interfaceJposBaseInterface- Overrides:
clearInputin classJposCommonProperties- Throws:
jpos.JposException- See UPOS specification, method ClearInput
-
clearOutput
public void clearOutput() throws jpos.JposExceptionDescription copied from interface:JposBaseInterfaceClear output processing. Removes all OutputCompleteEvents and ErrorEvents from event queue and sets State to S_IDLE. Clears all outstanding commands of the given property set as well. This method will be called only if the following plausibility checks lead to a positive result:- Device has not been closed,
- ExclusiveUse equals ExclusiveYes: Device is claimed.
- Specified by:
clearOutputin interfaceJposBaseInterface- Overrides:
clearOutputin classJposCommonProperties- Throws:
jpos.JposException- See UPOS specification, method ClearOutput
-
retryOutput
public void retryOutput()Description copied from interface:JposBaseInterfaceInitiates output retrieval. Must be overwritten in devices that support retrying output operations.- Specified by:
retryOutputin interfaceJposBaseInterface- Overrides:
retryOutputin classJposCommonProperties
-
retryInput
public void retryInput()Description copied from interface:JposBaseInterfaceInitiates input retrieval. Must be overwritten in devices that support retrying input operation.- Specified by:
retryInputin interfaceJposBaseInterface- Overrides:
retryInputin classJposCommonProperties
-
station
public void station(int station) throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of setting Station. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- All bits set in station are set in CapStation as well,
- internal property AllowAlwaysSetProperties is true or station equals the previous value of Station.
- Specified by:
stationin interfaceElectronicJournalInterface- Parameters:
station- Station for subsequent storing data into journal.- Throws:
jpos.JposException- If an error occurs.
-
storageEnabled
public void storageEnabled(boolean flag) throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of setting StorageEnabled. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapStorageEnabled is true or flag is true.
- Specified by:
storageEnabledin interfaceElectronicJournalInterface- Parameters:
flag- New StorageEnabled value.- Throws:
jpos.JposException- If an error occurs.
-
waterMark
public void waterMark(boolean flag) throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of setting WaterMark. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapWaterMark is true or flag is false,
- internal property AllowAlwaysSetProperties is true or flag equals the previous value of WaterMark.
- Specified by:
waterMarkin interfaceElectronicJournalInterface- Parameters:
flag- New WaterMark value.- Throws:
jpos.JposException- If an error occurs.
-
addMarker
Description copied from interface:ElectronicJournalInterfaceFinal part of AddMarker method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapAddMarker is true.
- Specified by:
addMarkerin interfaceElectronicJournalInterface- Parameters:
marker- Marker identifier.- Throws:
jpos.JposException- If an error occurs.
-
eraseMedium
Description copied from interface:ElectronicJournalInterfaceValidation part of EraseMedium method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapErasableMedium is true,
- CapMediumIsAvailable is false or MediumIsAvailable is true.
- Specified by:
eraseMediumin interfaceElectronicJournalInterface- Returns:
- EraseMedium object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
eraseMedium
Description copied from interface:ElectronicJournalInterfaceFinal part of EraseMedium method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a EraseMedium object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
eraseMediumin interfaceElectronicJournalInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by EraseMedium.- Throws:
jpos.JposException- If an error occurs.
-
initializeMedium
Description copied from interface:ElectronicJournalInterfaceValidation part of InitializeMedium method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapInitializeMedium is true,
- mediumID in not null.
- Specified by:
initializeMediumin interfaceElectronicJournalInterface- Parameters:
mediumID- Medium identifier.- Returns:
- InitializeMedium object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
initializeMedium
Description copied from interface:ElectronicJournalInterfaceFinal part of InitializeMedium method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a InitializeMedium object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
initializeMediumin interfaceElectronicJournalInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by InitializeMedium.- Throws:
jpos.JposException- If an error occurs.
-
printContent
Description copied from interface:ElectronicJournalInterfaceValidation part of PrintContent method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrintContent is true,
- Neither fromMarker nor toMarker is null.
- Specified by:
printContentin interfaceElectronicJournalInterface- Parameters:
fromMarker- Marker that marks start position of data to be printed.toMarker- Marker that marks end position of data to be printed.- Returns:
- PrintContent object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printContent
Description copied from interface:ElectronicJournalInterfaceFinal part of PrintContent method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintContent object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
printContentin interfaceElectronicJournalInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintContent.- Throws:
jpos.JposException- If an error occurs.
-
printContentFile
Description copied from interface:ElectronicJournalInterfaceValidation part of PrintContentFile method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrintContentFile is true,
- fileName is not null.
- Specified by:
printContentFilein interfaceElectronicJournalInterface- Parameters:
fileName- Name of file that contains printing data.- Returns:
- PrintContentFile object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printContentFile
Description copied from interface:ElectronicJournalInterfaceFinal part of PrintContentFile method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintContentFile object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
printContentFilein interfaceElectronicJournalInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintContentFile.- Throws:
jpos.JposException- If an error occurs.
-
queryContent
public QueryContent queryContent(String fileName, String fromMarker, String toMarker) throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceValidation part of QueryContent method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- fileName is not null,
- Neither fromMarker nor toMarker is null.
- Specified by:
queryContentin interfaceElectronicJournalInterface- Parameters:
fileName- Filename to be used to store queried contents.fromMarker- Name of lower bound marker.toMarker- Name of upper bound marker.- Returns:
- QueryContent object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
queryContent
Description copied from interface:ElectronicJournalInterfaceFinal part of QueryContent method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a QueryContent object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
queryContentin interfaceElectronicJournalInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by QueryContent.- Throws:
jpos.JposException- If an error occurs.
-
cancelPrintContent
public void cancelPrintContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of CancelPrintContent method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSuspendPrintContent is true,
- Suspended is true.
- Specified by:
cancelPrintContentin interfaceElectronicJournalInterface- Throws:
jpos.JposException- If an error occurs.
-
cancelQueryContent
public void cancelQueryContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of CancelQueryContent method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSuspendQueryContent is true,
- Suspended is true.
- Specified by:
cancelQueryContentin interfaceElectronicJournalInterface- Throws:
jpos.JposException- If an error occurs.
-
resumePrintContent
public void resumePrintContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of ResumePrintContent method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSuspendPrintContent is true,
- Suspended is true.
- Specified by:
resumePrintContentin interfaceElectronicJournalInterface- Throws:
jpos.JposException- If an error occurs.
-
resumeQueryContent
public void resumeQueryContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of ResumeQueryContent method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSuspendQueryContent is true,
- Suspended is true.
- Specified by:
resumeQueryContentin interfaceElectronicJournalInterface- Throws:
jpos.JposException- If an error occurs.
-
retrieveCurrentMarker
Description copied from interface:ElectronicJournalInterfaceFinal part of RetrieveCurrentMarker method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- marker is a String array of length 1,
- CapRetrieveCurrentMarker is true,
- marterType is one of MT_SESSION_BEG, MT_SESSION_END, MT_DOCUMENT, MT_HEAD or MT_TAIL.
- Specified by:
retrieveCurrentMarkerin interfaceElectronicJournalInterface- Parameters:
markerType- Specifies the type of the queried current marker.marker- Contains the return value, the implementation specific marker.- Throws:
jpos.JposException- If an error occurs.
-
retrieveMarker
public void retrieveMarker(int markerType, int sessionNumber, int documentNumber, String[] marker) throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of RetrieveMarker method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- marker is a String array with length 1,
- CapRetrieveMarker is true,
- markerType is one of MT_SESSION_BEG, MT_SESSION_END or MT_DOCUMENT,
- documentNumber is ≥ 0.
- Specified by:
retrieveMarkerin interfaceElectronicJournalInterface- Parameters:
markerType- Specifies the type of the queried marker.sessionNumber- Contains the number of the session the marker is queried for.documentNumber- Contains the number of the document the marker is queried.marker- Contains the return value, the implementation specific marker.- Throws:
jpos.JposException- If an error occurs.
-
retrieveMarkerByDateTime
public void retrieveMarkerByDateTime(int markerType, String dateTime, String markerNumber, String[] marker) throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of RetrieveMarkerByDateTime method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Neither dateTime normarkerNumber is null,
- marker is a String array of length 1,
- CapRetrieveMarkerByDateTime is true,
- markerType is one of MT_SESSION_BEG, MT_SESSION_END or MT_DOCUMENT,
- dateTime consists of a valid date and - if present - a valid time,
- markerNumber is numeric, the value is ≥ 1,
- Specified by:
retrieveMarkerByDateTimein interfaceElectronicJournalInterface- Parameters:
markerType- Specifies the type of the queried marker.dateTime- The date-time period the marker is queried for.markerNumber- The number of the marker which has to be queried.marker- Contains the return value, the implementation specific marker.- Throws:
jpos.JposException- If an error occurs.
-
retrieveMarkersDateTime
Description copied from interface:ElectronicJournalInterfaceFinal part of RetrieveMarkersDateTime method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- marker is not null,
- dateTime is a String array of length 1,
- CapRetrieveMarkersDateTime is true.
- Specified by:
retrieveMarkersDateTimein interfaceElectronicJournalInterface- Parameters:
marker- Specifies the marker for which the time has to be determined.dateTime- Contains the return value, the date and time string of the given marker.- Throws:
jpos.JposException- If an error occurs.
-
suspendPrintContent
public void suspendPrintContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of SuspendPrintContent method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- State is S_BUSY,
- CapSuspendPrintContent is true,
- Suspended is false.
- Specified by:
suspendPrintContentin interfaceElectronicJournalInterface- Throws:
jpos.JposException- If an error occurs.
-
suspendQueryContent
public void suspendQueryContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterfaceFinal part of SuspendQueryContent method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- State is S_BUSY,
- CapSuspendQueryContent is true,
- Suspended is false.
- Specified by:
suspendQueryContentin interfaceElectronicJournalInterface- Throws:
jpos.JposException- If an error occurs.
-