|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WPCPortalRequestUtil
Method Summary | |
---|---|
java.lang.String |
createExpression(org.w3c.dom.Document doc,
java.lang.String operator,
java.lang.String catalogName,
java.lang.String path,
java.lang.String value,
java.lang.String notPredicate,
java.util.HashMap infoMap)
Creates an expression depending on the operator and the predicate value. |
java.lang.String |
createSearchQueryWithSupplierId(org.w3c.dom.Document doc,
java.lang.String searchCriteria,
java.util.HashMap infoMap)
Creates a new search query using the search criteria after filtering the search for a specific supplierId |
java.lang.String |
getExpression(org.w3c.dom.Document doc,
java.lang.String currNodePath,
java.lang.String catalogName,
java.lang.String operator,
java.util.HashMap infoMap)
gets the query for performing a search |
java.util.HashMap<java.lang.String,java.lang.Object> |
getRequestHeader(org.w3c.dom.Document doc)
Gets the header information from the request and stores it in the hashmap |
com.ibm.pim.search.SearchResultSet |
getSearchCatalogResult(java.lang.String exp,
java.lang.String catalogName,
java.util.HashMap infoMap)
Performs the search operation with the given expression and returns the result |
java.lang.String[] |
processAttributeSection(org.w3c.dom.Document doc,
java.lang.String currNodeElementPath)
Fetches the list of attribute names passed with the request |
java.lang.String |
processRequest(java.lang.String request)
processes the request according to the command passed to generated the response |
java.lang.String |
transformOperator(org.w3c.dom.Document doc,
java.lang.String opt,
boolean notPredicate,
java.lang.String value,
com.ibm.pim.attribute.AttributeDefinition.Type specNodeType,
java.util.HashMap infoMap)
Changes the value of the operator required for wpc query depending on the operator passed |
Method Detail |
---|
java.util.HashMap<java.lang.String,java.lang.Object> getRequestHeader(org.w3c.dom.Document doc)
doc
- A xml document containing the request .
PIMInternalEXception
java.lang.String transformOperator(org.w3c.dom.Document doc, java.lang.String opt, boolean notPredicate, java.lang.String value, com.ibm.pim.attribute.AttributeDefinition.Type specNodeType, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException
doc
- A dom object containing the xml requestopt
- A string that holds the operatornotPredicate
- Contains boolean value to check if the predicate is setspecNodeType
- String cotaining the type of the spec nodevalue
- the value which is being searched forinfoMap
- HashMap containing the necessary header information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
java.lang.String createExpression(org.w3c.dom.Document doc, java.lang.String operator, java.lang.String catalogName, java.lang.String path, java.lang.String value, java.lang.String notPredicate, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException
doc
- A dom object containing the xml requestoperator
- A string containing the operator.catalogName
- A string used to retrieve the catalog with the catalogName.path
- A string containing the path in spec to obtain the spec nodevalue
- the value being searched fornotPredicate
- A string indicating if the predicate value is set.infoMap
- A hashMap containing the header information.
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
java.lang.String getExpression(org.w3c.dom.Document doc, java.lang.String currNodePath, java.lang.String catalogName, java.lang.String operator, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException
currNodePath
- contains the path for current node element.catalogName
- contains the catalog Name .infoMap
- contains the header information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
com.ibm.pim.search.SearchResultSet getSearchCatalogResult(java.lang.String exp, java.lang.String catalogName, java.util.HashMap infoMap)
exp
- The expression containing the search query.catalogName
- the catalog on which the user is currently working
PIMAuthorizationException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.String createSearchQueryWithSupplierId(org.w3c.dom.Document doc, java.lang.String searchCriteria, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException
doc
- A xml document containing the request informationsearchCriteria
- String containing the search criteria
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
java.lang.String[] processAttributeSection(org.w3c.dom.Document doc, java.lang.String currNodeElementPath)
doc
- the request xml documentcurrNodeElementPath
- the current xml node which contains the attribute names
java.lang.String processRequest(java.lang.String request) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
request
- the request string passed
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |