|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.app.AdminEngineConfig
public class AdminEngineConfig
Used to configure the KonaKart Admin engine client when it is instantiated.
Attributes required are dependent on the mode.
When creating engine clients for RMI and SOAP you can use the properties attribute to define your properties rather than referencing a properties file. The structure of the properties array is:
properties[0] = key 1
properties[1] = value 1
properties[2] = key 2
properties[3] = value 2
etc
If the properties array is non-null it will be used instead of the properties file (for the RMI and SOAP engines only). It may be useful to choose this way of constructing engine clients if you do not wish to use files to store the property definitions.
Field Summary | |
---|---|
private java.lang.String |
axisClientFileName
|
private boolean |
categoriesShared
|
private boolean |
customersShared
|
private java.lang.String |
engineId
This is not designed to be set by developers. |
private int |
mode
Mode is SingleStore, MultiStore (Multi-DB) or MultiStore (Single-DB) |
static int |
MODE_MULTI_STORE_NON_SHARED_DB
Constant for mode |
static int |
MODE_MULTI_STORE_SHARED_DB
Constant for mode |
static int |
MODE_SINGLE_STORE
Constant for mode |
private boolean |
productsShared
|
private java.lang.String[] |
properties
|
private java.lang.String |
propertiesFileName
|
private java.lang.String |
storeId
|
Constructor Summary | |
---|---|
AdminEngineConfig()
|
Method Summary | |
---|---|
java.lang.String |
getAxisClientFileName()
|
java.lang.String |
getEngineId()
|
int |
getMode()
Used to configure the engine at startup. |
java.lang.String[] |
getProperties()
|
java.lang.String |
getPropertiesFileName()
The name of the properties file which must be on the classpath. |
java.lang.String |
getStoreId()
Used in multi-store mode to configure the engine to use the correct store. |
boolean |
isCategoriesShared()
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode and products are shared. |
boolean |
isCustomersShared()
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode. |
boolean |
isProductsShared()
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode. |
void |
setAxisClientFileName(java.lang.String axisClientFileName)
The name of the konakartadmin AXIS client properties file name - only relevant when web services are used between client and konakartadmin servers. |
void |
setCategoriesShared(boolean categoriesShared)
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode and products are shared. |
void |
setCustomersShared(boolean customersShared)
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode. |
void |
setEngineId(java.lang.String engineId)
|
void |
setMode(int mode)
Used to configure the engine at startup. |
void |
setProductsShared(boolean productsShared)
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode. |
void |
setProperties(java.lang.String[] properties)
|
void |
setPropertiesFileName(java.lang.String propertiesFileName)
The name of the properties file which must be on the classpath. |
void |
setStoreId(java.lang.String storeId)
Used in multi-store mode to configure the engine to use the correct store. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MODE_SINGLE_STORE
public static final int MODE_MULTI_STORE_NON_SHARED_DB
public static final int MODE_MULTI_STORE_SHARED_DB
private java.lang.String storeId
private int mode
private java.lang.String propertiesFileName
private java.lang.String axisClientFileName
private boolean customersShared
private boolean productsShared
private boolean categoriesShared
private java.lang.String[] properties
private java.lang.String engineId
Constructor Detail |
---|
public AdminEngineConfig()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getStoreId()
public void setStoreId(java.lang.String storeId)
storeId
- The storeId to set.public int getMode()
public void setMode(int mode)
mode
- The mode to set.public java.lang.String getPropertiesFileName()
public void setPropertiesFileName(java.lang.String propertiesFileName)
propertiesFileName
- The propertiesFileName to set.public java.lang.String getAxisClientFileName()
public void setAxisClientFileName(java.lang.String axisClientFileName)
axisClientFileName
- public boolean isCustomersShared()
public void setCustomersShared(boolean customersShared)
customersShared
- set to true or falsepublic boolean isProductsShared()
public void setProductsShared(boolean productsShared)
productsShared
- the productsShared to setpublic boolean isCategoriesShared()
public void setCategoriesShared(boolean categoriesShared)
categoriesShared
- the categoriesShared to setpublic java.lang.String getEngineId()
public void setEngineId(java.lang.String engineId)
engineId
- The engineId to set.public java.lang.String[] getProperties()
properties[0] = key 1
properties[1] = value 1
properties[2] = key 2
properties[3] = value 2
etc
public void setProperties(java.lang.String[] properties)
properties
- the properties to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |