com.filenet.wcm.apps.server.ui.wizard
Class WcmSecurityPolicySelectionWizardPage

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.base.WcmDpContainer
      extended bycom.filenet.wcm.toolkit.server.base.WcmModule
          extended bycom.filenet.wcm.toolkit.server.base.GlobalEventModule
              extended bycom.filenet.wcm.toolkit.server.base.WcmUiModule
                  extended bycom.filenet.wcm.apps.server.ui.wizard.WcmSecurityPolicySelectionWizardPage
All Implemented Interfaces:
com.filenet.wcm.toolkit.server.base.WcmModuleInterface, com.filenet.wcm.toolkit.server.base.WcmPanelInterface, com.filenet.wcm.toolkit.server.base.WcmPanelValidationInterface, com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface, com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface

public class WcmSecurityPolicySelectionWizardPage
extends com.filenet.wcm.toolkit.server.base.WcmUiModule
implements com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface, com.filenet.wcm.toolkit.server.base.WcmPanelValidationInterface

This class handles displaying the Security Policies on an object store for selection. It separates them by class using WcmObjectStoreClassNavigation. It also uses WcmItemsListView to show the list of Security Policies. And it provides a link to allow viewing the properties of a selected Security Policy class.

See Also:
WcmPropertiesInfoPage, WcmObjectStoreClassNavigation, WcmItemsListView

Field Summary
 
Fields inherited from class com.filenet.wcm.toolkit.server.base.WcmModule
locale, NAME_DELIMITER
 
Constructor Summary
WcmSecurityPolicySelectionWizardPage(int type)
          Constructor sets the Property type to one of the static int values defined in WcmPageMode.
 
Method Summary
 WcmClassNavigation getClassNavigation()
          Get accessor returns WcmClassNavigation
 java.lang.String getFormName()
          No form on this page
 WcmItemsListView getItemsListView()
          Get accessor returns WcmItemsListView
 WcmPropertiesInfoPage getPropertiesInfoPage()
          Get accessor returns WcmPropertiesInfoPage
 java.util.Iterator getValidationErrors()
          Unused
 void initialize()
          Initializes data providers, XSL parameters, the authoring state, and other state values.
 boolean isFinished()
          Returns true if a security policy has been selected
 void onSelectPolicy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handle selection of a policy: set authoring and navigation state objects, then retrieve the properties for the selected policy.
 void onStartPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initialize sub-Classes
 void panelCancel(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Clears state information.
 void panelFinish(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Currently clears state information.
 void panelInit()
          Called when this wizard page is first loaded to clear out any residual state information.
 void panelSave(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Method not used
 boolean panelValidate()
          Validates that the Security Policy class can be used, and that the user has sufficient rights.
 void render(java.io.Writer w)
          Renders the Security Policy classes of an object store, the Policies and their properties.
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmUiModule
getActive, getBasePath, getBaseUrl, getBaseURLBuilder, getControllerEventUrl, getControllerEventUrl, getEventFormFields, getEventFormFields, getEventFormTag, getEventFormTag, getEventUrl, getEventUrl, getEventUrl, getEventUrl, getFormSubmitUrl, getFormSubmitUrl, getGlobalEventUrl, getGlobalEventUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getUiParent, peekEvent, renderJSP, routeEvent, routeEvent, serverSideInclude, serverSideInclude, setActive, setJSP
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.GlobalEventModule
subscribeGlobalEvent
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmModule
addChild, addChild, addChild, cleanup, debugTrace, getClassProperty, getClassProperty, getClassPropertyKeys, getConfiguration, getController, getDataStore, getModuleProperty, getModuleProperty, getModuleProperty, getModuleProperty, getModulePropertyKeys, getName, getParent, getWindowProperty, getWindowProperty, persist, queryDataProvider, setClassProperty, setClassProperty, setController, setModuleProperty, setModuleProperty, setName, setParent, setPortletParent, setWindowProperty
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmDpContainer
addDataProvider, addDataProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
addDataProvider, cleanup, getDataStore, getModuleProperty, getName, getParent, persist, queryDataProvider, setController, setModuleProperty, setName, setParent
 

Constructor Detail

WcmSecurityPolicySelectionWizardPage

public WcmSecurityPolicySelectionWizardPage(int type)
                                     throws java.lang.Exception
Constructor sets the Property type to one of the static int values defined in WcmPageMode.

Parameters:
type - One of the WcmPageMode int field types.
Throws:
java.lang.Exception
See Also:
WcmPageMode
Method Detail

getClassNavigation

public WcmClassNavigation getClassNavigation()
                                      throws java.lang.Exception
Get accessor returns WcmClassNavigation

Returns:
WcmClassNavigation
Throws:
java.lang.Exception

getItemsListView

public WcmItemsListView getItemsListView()
                                  throws java.lang.Exception
Get accessor returns WcmItemsListView

Returns:
WcmItemsListView
Throws:
java.lang.Exception

getPropertiesInfoPage

public WcmPropertiesInfoPage getPropertiesInfoPage()
                                            throws java.lang.Exception
Get accessor returns WcmPropertiesInfoPage

Returns:
WcmPropertiesInfoPage
Throws:
java.lang.Exception

initialize

public void initialize()
                throws java.lang.Exception
Initializes data providers, XSL parameters, the authoring state, and other state values.

Specified by:
initialize in interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
Throws:
java.lang.Exception

onStartPage

public void onStartPage(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws java.lang.Exception
Initialize sub-Classes

Specified by:
onStartPage in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Parameters:
request - HttpServletRequest object
response - HttpServletResponse object
Throws:
java.lang.Exception

onSelectPolicy

public void onSelectPolicy(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws java.lang.Exception
Handle selection of a policy: set authoring and navigation state objects, then retrieve the properties for the selected policy.

Parameters:
request - HttpServletRequest object
response - HttpServletResponse object
Throws:
java.lang.Exception

render

public void render(java.io.Writer w)
            throws java.lang.Exception
Renders the Security Policy classes of an object store, the Policies and their properties.

Specified by:
render in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Parameters:
w - Writer object to write to.
Throws:
java.lang.Exception

panelInit

public void panelInit()
               throws java.lang.Exception
Called when this wizard page is first loaded to clear out any residual state information.

Specified by:
panelInit in interface com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
Throws:
java.lang.Exception

panelCancel

public void panelCancel(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws java.lang.Exception
Clears state information.

Specified by:
panelCancel in interface com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
Parameters:
request - HttpServletRequest object
response - HttpServletResponse object
Throws:
java.lang.Exception

panelSave

public void panelSave(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws java.lang.Exception
Method not used

Specified by:
panelSave in interface com.filenet.wcm.toolkit.server.base.WcmPanelInterface
Parameters:
request - HttpServletRequest object
response - HttpServletResponse object
Throws:
java.lang.Exception

panelValidate

public boolean panelValidate()
                      throws java.lang.Exception
Validates that the Security Policy class can be used, and that the user has sufficient rights.

Specified by:
panelValidate in interface com.filenet.wcm.toolkit.server.base.WcmPanelValidationInterface
Returns:
true if no Exception was thrown.
Throws:
java.lang.Exception

getValidationErrors

public java.util.Iterator getValidationErrors()
Unused

Specified by:
getValidationErrors in interface com.filenet.wcm.toolkit.server.base.WcmPanelValidationInterface
Returns:
null

panelFinish

public void panelFinish(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws java.lang.Exception
Currently clears state information.

Specified by:
panelFinish in interface com.filenet.wcm.toolkit.server.base.WcmPanelInterface
Parameters:
request - HttpServletRequest object
response - HttpServletResponse object
Throws:
java.lang.Exception

getFormName

public java.lang.String getFormName()
No form on this page

Specified by:
getFormName in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Returns:
null

isFinished

public boolean isFinished()
                   throws java.lang.Exception
Returns true if a security policy has been selected

Specified by:
isFinished in interface com.filenet.wcm.toolkit.server.base.WcmSequencePanelInterface
Returns:
true if a security policy has been selected
Throws:
java.lang.Exception


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.