|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ccd.portal.PortalRequestUtil
public class PortalRequestUtil
Constructor Summary | |
---|---|
PortalRequestUtil()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalRequestUtil()
Method Detail |
---|
public java.util.HashMap<java.lang.String,java.lang.Object> getRequestHeader(org.w3c.dom.Document doc) throws com.ibm.pim.common.exceptions.PIMInternalException
WPCPortalRequestUtil
getRequestHeader
in interface WPCPortalRequestUtil
doc
- A xml document containing the request .
com.ibm.pim.common.exceptions.PIMInternalException
public 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, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalRequestUtil
transformOperator
in interface WPCPortalRequestUtil
doc
- A dom object containing the xml requestopt
- A string that holds the operatornotPredicate
- Contains boolean value to check if the predicate is setvalue
- the value which is being searched forspecNodeType
- String cotaining the type of the spec nodeinfoMap
- HashMap containing the necessary header information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public 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, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalRequestUtil
createExpression
in interface WPCPortalRequestUtil
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
public 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, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalRequestUtil
getExpression
in interface WPCPortalRequestUtil
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
public com.ibm.pim.search.SearchResultSet getSearchCatalogResult(java.lang.String exp, java.lang.String catalogName, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMAuthorizationException, com.ibm.pim.common.exceptions.PIMInternalException
WPCPortalRequestUtil
getSearchCatalogResult
in interface WPCPortalRequestUtil
exp
- The expression containing the search query.catalogName
- the catalog on which the user is currently working
PIMAuthorizationException
com.ibm.pim.common.exceptions.PIMInternalException
public java.lang.String createSearchQueryWithSupplierId(org.w3c.dom.Document doc, java.lang.String searchCriteria, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalRequestUtil
createSearchQueryWithSupplierId
in interface WPCPortalRequestUtil
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
public java.lang.String[] processAttributeSection(org.w3c.dom.Document doc, java.lang.String currNodeElementPath)
WPCPortalRequestUtil
processAttributeSection
in interface WPCPortalRequestUtil
doc
- the request xml documentcurrNodeElementPath
- the current xml node which contains the attribute names
public java.lang.String processRequest(java.lang.String request) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalRequestUtil
processRequest
in interface WPCPortalRequestUtil
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 |