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 TypeFieldDescriptionboolean
UPOS property CapAddMarker.boolean
UPOS property CapErasableMedium.boolean
UPOS property CapInitializeMedium.boolean
UPOS property CapMediumIsAvailable.boolean
UPOS property CapPrintContent.boolean
UPOS property CapPrintContentFile.boolean
UPOS property CapRetrieveCurrentMarker.boolean
UPOS property CapRetrieveMarker.boolean
UPOS property CapRetrieveMarkerByDateTime.boolean
UPOS property CapRetrieveMarkersDateTime.int
UPOS property CapStation.boolean
UPOS property CapStorageEnabled.boolean
UPOS property CapSuspendPrintContent.boolean
UPOS property CapSuspendQueryContent.boolean
UPOS property CapWaterMark.long
UPOS property MediumFreeSpace.long
Default value of MediumFreeSpace property.UPOS property MediumID.Default value of MediumID property.boolean
UPOS property MediumIsAvailable.boolean
Default value of MediumIsAvailable property.long
UPOS property MediumSize.long
Default value of MediumSize property.int
UPOS property Station.boolean
UPOS property StorageEnabled.boolean
UPOS property Suspended.boolean
UPOS 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 TypeMethodDescriptionvoid
Final part of AddMarker method.void
Final part of CancelPrintContent method.void
Final part of CancelQueryContent method.void
Clear input processing: Clear data event list, clear data event count, set State to idle.void
Clear output processing.Validation part of EraseMedium method.void
eraseMedium(EraseMedium request)
Final part of EraseMedium method.void
initializeMedium(InitializeMedium request)
Final part of InitializeMedium method.initializeMedium(String mediumID)
Validation part of InitializeMedium method.void
initOnEnable(boolean enable)
Initialization of properties that must be initialized during deviceEnable.boolean
Initialize properties that must be initialized whenever the device will be enabled the first time-void
Initialization of properties that must be initialized during open.Class factory for JposOutputRequests.void
printContent(PrintContent request)
Final part of PrintContent method.printContent(String fromMarker, String toMarker)
Validation part of PrintContent method.void
printContentFile(PrintContentFile request)
Final part of PrintContentFile method.printContentFile(String fileName)
Validation part of PrintContentFile method.void
queryContent(QueryContent request)
Final part of QueryContent method.queryContent(String fileName, String fromMarker, String toMarker)
Validation part of QueryContent method.void
Final part of ResumePrintContent method.void
Final part of ResumeQueryContent method.void
retrieveCurrentMarker(int markerType, String[] marker)
Final part of RetrieveCurrentMarker method.void
retrieveMarker(int markerType, int sessionNumber, int documentNumber, String[] marker)
Final part of RetrieveMarker method.void
retrieveMarkerByDateTime(int markerType, String dateTime, String markerNumber, String[] marker)
Final part of RetrieveMarkerByDateTime method.void
retrieveMarkersDateTime(String marker, String[] dateTime)
Final part of RetrieveMarkersDateTime method.void
Initiates input retrieval.void
Initiates output retrieval.void
station(int station)
Final part of setting Station.void
storageEnabled(boolean flag)
Final part of setting StorageEnabled.void
Final part of SuspendPrintContent method.void
Final part of SuspendQueryContent method.void
waterMark(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, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:JposCommonProperties
Initialization of properties that must be initialized during open.- Overrides:
initOnOpen
in classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnable
in classJposCommonProperties
- Returns:
- Returns true in case of first enable.
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonProperties
Initialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnable
in classJposCommonProperties
- Parameters:
enable
- True: initialize properties, false: do nothing
-
newJposOutputRequest
Description copied from interface:JposBaseInterface
Class factory for JposOutputRequests.- Specified by:
newJposOutputRequest
in interfaceJposBaseInterface
- Overrides:
newJposOutputRequest
in classJposCommonProperties
- Returns:
- A new instance of JposOutputRequest or a derived class.
-
clearInput
public void clearInput() throws jpos.JposExceptionDescription copied from interface:JposBaseInterface
Clear 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:
clearInput
in interfaceJposBaseInterface
- Overrides:
clearInput
in classJposCommonProperties
- Throws:
jpos.JposException
- See UPOS specification, method ClearInput
-
clearOutput
public void clearOutput() throws jpos.JposExceptionDescription copied from interface:JposBaseInterface
Clear 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:
clearOutput
in interfaceJposBaseInterface
- Overrides:
clearOutput
in classJposCommonProperties
- Throws:
jpos.JposException
- See UPOS specification, method ClearOutput
-
retryOutput
public void retryOutput()Description copied from interface:JposBaseInterface
Initiates output retrieval. Must be overwritten in devices that support retrying output operations.- Specified by:
retryOutput
in interfaceJposBaseInterface
- Overrides:
retryOutput
in classJposCommonProperties
-
retryInput
public void retryInput()Description copied from interface:JposBaseInterface
Initiates input retrieval. Must be overwritten in devices that support retrying input operation.- Specified by:
retryInput
in interfaceJposBaseInterface
- Overrides:
retryInput
in classJposCommonProperties
-
station
public void station(int station) throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterface
Final 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:
station
in 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:ElectronicJournalInterface
Final 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:
storageEnabled
in 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:ElectronicJournalInterface
Final 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:
waterMark
in interfaceElectronicJournalInterface
- Parameters:
flag
- New WaterMark value.- Throws:
jpos.JposException
- If an error occurs.
-
addMarker
Description copied from interface:ElectronicJournalInterface
Final 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:
addMarker
in interfaceElectronicJournalInterface
- Parameters:
marker
- Marker identifier.- Throws:
jpos.JposException
- If an error occurs.
-
eraseMedium
Description copied from interface:ElectronicJournalInterface
Validation 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:
eraseMedium
in interfaceElectronicJournalInterface
- Returns:
- EraseMedium object for use in final part.
- Throws:
jpos.JposException
- If an error occurs.
-
eraseMedium
Description copied from interface:ElectronicJournalInterface
Final 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:
eraseMedium
in 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:ElectronicJournalInterface
Validation 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:
initializeMedium
in 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:ElectronicJournalInterface
Final 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:
initializeMedium
in 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:ElectronicJournalInterface
Validation 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:
printContent
in 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:ElectronicJournalInterface
Final 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:
printContent
in 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:ElectronicJournalInterface
Validation 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:
printContentFile
in 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:ElectronicJournalInterface
Final 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:
printContentFile
in 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:ElectronicJournalInterface
Validation 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:
queryContent
in 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:ElectronicJournalInterface
Final 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:
queryContent
in 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:ElectronicJournalInterface
Final 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:
cancelPrintContent
in interfaceElectronicJournalInterface
- Throws:
jpos.JposException
- If an error occurs.
-
cancelQueryContent
public void cancelQueryContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterface
Final 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:
cancelQueryContent
in interfaceElectronicJournalInterface
- Throws:
jpos.JposException
- If an error occurs.
-
resumePrintContent
public void resumePrintContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterface
Final 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:
resumePrintContent
in interfaceElectronicJournalInterface
- Throws:
jpos.JposException
- If an error occurs.
-
resumeQueryContent
public void resumeQueryContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterface
Final 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:
resumeQueryContent
in interfaceElectronicJournalInterface
- Throws:
jpos.JposException
- If an error occurs.
-
retrieveCurrentMarker
Description copied from interface:ElectronicJournalInterface
Final 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:
retrieveCurrentMarker
in 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:ElectronicJournalInterface
Final 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:
retrieveMarker
in 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:ElectronicJournalInterface
Final 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:
retrieveMarkerByDateTime
in 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:ElectronicJournalInterface
Final 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:
retrieveMarkersDateTime
in 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:ElectronicJournalInterface
Final 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:
suspendPrintContent
in interfaceElectronicJournalInterface
- Throws:
jpos.JposException
- If an error occurs.
-
suspendQueryContent
public void suspendQueryContent() throws jpos.JposExceptionDescription copied from interface:ElectronicJournalInterface
Final 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:
suspendQueryContent
in interfaceElectronicJournalInterface
- Throws:
jpos.JposException
- If an error occurs.
-