|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ccd.portal.PortalResponseUtil
public class PortalResponseUtil
Constructor Summary | |
---|---|
PortalResponseUtil()
|
Method Summary | |
---|---|
java.lang.String |
constructItemSkeletonResponse(java.util.HashMap infoMap,
com.ibm.pim.attribute.AttributeCollection attrCollection)
Builds the xml representation containing the information about item attributes |
java.lang.String |
constructQueryTransactionStatus(java.util.HashMap infoMap)
Gives the status of the current transaction |
java.lang.String |
constructResponseForCatalogView(java.util.HashMap infoMap)
|
java.lang.String |
constructResponseForCatalogViewList(java.util.HashMap infoMap)
Fetches the list of all the views available for the catalog that begin with PORTAL_ and the system default view |
java.lang.String |
constructResponseForGetCatalogs(java.util.HashMap infoMap)
Fetches the list of all the catalogs for the current context |
java.lang.String |
constructResponseForGetDocstoreDoc(java.util.HashMap infoMap,
java.lang.String validationError)
Fetches the document from the doc store |
java.lang.String |
constructResponseForGetResource(java.util.HashMap infoMap)
this attaches the expected response to the XML response that goes back points to be noted is it supports one resource at a time, as the webservice attachment should not more than 15KB, atleast till now with our exp. |
java.lang.String |
constructResponseForItemDetailOrClone(java.util.HashMap infoMap,
java.lang.Boolean isClone)
Fetches the details associated with the item for item detail or clone item operation |
java.lang.String |
constructResponseForItemOperation(java.util.HashMap infoMap,
java.lang.String wpcAction)
Generates the response for either add,modify or delete depending on the command type passed along |
java.lang.String |
constructResponseForQueryCatalogChildren(java.util.HashMap infoMap)
Fetches all the catagories associated with the current catalog when the root hierarchy is selected or the items and catagories under the parent category are fetched |
java.lang.String |
constructResponseForUploadFile(java.util.HashMap infoMap)
Retrieves the document from the incoming soap attachments ,copies to the default location .Also copies the document to the new location as specified in the request . |
java.lang.String |
constructResponseQueryTransactionDetails(java.util.HashMap infoMap)
Retrieves the document containing the transaction details from the docstore if the given transaction id exists |
java.lang.String |
constructSearchResponse(java.util.HashMap infoMap,
java.lang.String validationError)
Builds the response indicating the success or failure of the result operation |
java.lang.String |
constructSpecAttributeXML(com.ibm.pim.attribute.AttributeDefinition currentSpecAttrDefinition,
java.lang.String attributeName,
com.ibm.pim.attribute.AttributeCollection attrCollection,
java.util.HashMap infoMap,
com.ibm.pim.catalog.item.Item itm)
Builds the xml representation containing the details of the attributes of the spec associated with the item |
java.lang.String |
constructUploadResponse(java.util.HashMap infoMap)
Fetches the document from the path specified in the request and calls the CSV or XLS Helper to upload the content depending on the file type |
java.lang.String |
getMultiOccurSearchResults(com.ibm.pim.search.SearchResultSet searchResultSet,
java.lang.String catalogName,
java.util.HashMap infoMap)
Builds the response containing the result of the search operation |
java.lang.String |
getResponse(java.util.HashMap infoMap,
java.lang.String command)
Obtains the result of the request passed after processing it appropriately based on the command |
com.ibm.pim.catalog.item.Item |
getSupplierFilteredItem(com.ibm.pim.catalog.item.Item item,
java.lang.Object supplierID,
java.lang.String specName,
java.util.HashMap infoMap)
|
boolean |
isAttrPathInAttrCollection(java.lang.String attrPath,
com.ibm.pim.attribute.AttributeCollection attrCollection)
Checks if the attribute is present in the given attribute collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalResponseUtil() throws com.ibm.pim.common.exceptions.PIMInternalException
com.ibm.pim.common.exceptions.PIMInternalException
Method Detail |
---|
public boolean isAttrPathInAttrCollection(java.lang.String attrPath, com.ibm.pim.attribute.AttributeCollection attrCollection) throws com.ibm.pim.common.exceptions.PIMInternalException, com.ibm.pim.common.exceptions.PIMAuthorizationException
WPCPortalResponseUtil
isAttrPathInAttrCollection
in interface WPCPortalResponseUtil
attrPath
- the full path of the attributeattrCollection
- the attribute collection to be checked for attribute
com.ibm.pim.common.exceptions.PIMInternalException
com.ibm.pim.common.exceptions.PIMAuthorizationException
public java.lang.String constructSpecAttributeXML(com.ibm.pim.attribute.AttributeDefinition currentSpecAttrDefinition, java.lang.String attributeName, com.ibm.pim.attribute.AttributeCollection attrCollection, java.util.HashMap infoMap, com.ibm.pim.catalog.item.Item itm) throws java.lang.NumberFormatException, com.ibm.pim.common.exceptions.PIMInternalException, com.ibm.pim.common.exceptions.PIMAuthorizationException
WPCPortalResponseUtil
constructSpecAttributeXML
in interface WPCPortalResponseUtil
currentSpecAttrDefinition
- the curent attribute definition required to fetch the required informationattributeName
- the name of the attributeattrCollection
- the associated attribute collection in which the attribute is searched forinfoMap
- the hashmap containing the header informationitm
- the item for which the xml representation is to be constructed
java.lang.NumberFormatException
com.ibm.pim.common.exceptions.PIMInternalException
com.ibm.pim.common.exceptions.PIMAuthorizationException
public java.lang.String constructItemSkeletonResponse(java.util.HashMap infoMap, com.ibm.pim.attribute.AttributeCollection attrCollection) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
constructItemSkeletonResponse
in interface WPCPortalResponseUtil
infoMap
- the hashMap containing the header informationattrCollection
- the associated attribute collection
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public com.ibm.pim.catalog.item.Item getSupplierFilteredItem(com.ibm.pim.catalog.item.Item item, java.lang.Object supplierID, java.lang.String specName, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
getSupplierFilteredItem
in interface WPCPortalResponseUtil
item
- the item whose supplier id information is to be retrievedsupplierID
- the supplier id to be checkedspecName
- the spec associated with the iteminfoMap
- the hashmap containing the header information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructResponseForItemOperation(java.util.HashMap infoMap, java.lang.String wpcAction) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
constructResponseForItemOperation
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the header informationwpcAction
- the command type that specifies either of the three add ,modify or delete
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructResponseForItemDetailOrClone(java.util.HashMap infoMap, java.lang.Boolean isClone) throws com.ibm.pim.common.exceptions.PIMInternalException
WPCPortalResponseUtil
constructResponseForItemDetailOrClone
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the header informationisClone
- holds true if the command invoked is clone , else contains false
com.ibm.pim.common.exceptions.PIMInternalException
public java.lang.String constructResponseForUploadFile(java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
constructResponseForUploadFile
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the header information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructUploadResponse(java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
constructUploadResponse
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the required information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructQueryTransactionStatus(java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMInternalException
WPCPortalResponseUtil
constructQueryTransactionStatus
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the header information
com.ibm.pim.common.exceptions.PIMInternalException
public java.lang.String constructResponseQueryTransactionDetails(java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMInternalException
WPCPortalResponseUtil
constructResponseQueryTransactionDetails
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the header information
com.ibm.pim.common.exceptions.PIMInternalException
public java.lang.String constructResponseForQueryCatalogChildren(java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
constructResponseForQueryCatalogChildren
in interface WPCPortalResponseUtil
infoMap
- the hash map containing the header information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructResponseForGetCatalogs(java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMInternalException
WPCPortalResponseUtil
constructResponseForGetCatalogs
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the header information
com.ibm.pim.common.exceptions.PIMInternalException
public java.lang.String constructResponseForCatalogView(java.util.HashMap infoMap)
constructResponseForCatalogView
in interface WPCPortalResponseUtil
public java.lang.String constructResponseForCatalogViewList(java.util.HashMap infoMap)
WPCPortalResponseUtil
constructResponseForCatalogViewList
in interface WPCPortalResponseUtil
infoMap
- the hashMap containing the header information
public java.lang.String getMultiOccurSearchResults(com.ibm.pim.search.SearchResultSet searchResultSet, java.lang.String catalogName, java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
getMultiOccurSearchResults
in interface WPCPortalResponseUtil
searchResultSet
- the result set of the search operationcatalogName
- the current catalog selected by the userinfoMap
- the hash map containing the header information
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructSearchResponse(java.util.HashMap infoMap, java.lang.String validationError)
WPCPortalResponseUtil
constructSearchResponse
in interface WPCPortalResponseUtil
infoMap
- the hashmap containing the header informationvalidationError
- the validation error string
public java.lang.String getResponse(java.util.HashMap infoMap, java.lang.String command) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
getResponse
in interface WPCPortalResponseUtil
command
- the command type passed in the request
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructResponseForGetResource(java.util.HashMap infoMap) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalResponseUtil
constructResponseForGetResource
in interface WPCPortalResponseUtil
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public java.lang.String constructResponseForGetDocstoreDoc(java.util.HashMap infoMap, java.lang.String validationError) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalStateException
WPCPortalResponseUtil
constructResponseForGetDocstoreDoc
in interface WPCPortalResponseUtil
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |