|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
boolean checkMultiOccurence(com.ibm.pim.attribute.AttributeInstance attInstance, java.lang.String attrPath) throws com.ibm.pim.common.exceptions.PIMException
attrPath
- A string containing the path in the spec.
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
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
itemAttInstance
- A attributeInstance object to return the entry node.attributeValue
-
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
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
itm
- An item object to be populatedhmAttrPathToValues
- A hashMap of attribute path and their values.attrPath
- infoMap
-
com.ibm.pim.common.exceptions.PIMException
java.lang.IllegalArgumentException
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
strDocPath
- A string that contains path to the document.
java.lang.IllegalArgumentException
com.ibm.pim.common.exceptions.PIMInternalException
com.ibm.pim.common.exceptions.PIMException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |