public abstract class AbstractFetchCatalogGroupSOICmdImpl extends java.lang.Object implements FetchCatalogGroupCmd
com.ibm.commerce.catalog.commands.CategoryDisplayCmd
.Constructor and Description |
---|
AbstractFetchCatalogGroupSOICmdImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
This method fetches the required catalog group based on the XPath key and
calls the appropriate compose command based on the access profile
requested.
|
java.math.BigInteger |
getBeginIndex() |
java.math.BigInteger |
getDisplayNum() |
java.util.logging.Logger |
getLogger() |
java.util.List |
getNouns()
This method returns the list of nouns that have been retrieved by the
business object manager that matches the specified XPath expression.
|
boolean |
getRecordSetCompleteIndicator() |
java.math.BigInteger |
getRecordSetCount()
This method returns the total count of records that are being returned by
the fetch command.
|
java.lang.String |
getRecordSetReferenceId()
Not supported.
|
java.math.BigInteger |
getRecordSetStartNumber() |
java.math.BigInteger |
getRecordSetTotal()
This method returns the total number of records present for the input
selection criteria.
|
ShowType |
getShow()
This method returns the show verb response that represent the results of
the fetch operation.
|
ShowCatalogGroupDataAreaType |
getShowCatalogGroupDataArea() |
boolean |
isReadyToCallExecute()
This method checks if the Fetch command has the required fields set to
run.
|
void |
reset()
Resets the command fields.
|
void |
setGet(GetType getVerb)
This method sets the get expression for the fetch operation.
|
void |
setPagingParameters(java.math.BigInteger begIndex,
java.math.BigInteger dispNum) |
void |
setRecordSetCompleteIndicator(boolean flag) |
void |
setRecordSetCount(java.math.BigInteger count)
This method is used to set the total count of records that are to be
returned by the fetch command.
|
void |
setRecordSetReferenceId(java.lang.String id)
Not supported.
|
void |
setRecordSetStartNumber(java.math.BigInteger startNumber) |
void |
setRecordSetTotal(java.math.BigInteger total)
This method sets the total number of records present for the current
selection criteria.
|
void |
setSearchExpression(SearchExpression searchExpression)
Set the search expression.
|
void |
setVersionCheck(java.lang.String versionCheck)
This method sets whether the implementation is dependent on whether the version is
found in the business object document request.
|
public AbstractFetchCatalogGroupSOICmdImpl()
public java.util.logging.Logger getLogger()
public void execute() throws com.ibm.websphere.command.CommandException, CatalogSystemException
com.ibm.commerce.foundation.server.util.oagis.SelectionCriteriaMapper
,
which can be obtained by the getSelectionCriteriaMapper()
method.execute
in interface com.ibm.websphere.command.Command
CommandException,
- when a runtime exception is caught.CatalogSystemException,
- when the Required parameters are not set or the compose
command is not found.com.ibm.websphere.command.CommandException
CatalogSystemException
public java.math.BigInteger getBeginIndex()
public java.math.BigInteger getDisplayNum()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
public void reset()
getSelectionCriteriaMapper()
and
getShowCatalogGroupDataArea()
return null values.reset
in interface com.ibm.websphere.command.Command
public ShowCatalogGroupDataAreaType getShowCatalogGroupDataArea()
ShowCatalogGroupDataAreaType
which contains
all the category information to be displayed.public void setPagingParameters(java.math.BigInteger begIndex, java.math.BigInteger dispNum)
begIndex
- the beginning index.dispNum
- the page size.public boolean getRecordSetCompleteIndicator()
public java.math.BigInteger getRecordSetCount()
public java.math.BigInteger getRecordSetStartNumber()
public java.math.BigInteger getRecordSetTotal()
public java.lang.String getRecordSetReferenceId()
public void setRecordSetCompleteIndicator(boolean flag)
flag
- -
true if the end of records has been reached, false otherwise.public void setRecordSetCount(java.math.BigInteger count)
count
- -
The total count of records.public void setRecordSetStartNumber(java.math.BigInteger startNumber)
startNumber
- -
the starting index.public void setRecordSetTotal(java.math.BigInteger total)
total
- -
the total number of records.public void setRecordSetReferenceId(java.lang.String id)
id
- -
The reference ID. The passed value is ignored.public ShowType getShow()
exceute()
.getShow
in interface FetchCatalogGroupCmd
getShow
in interface AbstractFetchNounCmd
FetchCatalogCmd.getShow()
public void setGet(GetType getVerb)
setGet
in interface FetchCatalogGroupCmd
setGet
in interface AbstractFetchNounCmd
getVerb
- The get expression.FetchCatalogCmd.setGet(com.ibm.commerce.oagis9.datatypes.GetType)
public void setSearchExpression(SearchExpression searchExpression)
setSearchExpression
in interface AbstractFetchNounCmd
searchExpression
- The search expression to execute.AbstractFetchNounCmd.setSearchExpression(com.ibm.commerce.foundation.server.command.bod.SearchExpression)
public java.util.List getNouns()
getNouns
in interface AbstractFetchNounCmd
public void setVersionCheck(java.lang.String versionCheck)
FetchCatalogGroupCmdImpl
. The default
behaviour is to perform this decision process of selecting which implementation to use.versionCheck
- Whether this version check needs to be enforced. A value of false
means
that this implementation will be used regardless if the version is specified in the business
object document.