|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ccd.portal.PortalCSVHelper
public class PortalCSVHelper
Constructor Summary | |
---|---|
PortalCSVHelper()
|
Method Summary | |
---|---|
boolean |
checkMultiOccurence(com.ibm.pim.attribute.AttributeInstance attrInstance,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalCSVHelper()
Method Detail |
---|
public boolean checkMultiOccurence(com.ibm.pim.attribute.AttributeInstance attrInstance, java.lang.String attrPath) throws com.ibm.pim.common.exceptions.PIMException, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalCSVHelper
checkMultiOccurence
in interface WPCPortalCSVHelper
attrPath
- A string containing the path in the spec.
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public 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, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalCSVHelper
setValueForItemAttribute
in interface WPCPortalCSVHelper
itemAttInstance
- A attributeInstance object to return the entry node.
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException
public 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, java.lang.IllegalArgumentException
WPCPortalCSVHelper
populateItem
in interface WPCPortalCSVHelper
itm
- An item object to be populatedhmAttrPathToValues
- A hashMap of attribute path and their values.
com.ibm.pim.common.exceptions.PIMException
java.lang.IllegalArgumentException
public 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, com.ibm.pim.common.exceptions.PIMInternalException, java.lang.IllegalArgumentException
WPCPortalCSVHelper
uploadCSVcontent
in interface WPCPortalCSVHelper
strDocPath
- A string that contains path to the document.
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 |