com.ibm.commerce.tools.contract.beans
Class StoreCreationWizardDataBean

java.lang.Object
  |
  +--com.ibm.commerce.tools.contract.beans.StoreCreationWizardDataBean
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class StoreCreationWizardDataBean
extends java.lang.Object
implements SmartDataBean

The StoreCreationWizardDataBean contains various methods used in Store Creation wizard including:

See Also:
Serialized Form

Field Summary
static int CONSTANT_INDEX_DESCRIPTION
          A constant for the third index of a returned array.
static int CONSTANT_INDEX_DISPLAYNAME
          A constant for the second index of a returned array.
static int CONSTANT_INDEX_ID
          A constant for the first index of a returned array.
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
StoreCreationWizardDataBean()
          Constructor
 
Method Summary
 java.util.Vector getCatalogProfileStores()
          Looks for catalog asset store type stores in the database with a master catalog.
  CommandContext getCommandContext()
          Returns the current command's context
 java.util.Vector getCurrencies()
          Gets all currencies in WebSphere Commerce.
 java.util.Vector getLanguages()
          Gets all languages in WebSphere Commerce.
 java.lang.String getOwnerPrimaryAddressId(java.lang.String astrOrgId)
          Gets the primary address ID based on a given organization ID with the address type "SB".
 java.util.Vector getProfileStores(java.lang.String[] astrStoretype)
          Looks for the given store type (e.g.: RPS) asset stores in the database.
  TypedProperty getRequestProperties()
          Gets the request properties.
 java.util.Vector getStoreCategories()
          Finds store categories available in the sytem.
 java.lang.String[] getSupportedLanguages(java.lang.String astrStoreId)
          Gets all the supported languages of a store.
 java.util.Vector getUserOrgs()
          Gets all the organizations which user has access to.
 void populate()
          Retrieves the data for the contract.
 void setCommandContext( CommandContext cc)
          Sets the command context.
 void setRequestProperties( TypedProperty reqProp)
          Sets the request properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

CONSTANT_INDEX_ID

public static final int CONSTANT_INDEX_ID
A constant for the first index of a returned array.
See Also:
Constant Field Values

CONSTANT_INDEX_DISPLAYNAME

public static final int CONSTANT_INDEX_DISPLAYNAME
A constant for the second index of a returned array.
See Also:
Constant Field Values

CONSTANT_INDEX_DESCRIPTION

public static final int CONSTANT_INDEX_DESCRIPTION
A constant for the third index of a returned array.
See Also:
Constant Field Values
Constructor Detail

StoreCreationWizardDataBean

public StoreCreationWizardDataBean()
Constructor
Method Detail

getCatalogProfileStores

public java.util.Vector getCatalogProfileStores()
                                         throws ECSystemException
Looks for catalog asset store type stores in the database with a master catalog. Returns a Vector of String array of three values: Catalog Profile Store Id, catalog display name and catalog description respectively.
Returns:
Vector of String arrays
Throws:
ECSystemException -
threw with message _ERR_GENERIC when an error occurred while getting the Id, name, or description.

getCommandContext

public CommandContext getCommandContext()
Returns the current command's context
Specified by:
getCommandContext in interface SmartDataBean
Returns:
com.ibm.commerce.command.CommandContext

getCurrencies

public java.util.Vector getCurrencies()
                               throws ECSystemException
Gets all currencies in WebSphere Commerce.
Returns:
Vector of sorted currencies list
Throws:
ECSystemException
- threw with message _ERR_GENERIC when an error occurred while getting currencies.
ECSystemException

getLanguages

public java.util.Vector getLanguages()
                              throws ECSystemException
Gets all languages in WebSphere Commerce.
Returns:
Vector of sorted languages list
Throws:
ECSystemException - threw with message _ERR_GENERIC when an error occurred while getting languages.

getOwnerPrimaryAddressId

public java.lang.String getOwnerPrimaryAddressId(java.lang.String astrOrgId)
                                          throws ECSystemException
Gets the primary address ID based on a given organization ID with the address type "SB". If nothing is found, use address type "R". Returns null if nothing is found.
Returns:
The address Id of primary address.
Throws:
ECSystemException - threw with message _ERR_GENERIC when an error occurred while getting the addressId.

getProfileStores

public java.util.Vector getProfileStores(java.lang.String[] astrStoretype)
                                  throws ECSystemException
Looks for the given store type (e.g.: RPS) asset stores in the database. Returns a Vector of String array of three values: Profile Store Id, store display name and description respectively.
Returns:
A Vector of String arrays
Throws:
ECSystemException -
threw with message _ERR_GENERIC when an error occurred while getting the Id, name, or description.

getRequestProperties

public TypedProperty getRequestProperties()
Gets the request properties.
Specified by:
getRequestProperties in interface InputDataBean
Returns:
The request properties

getStoreCategories

public java.util.Vector getStoreCategories()
                                    throws ECSystemException
Finds store categories available in the sytem. Returns a Vector of String array of three values: Store category name, store category display name, and description respectively.
Returns:
Vector of String arrays
Throws:
ECSystemException -
threw with message _ERR_GENERIC when an error occurred while getting the Id, name, or description.

getSupportedLanguages

public java.lang.String[] getSupportedLanguages(java.lang.String astrStoreId)
                                         throws ECSystemException
Gets all the supported languages of a store.
Returns:
A String array of supported languages Ids
Throws:
ECSystemException - threw with message _ERR_GENERIC when an error occurred while getting languages.

getUserOrgs

public java.util.Vector getUserOrgs()
                             throws ECSystemException
Gets all the organizations which user has access to.
Returns:
Vector of sorted organization list
Throws:
ECSystemException - threw with message _ERR_GENERIC when an error occurred while getting user's organizations.

populate

public void populate()
              throws java.lang.Exception
Retrieves the data for the contract. Each method loads the necessary contract data.
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception

setCommandContext

public void setCommandContext(CommandContext cc)
Sets the command context.
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
cc - The command context..

setRequestProperties

public void setRequestProperties(TypedProperty reqProp)
Sets the request properties.
Specified by:
setRequestProperties in interface InputDataBean