com.ibm.ccd.ui.portlets.catalog
Class ItemCatalogPortlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet
org.apache.jetspeed.portlet.Portlet
org.apache.jetspeed.portlet.PortletAdapter
com.ibm.ccd.ui.portlets.BasePortlet
com.ibm.ccd.ui.portlets.catalog.ItemCatalogPortlet
- All Implemented Interfaces:
- ICatalogAction, com.ibm.websphere.servlet.cache.CacheableServlet, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.apache.jetspeed.portlet.event.ActionListener, org.apache.jetspeed.portlet.event.MessageListener, org.apache.jetspeed.portlet.PortletSessionListener
- Direct Known Subclasses:
- ItemCatalogUtilPortlet
public class ItemCatalogPortlet
- extends BasePortlet
- implements ICatalogAction, org.apache.jetspeed.portlet.event.ActionListener, org.apache.jetspeed.portlet.event.MessageListener
This Portlet displays the Category hierarc
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.apache.jetspeed.portlet.Portlet |
org.apache.jetspeed.portlet.Portlet.Mode, org.apache.jetspeed.portlet.Portlet.ModeModifier |
Fields inherited from interface com.ibm.ccd.ui.portlets.catalog.ICatalogAction |
ACTION_COMMAND, ACTIVE_TAB, CANCEL, CATALOG, CATALOG_CONFIG, CATALOG_CONFIG_CLEAR_VIEW, CATALOG_CONFIG_SUBMIT, CATALOG_TREE, CATALOG_VIEW, CATALOG_VIEW_LIST, CATALOG_VIEW_NAME, CATALOG_VIEW_NAMES, CATALOGID, CATEGORY, CATEGORY_HIERARCHY, CLONE, COMMAND, COMMAND_PREV, CREATE, DELETE, EXPAND_COMMAND, HIER_NAME, HIER_TYPE, ITEM, ITEMCATALOGPORTLET, ITEMID, JSP2RENDER, MESSAGEPAGE, OK, PARENTID, PRINT, REFRESH, RETURN_URL, SEARCH, SEARCH_VIEW_MODE, SELECT_COMMAND, STEPNAME, SWITCH_TAB, SWITCH_TAB_NO_SUBMIT, UNASSIGNED, UPDATE, VIEW, WORKFLOW, WORKFLOWNAME, WORKWITHITEMPORTLET |
Method Summary |
void |
actionPerformed(org.apache.jetspeed.portlet.event.ActionEvent event)
|
protected void |
displayExpandedNode(org.apache.jetspeed.portlet.PortletRequest request,
ItemNodeCatalog node)
receives the children of this node and displays under this node |
void |
doConfigure(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
|
void |
doEdit(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
|
void |
doHelp(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
|
void |
doView(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
|
protected java.util.List |
getCatalogList(org.apache.jetspeed.portlet.PortletRequest request)
|
protected void |
getCatalogs(org.apache.jetspeed.portlet.PortletRequest request)
|
protected java.lang.String |
getItemID(java.lang.String path)
|
protected java.lang.String |
getSelectedCategoryParentId(ItemCatalogForm catalogForm)
|
protected java.lang.String |
getSelectedItemParentId(ItemCatalogForm catalogForm)
|
protected java.lang.String |
getSelecteItemCatalogId(ItemCatalogForm catalogForm)
|
void |
init(org.apache.jetspeed.portlet.PortletConfig portletConfig)
|
void |
messageReceived(org.apache.jetspeed.portlet.event.MessageEvent event)
|
protected boolean |
prepareAction(org.apache.jetspeed.portlet.PortletRequest request,
java.lang.String command)
|
void |
sendMessage(java.lang.String portlet,
GenericPortletMessage message)
|
protected void |
setBusinessFunction(org.apache.jetspeed.portlet.PortletRequest portletRequest)
setBusinessFunction: All Portlets should override this method to set the
business function in session variable() (SESSION_BUS_FUNCT) |
Methods inherited from class com.ibm.ccd.ui.portlets.BasePortlet |
addTransaction, addTransaction, createCommand, createCommand, createContext, getMessageMap, getReqParamArray, getTextLabel, getTextMessages, getWPSContext, handleException |
Methods inherited from class org.apache.jetspeed.portlet.PortletAdapter |
destroy, destroyConcrete, getLastModified, getPortletConfig, getPortletLog, getVariable, initConcrete, login, logout, removeVariable, service, setVariable |
Methods inherited from class org.apache.jetspeed.portlet.Portlet |
destroy, doGet, doPost, doPut, getId, getInitParameter, getInitParameterNames, getLastModified, getPortletSettings, getServletContext, getServletInfo, init, service |
Methods inherited from class com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet |
getSharingPolicy, service |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doTrace |
Methods inherited from class javax.servlet.GenericServlet |
getServletConfig, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CHILD_LENGTH
public static final int DEFAULT_CHILD_LENGTH
- See Also:
- Constant Field Values
CHILD_LENGTH
public static final java.lang.String CHILD_LENGTH
- See Also:
- Constant Field Values
AVAILABLE_CATALOG_LIST
public static java.lang.String AVAILABLE_CATALOG_LIST
ITEMCATALOGFORM
public static final java.lang.String ITEMCATALOGFORM
- See Also:
- Constant Field Values
ELEMENT_SELECT_CATALOGS
public static java.lang.String ELEMENT_SELECT_CATALOGS
wpsContext
protected WPSContext wpsContext
ItemCatalogPortlet
public ItemCatalogPortlet()
init
public void init(org.apache.jetspeed.portlet.PortletConfig portletConfig)
throws org.apache.jetspeed.portlet.UnavailableException
- Overrides:
init
in class BasePortlet
- Parameters:
portletConfig
-
- Throws:
org.apache.jetspeed.portlet.UnavailableException
- See Also:
Portlet.init(PortletConfig)
doView
public void doView(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
throws org.apache.jetspeed.portlet.PortletException,
java.io.IOException
- Overrides:
doView
in class org.apache.jetspeed.portlet.PortletAdapter
- Parameters:
request
- is PortletRequestresponse
- is PortletResponse
- Throws:
org.apache.jetspeed.portlet.PortletException
java.io.IOException
- See Also:
PortletAdapter.doView(PortletRequest,
PortletResponse)
doEdit
public void doEdit(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
throws org.apache.jetspeed.portlet.PortletException,
java.io.IOException
- Overrides:
doEdit
in class org.apache.jetspeed.portlet.PortletAdapter
- Parameters:
request
- is PortletRequestresponse
- is PortletResponse
- Throws:
org.apache.jetspeed.portlet.PortletException
java.io.IOException
- See Also:
PortletAdapter.doEdit(PortletRequest,
PortletResponse)
doHelp
public void doHelp(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
throws org.apache.jetspeed.portlet.PortletException,
java.io.IOException
- Overrides:
doHelp
in class BasePortlet
- Parameters:
request
- is PortletRequestresponse
- is PortletResponse
- Throws:
org.apache.jetspeed.portlet.PortletException
java.io.IOException
- See Also:
PortletAdapter.doHelp(PortletRequest,
PortletResponse)
doConfigure
public void doConfigure(org.apache.jetspeed.portlet.PortletRequest request,
org.apache.jetspeed.portlet.PortletResponse response)
throws org.apache.jetspeed.portlet.PortletException,
java.io.IOException
- Overrides:
doConfigure
in class org.apache.jetspeed.portlet.PortletAdapter
- Parameters:
request
- is PortletRequestresponse
- is PortletResponse
- Throws:
org.apache.jetspeed.portlet.PortletException
java.io.IOException
- See Also:
PortletAdapter.doConfigure(PortletRequest,
PortletResponse)
actionPerformed
public void actionPerformed(org.apache.jetspeed.portlet.event.ActionEvent event)
throws org.apache.jetspeed.portlet.PortletException
- Specified by:
actionPerformed
in interface org.apache.jetspeed.portlet.event.ActionListener
- Parameters:
event
-
- Throws:
org.apache.jetspeed.portlet.PortletException
- See Also:
ActionListener.actionPerformed(org.apache.jetspeed.portlet.event.ActionEvent)
messageReceived
public void messageReceived(org.apache.jetspeed.portlet.event.MessageEvent event)
throws org.apache.jetspeed.portlet.PortletException
- Specified by:
messageReceived
in interface org.apache.jetspeed.portlet.event.MessageListener
- Throws:
org.apache.jetspeed.portlet.PortletException
- See Also:
MessageListener.messageReceived(org.apache.jetspeed.portlet.event.MessageEvent)
prepareAction
protected boolean prepareAction(org.apache.jetspeed.portlet.PortletRequest request,
java.lang.String command)
getCatalogList
protected java.util.List getCatalogList(org.apache.jetspeed.portlet.PortletRequest request)
getCatalogs
protected void getCatalogs(org.apache.jetspeed.portlet.PortletRequest request)
displayExpandedNode
protected void displayExpandedNode(org.apache.jetspeed.portlet.PortletRequest request,
ItemNodeCatalog node)
- receives the children of this node and displays under this node
- Parameters:
request
- node
-
getSelecteItemCatalogId
protected java.lang.String getSelecteItemCatalogId(ItemCatalogForm catalogForm)
getSelectedCategoryParentId
protected java.lang.String getSelectedCategoryParentId(ItemCatalogForm catalogForm)
getSelectedItemParentId
protected java.lang.String getSelectedItemParentId(ItemCatalogForm catalogForm)
getItemID
protected java.lang.String getItemID(java.lang.String path)
sendMessage
public void sendMessage(java.lang.String portlet,
GenericPortletMessage message)
- Parameters:
portlet
- message
-
- Throws:
org.apache.jetspeed.portlet.AccessDeniedException
setBusinessFunction
protected void setBusinessFunction(org.apache.jetspeed.portlet.PortletRequest portletRequest)
- Description copied from class:
BasePortlet
- setBusinessFunction: All Portlets should override this method to set the
business function in session variable() (SESSION_BUS_FUNCT)
- Specified by:
setBusinessFunction
in class BasePortlet
- Parameters:
portletRequest
-