BrightSide Workbench Full Report + Source Code
org.turro.financials.cart.ShopContext Class Reference

Public Member Functions

boolean isValid ()
 
String getCartPath ()
 
String getCheckoutPath ()
 
String getNotificationPath ()
 
String getOKPath ()
 
String getKOPath ()
 
long getStore ()
 
long getBank ()
 
Contract getContractStore ()
 
Contract getContractBank ()
 
String getDelivery ()
 
String getFiscal ()
 
String getLogistic ()
 
String getContactPhone ()
 
String getLocale ()
 
String getCurrency ()
 
String getMerchantCode ()
 
String getMerchantTerminal ()
 
String getMerchantCurrency ()
 
String getMerchantKey ()
 
String getMerchantKeyType ()
 
String getMerchantLanguage ()
 
boolean isMerchantTestScope ()
 
boolean isSelfTestScope ()
 
DeliveryContexts getDeliveryContexts ()
 

Static Public Member Functions

static void reset ()
 
static ShopContext getInstance ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 41 of file ShopContext.java.

Member Function Documentation

◆ getBank()

long org.turro.financials.cart.ShopContext.getBank ( )

Definition at line 82 of file ShopContext.java.

82  {
83  return bank;
84  }

◆ getCartPath()

String org.turro.financials.cart.ShopContext.getCartPath ( )

Definition at line 58 of file ShopContext.java.

58  {
59  return cartPath;
60  }
Here is the caller graph for this function:

◆ getCheckoutPath()

String org.turro.financials.cart.ShopContext.getCheckoutPath ( )

Definition at line 62 of file ShopContext.java.

62  {
63  return checkoutPath;
64  }
Here is the caller graph for this function:

◆ getContactPhone()

String org.turro.financials.cart.ShopContext.getContactPhone ( )

Definition at line 106 of file ShopContext.java.

106  {
107  return contactPhone;
108  }
Here is the caller graph for this function:

◆ getContractBank()

Contract org.turro.financials.cart.ShopContext.getContractBank ( )

Definition at line 90 of file ShopContext.java.

90  {
91  return new FinancialsPU().find(Contract.class, bank);
92  }

◆ getContractStore()

Contract org.turro.financials.cart.ShopContext.getContractStore ( )

Definition at line 86 of file ShopContext.java.

86  {
87  return new FinancialsPU().find(Contract.class, store);
88  }

◆ getCurrency()

String org.turro.financials.cart.ShopContext.getCurrency ( )

Definition at line 114 of file ShopContext.java.

114  {
115  return currency;
116  }
Here is the caller graph for this function:

◆ getDelivery()

String org.turro.financials.cart.ShopContext.getDelivery ( )

Definition at line 94 of file ShopContext.java.

94  {
95  return delivery;
96  }
Here is the caller graph for this function:

◆ getDeliveryContexts()

DeliveryContexts org.turro.financials.cart.ShopContext.getDeliveryContexts ( )

Definition at line 150 of file ShopContext.java.

150  {
151  return deliveryContexts;
152  }
Here is the caller graph for this function:

◆ getFiscal()

String org.turro.financials.cart.ShopContext.getFiscal ( )

Definition at line 98 of file ShopContext.java.

98  {
99  return fiscal;
100  }
Here is the caller graph for this function:

◆ getInstance()

static ShopContext org.turro.financials.cart.ShopContext.getInstance ( )
static

Definition at line 207 of file ShopContext.java.

207  {
208  if(_instance == null || FileWatch.isNewer(ElephantContext.getRealPath(SHOP_FILE), _lastLoad)) {
209  _instance = new ShopContext();
210  _instance.load();
211  _lastLoad = FileWatch.getTime(ElephantContext.getRealPath(SHOP_FILE));
212  }
213  return _instance;
214  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getKOPath()

String org.turro.financials.cart.ShopContext.getKOPath ( )

Definition at line 74 of file ShopContext.java.

74  {
75  return KOPath;
76  }
Here is the caller graph for this function:

◆ getLocale()

String org.turro.financials.cart.ShopContext.getLocale ( )

Definition at line 110 of file ShopContext.java.

110  {
111  return locale;
112  }

◆ getLogistic()

String org.turro.financials.cart.ShopContext.getLogistic ( )

Definition at line 102 of file ShopContext.java.

102  {
103  return logistic;
104  }

◆ getMerchantCode()

String org.turro.financials.cart.ShopContext.getMerchantCode ( )

Definition at line 118 of file ShopContext.java.

118  {
119  return merchantCode;
120  }
Here is the caller graph for this function:

◆ getMerchantCurrency()

String org.turro.financials.cart.ShopContext.getMerchantCurrency ( )

Definition at line 126 of file ShopContext.java.

126  {
127  return merchantCurrency;
128  }
Here is the caller graph for this function:

◆ getMerchantKey()

String org.turro.financials.cart.ShopContext.getMerchantKey ( )

Definition at line 130 of file ShopContext.java.

130  {
131  return merchantKey;
132  }
Here is the caller graph for this function:

◆ getMerchantKeyType()

String org.turro.financials.cart.ShopContext.getMerchantKeyType ( )

Definition at line 134 of file ShopContext.java.

134  {
135  return merchantKeyType;
136  }
Here is the caller graph for this function:

◆ getMerchantLanguage()

String org.turro.financials.cart.ShopContext.getMerchantLanguage ( )

Definition at line 138 of file ShopContext.java.

138  {
139  return merchantLanguage;
140  }
Here is the caller graph for this function:

◆ getMerchantTerminal()

String org.turro.financials.cart.ShopContext.getMerchantTerminal ( )

Definition at line 122 of file ShopContext.java.

122  {
123  return merchantTerminal;
124  }
Here is the caller graph for this function:

◆ getNotificationPath()

String org.turro.financials.cart.ShopContext.getNotificationPath ( )

Definition at line 66 of file ShopContext.java.

66  {
67  return notificationPath;
68  }
Here is the caller graph for this function:

◆ getOKPath()

String org.turro.financials.cart.ShopContext.getOKPath ( )

Definition at line 70 of file ShopContext.java.

70  {
71  return OKPath;
72  }
Here is the caller graph for this function:

◆ getStore()

long org.turro.financials.cart.ShopContext.getStore ( )

Definition at line 78 of file ShopContext.java.

78  {
79  return store;
80  }

◆ isMerchantTestScope()

boolean org.turro.financials.cart.ShopContext.isMerchantTestScope ( )

Definition at line 142 of file ShopContext.java.

142  {
143  return merchantTestScope;
144  }
Here is the caller graph for this function:

◆ isSelfTestScope()

boolean org.turro.financials.cart.ShopContext.isSelfTestScope ( )

Definition at line 146 of file ShopContext.java.

146  {
147  return selfTestScope;
148  }
Here is the caller graph for this function:

◆ isValid()

boolean org.turro.financials.cart.ShopContext.isValid ( )

Definition at line 54 of file ShopContext.java.

54  {
55  return !Strings.isBlank(cartPath);
56  }

◆ reset()

static void org.turro.financials.cart.ShopContext.reset ( )
static

Definition at line 203 of file ShopContext.java.

203  {
204  _instance = null;
205  }

The documentation for this class was generated from the following file: