com.filenet.wcm.apps.server.ui.select

Class WcmSecurityAccessSelect

  1. java.lang.Object
  2. extended bycom.filenet.wcm.toolkit.server.base.WcmDpContainer
  3. extended bycom.filenet.wcm.toolkit.server.base.WcmModule
  4. extended bycom.filenet.wcm.toolkit.server.base.GlobalEventModule
  5. extended bycom.filenet.wcm.toolkit.server.base.WcmUiModule
  6. extended bycom.filenet.wcm.toolkit.server.ui.WcmJSPModule
  7. extended bycom.filenet.wcm.toolkit.server.ui.WcmLayoutModule
  8. extended bycom.filenet.wcm.apps.server.ui.layout.WcmWorkplaceLayoutModule
  9. extended bycom.filenet.wcm.apps.server.ui.select.WcmSecurityAccessSelect
All implemented interfaces:
com.filenet.wcm.toolkit.server.base.WcmModuleInterface, com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface

  1. public class WcmSecurityAccessSelect
  2. extends WcmWorkplaceLayoutModule
The WcmSecurityAccessSelect class displays the detail view of a grantee's access rights. It uses the WcmSecurityAccessSelect.xsl to display the access rights of the current selected grantee returned by the WcmAuthoringDataProvider. This class also uses the WcmSecurityUtil class extensively to compute and update the security data.
See Also:
WcmSecurityUtil, WcmAuthoringDataProvider

Field Summary

Fields inherited from class com.filenet.wcm.apps.server.ui.layout.WcmWorkplaceLayoutModule
bannerModule, contextMenu, footerLinksBarModule, footerModule, leftCSSClass, MAIN_MODE, multiSelectMenu, OPERATION_MODE, renderLeftBar, showFooterLinksBar, tabBarModule, treeModule
Fields inherited from class com.filenet.wcm.toolkit.server.ui.WcmLayoutModule
jspMode, layout
Fields inherited from class com.filenet.wcm.toolkit.server.base.WcmModule
locale, NAME_DELIMITER

Constructor Summary

Constructor and Description
WcmSecurityAccessSelect()
Create a new WcmSecurityAccessSelect object for displaying the selected grantee's access rights.

Method Summary

Modifier and Type Method and Description
  1. void
cleanup()
Cleans up session data to reduce resource usage.
  1. java.lang.String
getFormName()
Returns the form name used by the WcmSecurityAccessSelect UI so that the container object can use the same form name to submit events.\
  1. WcmSecurityUtil
getSecurityUtil()
Accessor method to return the WcmSecurityUtil object.
  1. WcmTextLinksBar
getTextLinksBar()
Accessor method to return the WcmTextLinksBar object.
  1. com.filenet.wcm.toolkit.server.ui.WcmXSLModule
getXSLModule()
Accessor method to return the WcmXSLModule object.
  1. void
initialize()
Initializes data providers and XSL parameters.
  1. void
onAccept(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the Modify event triggered by the user selecting the Continue link.
  1. void
onClose(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the Cancel event triggered by the user selecting the Cancel link.
  1. void
onSelectAccess(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the Select Access event triggered by the user selecting one of the access checkboxes.
  1. void
onSelectView(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
The updated selected grantee's access right is saved to the Permission Object XML using the WcmSecurityUtil module.
  1. void
onStartPage(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the Start Page event triggered by the controller.
  1. void
onUpdate(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the Update event triggered by the user selecting the Continue link on the warning page.
Methods inherited from class com.filenet.wcm.apps.server.ui.layout.WcmWorkplaceLayoutModule
addModule, addModule, addPrimaryPageAnchors, createLayout, getAnchorTree, getBannerBar, getFooter, getFooterLinksBar, getOperationTitle, getPageTabId, getPrimaryPageAnchors, getTabBar, isAdminLinkAvailable, registerAddedModules, renderLayout, resetPrimaryPageAnchors, setAddContextMenu, setMode, setOperationTitle, setOperationTitle, setOperationTitle, setOperationTitle, setRemoveTreeModule, setShowFooterLinksBar, setTabBarSelection
Methods inherited from class com.filenet.wcm.toolkit.server.ui.WcmLayoutModule
getLayout, render, setJSP
Methods inherited from class com.filenet.wcm.toolkit.server.ui.WcmJSPModule
getCurrentModule
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
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, 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, getDataStore, getModuleProperty, getName, getParent, persist, queryDataProvider, setController, setModuleProperty, setName, setParent

Constructor Detail

WcmSecurityAccessSelect

  1. public WcmSecurityAccessSelect( )
  2. throws java.lang.Exception
Create a new WcmSecurityAccessSelect object for displaying the selected grantee's access rights.
Throws:
java.lang.Exception - All errors.

Method Detail

initialize

  1. public void initialize()
  2. throws java.lang.Exception
Initializes data providers and XSL parameters.

Specified by:
initialize in interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
Overrides:
Throws:
java.lang.Exception - All errors.
See Also:
WcmAuthoringDataProvider

getFormName

  1. public java.lang.String getFormName( )
Returns the form name used by the WcmSecurityAccessSelect UI so that the container object can use the same form name to submit events.\
Specified by:
getFormName in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
getFormName in class com.filenet.wcm.toolkit.server.base.WcmUiModule
Returns:
String The html form name.

onStartPage

  1. public void onStartPage(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Handles the Start Page event triggered by the controller.

Data is retrieved from the WcmAuthoringDataProvider class property and all XSL parameters are set for the XSL rendering process.

Specified by:
onStartPage in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
onStartPage in class com.filenet.wcm.toolkit.server.base.GlobalEventModule
Parameters:
request - The JSP request object.
response - The JSP response object.
Throws:
java.lang.Exception - All errors.
See Also:
WcmAuthoringDataProvider

onSelectView

  1. public void onSelectView(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception

The updated selected grantee's access right is saved to the Permission Object XML using the WcmSecurityUtil module. The module then redirects back to the calling page.

Parameters:
request - The JSP request object.
response - The JSP response object.
Throws:
java.lang.Exception - All errors.
See Also:

onSelectAccess

  1. public void onSelectAccess(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Handles the Select Access event triggered by the user selecting one of the access checkboxes.

The selected access level is granted or denied based on the user's selection using the WcmSecurityUtil module.

Parameters:
request - The JSP request object.
response - The JSP response object.
Throws:
java.lang.Exception - All errors.
See Also:

onClose

  1. public void onClose(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Handles the Cancel event triggered by the user selecting the Cancel link.

Discards changes made to the grantee's security. Gets the return URL and redirect back to the calling page.

Parameters:
request - The JSP request object.
response - The JSP response object.
Throws:
java.lang.Exception - All errors.
See Also:

onAccept

  1. public void onAccept(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Handles the Modify event triggered by the user selecting the Continue link.

The updated selected grantee's access right is saved to the Permission Object XML using the WcmSecurityUtil module. A warning page will be shown if an explicit deny entry existed and was set for the first time by the user. The user is then required to confirm the selection by clicking on the Continue link in the warning page.

Parameters:
request - The JSP request object.
response - The JSP response object.
Throws:
java.lang.Exception - All errors.
See Also:

onUpdate

  1. public void onUpdate(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Handles the Update event triggered by the user selecting the Continue link on the warning page.

The updated selected grantee's access right is saved to the Permission Object XML using the WcmSecurityUtil module. The module then redirects back to the calling page.

Parameters:
request - The JSP request object.
response - The JSP response object.
Throws:
java.lang.Exception - All errors.
See Also:

cleanup

  1. public void cleanup()
  2. throws java.lang.Exception
Cleans up session data to reduce resource usage.

Specified by:
cleanup in interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
Overrides:
cleanup in class com.filenet.wcm.toolkit.server.base.WcmModule
Throws:
java.lang.Exception - All errors.

  1. public WcmTextLinksBar getTextLinksBar( )
Accessor method to return the WcmTextLinksBar object.
Returns:
WcmTextLinksBar object.

getSecurityUtil

  1. public WcmSecurityUtil getSecurityUtil( )
Accessor method to return the WcmSecurityUtil object.
Returns:
WcmSecurityUtil object.

getXSLModule

  1. public com.filenet.wcm.toolkit.server.ui.WcmXSLModule getXSLModule( )
Accessor method to return the WcmXSLModule object.
Returns:
WcmXSLModule object.