com.ibm.ccd.ui.portlets.items
Class WorkwithItemPortlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet
              extended by org.apache.jetspeed.portlet.Portlet
                  extended by org.apache.jetspeed.portlet.PortletAdapter
                      extended by com.ibm.ccd.ui.portlets.BasePortlet
                          extended by com.ibm.ccd.ui.portlets.items.WorkwithItemPortlet
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

public class WorkwithItemPortlet
extends BasePortlet
implements org.apache.jetspeed.portlet.event.ActionListener, org.apache.jetspeed.portlet.event.MessageListener, ICatalogAction

WorkwithItem Portlet indent to create, modify, clone and delete an

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.jetspeed.portlet.Portlet
org.apache.jetspeed.portlet.Portlet.Mode, org.apache.jetspeed.portlet.Portlet.ModeModifier
 
Field Summary
 
Fields inherited from class com.ibm.ccd.ui.portlets.BasePortlet
alertDataSource, log
 
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
 
Constructor Summary
WorkwithItemPortlet()
           
 
Method Summary
 void actionPerformed(org.apache.jetspeed.portlet.event.ActionEvent event)
           
 void cloneItem(org.apache.jetspeed.portlet.PortletRequest request)
           
 void createItem(org.apache.jetspeed.portlet.PortletRequest request)
           
 void deleteItem(org.apache.jetspeed.portlet.PortletRequest request)
           
 java.lang.String displayCatalogView(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String catalogName, java.lang.String viewName)
           
 void displayItemCloneView(org.apache.jetspeed.portlet.PortletRequest request)
           
 void displayItemCreateView(org.apache.jetspeed.portlet.PortletRequest request)
           
 void displayItemUpdateView(org.apache.jetspeed.portlet.PortletRequest request)
           
 void displaySingleItemView(org.apache.jetspeed.portlet.PortletRequest request)
           
 void displaySingleItemViewForWorkFlow(org.apache.jetspeed.portlet.PortletRequest request)
           
 void doConfigure(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)
           
 void findCatalogViewName(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String catalogName)
           
 void getCatalogViewList(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String catalogName)
           
static java.util.HashMap getCollection(Attribute attribute)
           
 java.lang.String getIncludePage(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String realPath)
           
static java.lang.String getSelectedValue(Attribute attribute, java.lang.String key)
           
static java.lang.String getStringValue(Attribute attribute, int index)
           
static java.lang.String getStringValue(java.lang.String itemID, Attribute attribute, java.util.Locale locale, int index)
           
 void init(org.apache.jetspeed.portlet.PortletConfig portletConfig)
           
static boolean isMandatory(Attribute attribute)
           
 void messageReceived(org.apache.jetspeed.portlet.event.MessageEvent event)
           
 void sendMessage(java.lang.String portlet, GenericPortletMessage message)
           
protected  void setBusinessFunction(org.apache.jetspeed.portlet.PortletRequest request)
          setBusinessFunction: All Portlets should override this method to set the business function in session variable() (SESSION_BUS_FUNCT)
protected  void setMessageHeader(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String command)
           
 void updateItem(org.apache.jetspeed.portlet.PortletRequest request)
           
 void updateModifiedItem(org.apache.jetspeed.portlet.PortletRequest request)
           
 
Methods inherited from class com.ibm.ccd.ui.portlets.BasePortlet
addTransaction, addTransaction, createCommand, createCommand, createContext, doHelp, getMessageMap, getReqParamArray, getTextLabel, getTextMessages, getWPSContext, handleException
 
Methods inherited from class org.apache.jetspeed.portlet.PortletAdapter
destroy, destroyConcrete, doEdit, 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
 

Constructor Detail

WorkwithItemPortlet

public WorkwithItemPortlet()
Method Detail

init

public void init(org.apache.jetspeed.portlet.PortletConfig portletConfig)
          throws org.apache.jetspeed.portlet.UnavailableException
Overrides:
init in class BasePortlet
Throws:
org.apache.jetspeed.portlet.UnavailableException
See Also:
BasePortlet.init(org.apache.jetspeed.portlet.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
Throws:
org.apache.jetspeed.portlet.PortletException
java.io.IOException
See Also:
PortletAdapter.doView(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.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
Throws:
org.apache.jetspeed.portlet.PortletException
java.io.IOException
See Also:
PortletAdapter.doConfigure(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse)

displayCatalogView

public java.lang.String displayCatalogView(org.apache.jetspeed.portlet.PortletRequest request,
                                           java.lang.String catalogName,
                                           java.lang.String viewName)

getIncludePage

public java.lang.String getIncludePage(org.apache.jetspeed.portlet.PortletRequest request,
                                       java.lang.String realPath)

getCatalogViewList

public void getCatalogViewList(org.apache.jetspeed.portlet.PortletRequest request,
                               java.lang.String catalogName)
Parameters:
request -

findCatalogViewName

public void findCatalogViewName(org.apache.jetspeed.portlet.PortletRequest request,
                                java.lang.String catalogName)

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
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)

createItem

public void createItem(org.apache.jetspeed.portlet.PortletRequest request)

updateItem

public void updateItem(org.apache.jetspeed.portlet.PortletRequest request)

cloneItem

public void cloneItem(org.apache.jetspeed.portlet.PortletRequest request)

deleteItem

public void deleteItem(org.apache.jetspeed.portlet.PortletRequest request)

updateModifiedItem

public void updateModifiedItem(org.apache.jetspeed.portlet.PortletRequest request)

displayItemCreateView

public void displayItemCreateView(org.apache.jetspeed.portlet.PortletRequest request)

displayItemUpdateView

public void displayItemUpdateView(org.apache.jetspeed.portlet.PortletRequest request)

displayItemCloneView

public void displayItemCloneView(org.apache.jetspeed.portlet.PortletRequest request)

displaySingleItemView

public void displaySingleItemView(org.apache.jetspeed.portlet.PortletRequest request)

displaySingleItemViewForWorkFlow

public void displaySingleItemViewForWorkFlow(org.apache.jetspeed.portlet.PortletRequest request)

setBusinessFunction

protected void setBusinessFunction(org.apache.jetspeed.portlet.PortletRequest request)
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
See Also:
BasePortlet.setBusinessFunction(org.apache.jetspeed.portlet.PortletRequest)

getStringValue

public static java.lang.String getStringValue(java.lang.String itemID,
                                              Attribute attribute,
                                              java.util.Locale locale,
                                              int index)

getStringValue

public static java.lang.String getStringValue(Attribute attribute,
                                              int index)

getCollection

public static java.util.HashMap getCollection(Attribute attribute)

getSelectedValue

public static java.lang.String getSelectedValue(Attribute attribute,
                                                java.lang.String key)

isMandatory

public static boolean isMandatory(Attribute attribute)

setMessageHeader

protected void setMessageHeader(org.apache.jetspeed.portlet.PortletRequest request,
                                java.lang.String command)

sendMessage

public void sendMessage(java.lang.String portlet,
                        GenericPortletMessage message)