com.raritantechnologies.eCommerceAdmin
Class ItemLinks

java.lang.Object
  extended bycom.raritantechnologies.eCommerceAdmin.ItemLinks

public class ItemLinks
extends java.lang.Object

This holds an OrderedMap of descriptions/links (both Strings) that are used to add Links from products to other promotions, web info, PDFs etc. Should tie in to the a renderer class to display, but hardcoded for now.


Developed by Raritan Technologies Inc..

Author:
Alan Connell

Constructor Summary
ItemLinks()
          AGC 12/11/2003 default constructor
 
Method Summary
 void deleteLink(java.lang.String linkId)
          AGC 12/11/2003 deletes a link
 java.lang.String getArray(java.lang.String itemId)
          AGC 12/11/2003 Takes the active itemid and linkId and returns a select list with the linkId record selected
 java.lang.String getSelectList(java.lang.String itemId)
          AGC 12/11/2003 Takes the active itemid and linkId and returns a select list with the linkId record selected
 void orderLinks(java.lang.String linkId)
          AGC 12/11/2003 puts the links related to the current item in alphbetical order
 int setLink(java.lang.String add_id, java.lang.String add_inf, java.lang.String desc, java.lang.String link)
          AGC 12/11/2003 updates or inserts a new value to links
 void setTypeId(java.lang.String typeId)
          AGC 12/11/2003 Sets the typeId which is needed to differentiate between ItemLinks types in the db.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemLinks

public ItemLinks()
AGC 12/11/2003 default constructor

Method Detail

setLink

public int setLink(java.lang.String add_id,
                   java.lang.String add_inf,
                   java.lang.String desc,
                   java.lang.String link)
AGC 12/11/2003 updates or inserts a new value to links


deleteLink

public void deleteLink(java.lang.String linkId)
AGC 12/11/2003 deletes a link


orderLinks

public void orderLinks(java.lang.String linkId)
AGC 12/11/2003 puts the links related to the current item in alphbetical order


getSelectList

public java.lang.String getSelectList(java.lang.String itemId)
AGC 12/11/2003 Takes the active itemid and linkId and returns a select list with the linkId record selected


getArray

public java.lang.String getArray(java.lang.String itemId)
AGC 12/11/2003 Takes the active itemid and linkId and returns a select list with the linkId record selected


setTypeId

public void setTypeId(java.lang.String typeId)
AGC 12/11/2003 Sets the typeId which is needed to differentiate between ItemLinks types in the db.