com.ibm.ccd.portal
Class PortalItemHelper

java.lang.Object
  extended by com.ibm.ccd.portal.PortalItemHelper
All Implemented Interfaces:
WPCPortalItemHelper

public class PortalItemHelper
extends java.lang.Object
implements WPCPortalItemHelper


Constructor Summary
PortalItemHelper()
           
 
Method Summary
 void removeMultiOccurenceNodes(com.ibm.pim.catalog.item.Item item, java.lang.String attrPath, com.ibm.pim.attribute.AttributeDefinition specNode1, java.util.HashMap infoMap)
          Removes all the occurences of the multi occurence nodes
 java.lang.String setItemAttributes(java.lang.String nodePath, com.ibm.pim.catalog.item.Item item, java.util.HashMap reconstructedSpecs, java.lang.String grpOccur, java.util.HashMap infoMap)
          It parses the values from the incoming message and sets the same in the given item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalItemHelper

public PortalItemHelper()
Method Detail

removeMultiOccurenceNodes

public void removeMultiOccurenceNodes(com.ibm.pim.catalog.item.Item item,
                                      java.lang.String attrPath,
                                      com.ibm.pim.attribute.AttributeDefinition specNode1,
                                      java.util.HashMap infoMap)
                               throws com.ibm.pim.common.exceptions.PIMException,
                                      com.ibm.pim.common.exceptions.PIMInternalException,
                                      java.lang.IllegalArgumentException
Description copied from interface: WPCPortalItemHelper
Removes all the occurences of the multi occurence nodes

Specified by:
removeMultiOccurenceNodes in interface WPCPortalItemHelper
attrPath - the attribute of the item whose occurrences have to be removed
infoMap - the hashmap containing the header information
Throws:
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException

setItemAttributes

public java.lang.String setItemAttributes(java.lang.String nodePath,
                                          com.ibm.pim.catalog.item.Item item,
                                          java.util.HashMap reconstructedSpecs,
                                          java.lang.String grpOccur,
                                          java.util.HashMap infoMap)
                                   throws com.ibm.pim.common.exceptions.PIMException,
                                          com.ibm.pim.common.exceptions.PIMInternalException,
                                          java.lang.IllegalArgumentException
Description copied from interface: WPCPortalItemHelper
It parses the values from the incoming message and sets the same in the given item.

Specified by:
setItemAttributes in interface WPCPortalItemHelper
Parameters:
nodePath - the node name which contains the attributes
item - item whose values need to be set
reconstructedSpecs - the specs associated with the item
grpOccur - parameter that tells if the attribute is a grouping attribute
infoMap - the hashmap containing the header information
Throws:
com.ibm.pim.common.exceptions.PIMException
com.ibm.pim.common.exceptions.PIMInternalException
java.lang.IllegalArgumentException