public class AppConfig extends Object implements AppProperties
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAY_HEIGHT |
static int |
DISPLAY_WIDTH |
static double |
DISPLAY_ZOOM |
static int |
MONITOR_HEIGHT |
static int |
MONITOR_WIDTH |
Modifier and Type | Method and Description |
---|---|
Boolean |
addTipsIsDefault()
Defines the default for the PayNote/AddTips button.
|
void |
addTipsIsDefault(Boolean addTipsIsdefault)
Set the default for the PayNote/AddTips button.
|
Boolean |
allowMultipleCurrencies()
Defines if more than one foreign curencies are allowed for payment
|
void |
allowMultipleCurrencies(Boolean allowMultipleCurrencies) |
Boolean |
allowOpenTickets()
If set to false, this option prevents the user from closing cash in case
there are open table tickets.
|
void |
allowOpenTickets(Boolean allowOpenTickets)
Define if open table tickets prevent the user from closing cash.
|
Boolean |
allowPartialAuthorization()
If true, partially authorized payments will be accepted.
|
void |
allowPartialAuthorization(Boolean allowPartialAuthorization)
Define if a card payment gateway shall handle partial autorization.
|
boolean |
auditModifiers()
Create an audit log entry any time a line is modified although the order
has already been sent.
|
Integer |
auditModifiersExclude() |
Integer |
backofficeConnectTimeout() |
Integer |
backofficeReadTimeout() |
boolean |
boldLabels()
Set to show form and button labels in normal type face if the default LAF
would show them in bold.
|
Boolean |
catInputFlag()
If catInputFlag is set to true a ticketline can be added with a free
price while the product description is taken from the category.
|
Boolean |
checkOpenTickets()
If checkOpenTciketsBeforeCloseCash is set to true a warning will be
displayed if there are still open tickets.
|
Boolean |
checkValueCard()
Defines if value cards are checked against the posper_valuecard table.
|
Boolean |
clearInputFields()
ClearInputFields allows to keep existing values in input fields when a
new product is inserted.
|
boolean |
delete() |
Boolean |
evalModifierTimersByCreatedAt()
Defines if a timer controlled modifier evaluates the current date or the
ticket lines createdAt date.
|
Boolean |
exitToLogin()
When the returnToLoginOption is active the user will be looged out when
being returned to the login screen.
|
Boolean |
filterByHost()
filterByHost defines if tickets are filtered when loaded.
|
CashRegister |
getActiveCash()
Get the current active Cashregister record.
|
Dimension |
getCatButtonSize()
catbutton.size=withd,height defines the dimension Category item buttons
|
String |
getCatButtonStyle()
catbutton.style=<css stylesheet style> can be used to set font,
size, color, etc of Category item buttons
|
Boolean |
getCatScrollbarAsNeeded()
The catalog tab is always shown with a scrollbar regardless the number of
catalog items.
|
String |
getCurrency()
Get the currency to be used as a foreign currency.
|
NumberFormat |
getCurrencyFormat() |
Dimension |
getCustomerFieldSize()
customerFieldSize.size=withd,height defines the dimension Category item
buttons
|
Properties |
getDbProperties() |
Date |
getDeliveryDate()
Returns the date and time for a new order ticket set by
Default.DeliveryTime=n,hh:mm where n is the days offset from today.
|
Point |
getDisplayPos()
Defines the position of the customer display frame on the second monitor
|
Dimension |
getDisplaySize()
Defines the size of the customer display frame on the second monitor
|
double |
getDisplayZoom()
Define a zoom factor for the customer display if shown on monitor2.
|
Map<Double,String> |
getFiscalTaxes()
Get the tax assignments for the German fiscal security module as defined
in fiscal.de.tax_assignments.
|
List<Integer> |
getFloorList()
The property showFloors=x,y,z,... lists visibleID's of floors that shall
be shown on the current terminals restaurant table map.
|
String |
getHost() |
static AppConfig |
getInstance() |
static AppConfig |
getInstance(AppView oApp) |
Location |
getInventoryLocation() |
Boolean |
getIsSlave()
Returns the registers slave property.
|
Integer |
getKmAutoRefresh()
Get the interval after that Kitchen Monitor order lines are automatically
refreshed.
|
Integer |
getKmEditTimeout()
Get the interval after that Kitchen Monitor automatically switches Edit
mode to off.
|
Integer |
getKmFilter()
Get the accounting level filter that Kitchen Monitor use to show line.
|
Boolean |
getKmPrintSelected()
kmPrintSelected causes KitchenView order lines to be immediately printed
when selected.
|
Integer |
getKmWarn1()
Get the interval after that Kitchen Monitor marks the time field yellow.
|
Integer |
getKmWarn2()
Get the interval after that Kitchen Monitor marks the time field red.
|
String |
getLocalHostName() |
String |
getMacAddress() |
Integer |
getMaxGuests()
The maximum number of guests for a ticket.
|
double |
getMaxLineAmount()
maxLineAmount indicates the maximally allowed number of items per line.
|
Integer |
getMaxSeats()
The maximum number accepted as input for the seat number in ticketline.
|
Integer |
getMaxTare() |
int |
getMembercardMask()
Retrieve the modifier mask applied when membercard payment occurs.
|
int |
getMonitor()
Get the number of the configured main monitor.
|
Dimension |
getMonitor2Size()
Defines the dimension of the second monitor
|
Dimension |
getMonitorSize()
Get the dimension of the main monitor.
|
static AppConfig |
getNewInstance()
Used by config to refresh configuration settings
|
Boolean |
getOpenCashCount()
openCashCount=true eanbles opening the CashCount form on close cash.
|
Boolean |
getPrintTicketDefault()
printTicket.Default=false deselects the printer button in PaymentSelect
by default.
|
Dimension |
getProdButtonSize()
prodbutton.size=withd,height defines the dimension of Product item
buttons
|
String |
getProdButtonStyle()
prodbutton.style=<css stylesheet style> can be used to set font,
size, color, etc of Product item buttons
|
Properties |
getProperties() |
String |
getProperty(String sKey)
Return the string value defined for the property key sKey
|
static File |
getPropFile() |
String |
getPwProperty(String key,
String passPhrase) |
Integer |
getRefreshTableView()
The time period in seconds to refresh the table viewe. values less than 0
means no refresh.
|
String |
getRegisterHost()
register.hostname defines the host to read cash register data from when
performing reports and statistics.
|
int |
getReservationSlotLength()
The slot length in minutes for the slot selection panel
|
Boolean |
getSeparatePanelsFlag()
separate.panels defines if products and categories are shown in different
panels set separate.panels=<true | false>.
|
String |
getServerURI()
Returns the servers base URI (see startMobileServer). default is
'http://localhost:8080/'
|
Boolean |
getShowDefaultButtonImage()
showdefault.buttonimage=false turns the default button image off. *
Default is false.
|
Boolean |
getShowDisplayOnClose()
showDisplayOnClose=true shows the customer displays output in the ticket
area after a transaction is closed.
|
Category |
getStartCategory()
start.category is the visibleId of the category which is selected on
login when products and categories have different panels
|
String |
getTableButtonStyle()
tablebutton.style=<css stylesheet style> can be used to set font,
size, color, etc of Table buttons
|
Integer |
getTicketScrollAmount()
Get the number of tickets to scroll forth or back in Edit Ticket
|
Double |
getTillFloat()
If present, close cash will suggest a cash out amount so that the amount
configured as till float remains in the drawer.
|
Integer |
getVarTareVisibleId() |
String |
getVirtualKeyboard()
Program.VirtualKeyboard=program path for the virtual keyboard program
|
String |
getVoucherURI()
Return the URI of the voucher server as String
|
Integer |
getWaitForDevices() |
Double |
grantCardDebtRelief()
If present, A membercard payment can closed if configured as till float
remains in the drawer.
|
Integer |
inactivityTimeLogin()
If the Return To Login Ooption is set to 'timer', this value defines the
period of inactivity in seconds before the user is being returned to the
login screen.
|
Boolean |
isExtDrawerDefault()
Set to true if the external drawer is used by default.
|
void |
loadDbProperties()
Loads entries from posper_property with key startingwith 'posper.'.
|
void |
loadLocalProperties() |
Integer |
lockOverdueTickets()
If the value n is >=0 POSper will not allow a ticket being older than n
minutes since ticket creation to be edited or printed in any way.
|
void |
logProperties(String msg)
Write the current properties to the log according to the option
logProperties.
|
void |
logProperties(String msg,
boolean escaped)
Write all properties into the posper log.
|
Integer |
maxChairsPerSlot()
In erporder mode, this defines the number of possible 'chairs' (=persons
present) for reservations occupied by a time slot.
|
boolean |
openDrawerEarly()
Opening the drawer might be delayed if many lines must be processed.
|
boolean |
paymentsByComment()
magcard payments can store the card cirduit in comment.
|
Boolean |
priceInCents()
priceInCents causes POSper to interpret price values in the sales panel
as 100th of the currency unit.
|
Boolean |
printAuditReceipt()
If useNoteForInvoice is set to true categories will always be displayed
in the catalog even if they do not contain any product.
|
Boolean |
printButtonDisabled()
Defines if the print button in the payment dialog is enabled.
|
void |
printButtonDisabled(Boolean printButtonDisabled) |
static void |
reloadProperties()
Create a new instance and reread the properties file.
|
Boolean |
restrictPlaceAccess()
If set to true, this option prevents the user from opening places that
belong to another user.
|
Boolean |
restrictTicketAccess()
If set to true, this option prevents the user from opening tickets that
belong to another user.
|
String |
returnToLogin()
Returns the returnToLoginType.
|
void |
save(String message)
Save the current local configuration.
|
void |
setActiveCash(CashRegister oActiveCash)
The active cash register must be reset after close cash!
|
void |
setCatAlwaysWithScrollbar(Boolean catAlwaysWithScrollbar)
Set catAlwaysWithScrollbar
|
void |
setCatButtonSize(String sSize)
catbutton.size=withd,height defines the dimension Category item buttons
|
void |
setCatButtonStyle(String sStyle)
prodbutton.style=<css stylesheet style> can be used to set font,
size, color, etc of Product item buttons
|
void |
setCatInputFlag(Boolean catInputFlag) |
void |
setCheckOpenTickets(Boolean checkOpenTicketsBeforeCloseCash) |
void |
setClearInputFields(boolean b)
Set the clearInputFields property Default is false.
|
void |
setCurrency(String currency) |
void |
setDbProperty(String sKey,
String sValue)
Create or update a property in the DB.
|
void |
setDeliveryDate(String defaultDeliveryDate) |
void |
setExitToLogin(Boolean exitToLogin) |
void |
setFilterByHost(Boolean filterByHost) |
void |
setInactivityTimeLogin(String inactivityTime) |
void |
setInventoryLocation(String inventoryLocation) |
void |
setIsSlave(Boolean isSlave)
Set the registers slave property
|
void |
setKmAutoRefresh(String kmAutoRefresh)
Set the interval after that Kitchen Monitor order lines are automatically
refreshed.
|
void |
setKmEditTimeout(String kmEditTimeout)
Set the interval after that Kitchen Monitor automatically switches Edit
mode to off.
|
void |
setKmFilter(String kmFilter)
Set the accounting level that Kitchen Monitor use to filter line.
|
void |
setKmPrintSelected(Boolean kmPrintSelected) |
void |
setKmWarn1(String kmWarn1)
Set the interval after that Kitchen Monitor marks the time field yellow.
|
void |
setKmWarn2(String kmWarn2)
Set the interval after that Kitchen Monitor marks the time field red.
|
void |
setLocalProperty(String sKey,
String sValue)
Create or update a local property.
|
void |
setMaxGuests(Integer maxGuests) |
void |
setMaxSeats(Integer maxSeats) |
void |
setPrintAuditReceipt(Boolean b) |
void |
setProdButtonSize(String sSize)
prodbutton.size=withd,height defines the dimension of Product item
buttons
|
void |
setProdButtonStyle(String sStyle)
prodbutton.style=<css stylesheet style> can be used to set font,
size, color, etc of Product item buttons
|
static void |
setPropFile(File propFile) |
void |
setPwProperty(String key,
char[] password,
String passPhrase) |
void |
setReturnToLogin(String returnToLogin) |
void |
setServerURI(String serverURI) |
void |
setShowDefaultButtonImage(Boolean showDefaultButtonImage) |
void |
setShowPrintDialog(Boolean showPrintDialog) |
void |
setTableButtonStyle(String sStyle)
tablebutton.style=<css stylesheet style> can be used to set font,
size, color, etc of Table buttons in Restaurant Mode
|
void |
setUseCardLogin(Boolean useCardLogin) |
void |
setUseCombinedTax(Boolean useCombinedTax) |
void |
setUseEan(Boolean useEan) |
boolean |
showPrintDialog()
showPrintDialog=false suppresses the print dialog for 'Printer' devices.
|
Boolean |
startMobileServer()
If startMobileServer is set to true the POSper instance will provide
RESTful services as defined in org.posper.webservice.
|
Boolean |
useCardLogin()
useCardLogin allows user change and re-entering from the login screen by
magnetic stripe card only.
|
Boolean |
useCombinedTax()
useCombinedTax must be set to true if one product can have two or more
tax rates assigned which will be added to a combined tax.
|
Boolean |
useEan()
useEan=true causes POSper to lookup products by codes stored in
PoductEan.
|
Boolean |
usePostFlag()
usePost=true causes the custom payment gateway to issue POST reqests
rather than GET requests Default is false.
|
public static final int MONITOR_WIDTH
public static final int MONITOR_HEIGHT
public static final int DISPLAY_WIDTH
public static final int DISPLAY_HEIGHT
public static final double DISPLAY_ZOOM
public static AppConfig getInstance()
public static AppConfig getNewInstance()
public void setLocalProperty(String sKey, String sValue)
sKey
- sValue
- public void setDbProperty(String sKey, String sValue)
sKey
- sValue
- public String getProperty(String sKey)
getProperty
in interface AppProperties
sKey
- public Properties getProperties()
public Properties getDbProperties()
public String getHost()
getHost
in interface AppProperties
public CashRegister getActiveCash()
public Boolean isExtDrawerDefault()
public Double getTillFloat()
public void setActiveCash(CashRegister oActiveCash)
oActiveCash
- public String getCatButtonStyle()
public Dimension getProdButtonSize()
public void setProdButtonSize(String sSize)
sSize
- string "width, height" in pixpublic Dimension getCatButtonSize()
public Dimension getCustomerFieldSize()
public void setCatButtonSize(String sSize)
sSize
- string "width, height" in pixpublic Dimension getMonitorSize()
public int getMonitor()
public Dimension getMonitor2Size()
public Dimension getDisplaySize()
public Point getDisplayPos()
public double getDisplayZoom()
public String getRegisterHost()
public Category getStartCategory()
public Location getInventoryLocation()
public void loadDbProperties()
public void logProperties(String msg)
msg
- Explaining messagepublic void logProperties(String msg, boolean escaped)
msg
- An explaining messageescaped
- If true, use the properties file format else write
unescaped text.public Boolean getSeparatePanelsFlag()
public Boolean filterByHost()
public Boolean getShowDisplayOnClose()
public Boolean getShowDefaultButtonImage()
public String getProdButtonStyle()
public String getTableButtonStyle()
public void setProdButtonStyle(String sStyle)
sStyle
- css-like stringpublic void setCatButtonStyle(String sStyle)
sStyle
- css-like stringpublic void setTableButtonStyle(String sStyle)
sStyle
- css-like stringpublic Boolean getPrintTicketDefault()
public Boolean getOpenCashCount()
public String getVirtualKeyboard()
public String getLocalHostName()
public String getMacAddress() throws SocketException
SocketException
public boolean delete()
public void loadLocalProperties()
public Date getDeliveryDate()
public boolean showPrintDialog()
public Boolean usePostFlag()
public Boolean useEan()
public Boolean priceInCents()
public int getMembercardMask()
public void save(String message) throws BasicException
message
- a warn log message indicating that the local configuration
has been saved and possibly changedBasicException
public static File getPropFile()
public static void setPropFile(File propFile)
public static void reloadProperties()
public String returnToLogin()
public Boolean exitToLogin()
public Integer inactivityTimeLogin()
public Boolean useCardLogin()
public Boolean clearInputFields()
public void setClearInputFields(boolean b)
b
- public Boolean useCombinedTax()
public Boolean checkOpenTickets()
public void setCheckOpenTickets(Boolean checkOpenTicketsBeforeCloseCash)
public Boolean catInputFlag()
public Boolean printAuditReceipt()
public Boolean startMobileServer()
public String getServerURI()
public void setPrintAuditReceipt(Boolean b)
public void setCatInputFlag(Boolean catInputFlag)
public void setFilterByHost(Boolean filterByHost)
public void setInactivityTimeLogin(String inactivityTime)
public void setDeliveryDate(String defaultDeliveryDate)
public void setExitToLogin(Boolean exitToLogin)
public void setInventoryLocation(String inventoryLocation)
public void setReturnToLogin(String returnToLogin)
public void setServerURI(String serverURI)
public void setShowPrintDialog(Boolean showPrintDialog)
public void setShowDefaultButtonImage(Boolean showDefaultButtonImage)
public void setUseCardLogin(Boolean useCardLogin)
public void setUseCombinedTax(Boolean useCombinedTax)
public void setUseEan(Boolean useEan)
public Integer getKmAutoRefresh()
public void setKmAutoRefresh(String kmAutoRefresh)
kmAutoRefresh
- the intervall in seconds as String.public Integer getKmEditTimeout()
public void setKmEditTimeout(String kmEditTimeout)
kmEditTimeout
- the intervall in seconds as String.public Boolean getKmPrintSelected()
public void setKmPrintSelected(Boolean kmPrintSelected)
public Integer getKmWarn1()
public void setKmWarn1(String kmWarn1)
kmWarn1
- the intervall in seconds as String.public Integer getKmWarn2()
public void setKmWarn2(String kmWarn2)
kmWarn2
- the intervall in seconds as String.public Integer getKmFilter()
public void setKmFilter(String kmFilter)
kmFilter
- the accounting level filter as String.public Boolean getCatScrollbarAsNeeded()
public void setCatAlwaysWithScrollbar(Boolean catAlwaysWithScrollbar)
catAlwaysWithScrollbar
- public Boolean getIsSlave()
public void setIsSlave(Boolean isSlave)
isSlave
- public Boolean allowMultipleCurrencies()
public void allowMultipleCurrencies(Boolean allowMultipleCurrencies)
public String getCurrency()
public void setCurrency(String currency)
public Boolean printButtonDisabled()
public void printButtonDisabled(Boolean printButtonDisabled)
public Boolean checkValueCard()
public Boolean evalModifierTimersByCreatedAt()
public Integer getMaxSeats()
public void setMaxSeats(Integer maxSeats)
public Integer getMaxGuests()
public Integer lockOverdueTickets()
public Integer getRefreshTableView()
public void setMaxGuests(Integer maxGuests)
public Boolean addTipsIsDefault()
public void addTipsIsDefault(Boolean addTipsIsdefault)
addTipsIsdefault
- public Boolean allowOpenTickets()
public Boolean restrictPlaceAccess()
public Boolean restrictTicketAccess()
public void allowOpenTickets(Boolean allowOpenTickets)
allowOpenTickets.
- public Boolean allowPartialAuthorization()
public void allowPartialAuthorization(Boolean allowPartialAuthorization)
allowPartialAuthorization
- public List<Integer> getFloorList()
public boolean boldLabels()
public boolean auditModifiers()
public Integer auditModifiersExclude()
public Integer maxChairsPerSlot()
public NumberFormat getCurrencyFormat()
public boolean openDrawerEarly()
public boolean paymentsByComment()
public int getReservationSlotLength()
public Integer getTicketScrollAmount()
public double getMaxLineAmount()
public String getVoucherURI()
public Integer getVarTareVisibleId()
public Double grantCardDebtRelief()
public Integer backofficeConnectTimeout()
public Integer backofficeReadTimeout()
public Integer getWaitForDevices()
public Map<Double,String> getFiscalTaxes() throws FiscalException
FiscalException
- if there is a tax entry having no category name assignedpublic Integer getMaxTare()
Copyright © 2021. All rights reserved.