com.ibm.interfaces.portal
Interface WPCPortalCSVHelper

All Known Implementing Classes:
PortalCSVHelper

public interface WPCPortalCSVHelper


Method Summary
 boolean checkMultiOccurence(com.ibm.pim.attribute.AttributeInstance attInstance, java.lang.String attrPath)
          checks if the attribute is multi-occuring or not
 void populateItem(com.ibm.pim.catalog.item.Item itm, java.util.HashMap hmAttrPathToValues, java.lang.String attrPath, java.util.HashMap infoMap)
          sets the attributes of an item to their corresponding values,the values are contained in the hashMap
 void setValueForItemAttribute(com.ibm.pim.attribute.AttributeInstance itemAttInstance, java.lang.String attributeValue, com.ibm.pim.catalog.item.Item itm, java.util.HashMap infoMap)
          Sets the value for an item attribute
 java.lang.String[] uploadCSVcontent(java.lang.String strDocPath, java.util.HashMap infoMap, java.lang.String CVS_OR_XLS)
          Reades the content from the CSV document and populates the item with the values and saves it
 

Method Detail

checkMultiOccurence

boolean checkMultiOccurence(com.ibm.pim.attribute.AttributeInstance attInstance,
                            java.lang.String attrPath)
                            throws com.ibm.pim.common.exceptions.PIMException
checks if the attribute is multi-occuring or not

Parameters:
attrPath - A string containing the path in the spec.
Returns:
boolean value returns true if the attribute is multioccurrence
Throws:
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException

setValueForItemAttribute

void setValueForItemAttribute(com.ibm.pim.attribute.AttributeInstance itemAttInstance,
                              java.lang.String attributeValue,
                              com.ibm.pim.catalog.item.Item itm,
                              java.util.HashMap infoMap)
                              throws com.ibm.pim.common.exceptions.PIMException
Sets the value for an item attribute

Parameters:
itemAttInstance - A attributeInstance object to return the entry node.
attributeValue -
Throws:
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException

populateItem

void populateItem(com.ibm.pim.catalog.item.Item itm,
                  java.util.HashMap hmAttrPathToValues,
                  java.lang.String attrPath,
                  java.util.HashMap infoMap)
                  throws com.ibm.pim.common.exceptions.PIMException
sets the attributes of an item to their corresponding values,the values are contained in the hashMap

Parameters:
itm - An item object to be populated
hmAttrPathToValues - A hashMap of attribute path and their values.
attrPath -
infoMap -
Throws:
com.ibm.pim.common.exceptions.PIMException
java.lang.IllegalArgumentException

uploadCSVcontent

java.lang.String[] uploadCSVcontent(java.lang.String strDocPath,
                                    java.util.HashMap infoMap,
                                    java.lang.String CVS_OR_XLS)
                                    throws com.ibm.pim.common.exceptions.PIMException
Reades the content from the CSV document and populates the item with the values and saves it

Parameters:
strDocPath - A string that contains path to the document.
Returns:
An array containing the return string and code
Throws:
java.lang.IllegalArgumentException
com.ibm.pim.common.exceptions.PIMInternalException
com.ibm.pim.common.exceptions.PIMException