Package com.sun.identity.console.policy
Class PolicyOpViewBeanBase
- java.lang.Object
-
- com.iplanet.jato.view.ViewBase
-
- com.iplanet.jato.view.ContainerViewBase
-
- com.iplanet.jato.view.RequestHandlingViewBase
-
- com.iplanet.jato.view.ViewBeanBase
-
- org.forgerock.openam.console.base.ConsoleViewBeanBase
-
- com.sun.identity.console.base.AMViewBeanBase
-
- com.sun.identity.console.base.AMPrimaryMastHeadViewBean
-
- com.sun.identity.console.policy.ProfileViewBeanBase
-
- com.sun.identity.console.policy.PolicyOpViewBeanBase
-
- All Implemented Interfaces:
com.iplanet.jato.RequestCompletionListener,com.iplanet.jato.RequestHandler,com.iplanet.jato.RequestParticipant,com.iplanet.jato.view.ContainerView,com.iplanet.jato.view.View,com.iplanet.jato.view.ViewBean,com.iplanet.jato.view.WebActionHandler,com.iplanet.jato.view.WebActions,com.sun.web.ui.view.tabs.CCNodeEventHandlerInterface
- Direct Known Subclasses:
PolicyNormalViewBeanBase,PolicyReferralViewBeanBase
public abstract class PolicyOpViewBeanBase extends ProfileViewBeanBase
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringPROPERTY_ATTRIBUTEprotected com.sun.web.ui.model.CCPageTitleModelptModelstatic StringWIZARD-
Fields inherited from class com.sun.identity.console.policy.ProfileViewBeanBase
PG_SESSION_POLICY_CACHE_ID
-
Fields inherited from class com.sun.identity.console.base.AMPrimaryMastHeadViewBean
HDR_COMMON, MH_COMMON, PG_SESSION_PAGE_TRAIL_ID, PG_SESSION_TAB_ID, retainPageSessionsBtwTabs, TAB_COMMON, tabModel
-
Fields inherited from class com.sun.identity.console.base.AMViewBeanBase
BTN_GHOST, debug, initialized, PG_SESSION_ATTR, PG_SESSION_ATTR_ID, PG_SESSION_SSO_ID, SZ_CACHE
-
Fields inherited from class com.iplanet.jato.view.ViewBeanBase
DEFAULT_COMMAND_CHILD_NVP_NAME, DISPLAY_EVENT_COMPLETED_REQUEST_ATTRIBUTE_NAME, OPTION_USE_PAGE_SESSION_FOR_DEFAULT_COMMAND_CHILD
-
Fields inherited from class com.iplanet.jato.view.RequestHandlingViewBase
HANDLE_REQUEST_METHOD_PREFIX, HANDLE_REQUEST_METHOD_SUFFIX
-
Fields inherited from class com.iplanet.jato.view.ContainerViewBase
BEGIN_DISPLAY_EVENT_METHOD_PREFIX, BEGIN_DISPLAY_EVENT_METHOD_SUFFIX, END_DISPLAY_EVENT_METHOD_PREFIX, END_DISPLAY_EVENT_METHOD_SUFFIX, eventMethodRegistry, OPTION_ENABLE_QUALIFIELD_CHILD_NAME_LOOKUPS, OPTION_USE_LEGACY_DISPLAY_EVENT_SIGNATURES
-
Fields inherited from interface com.iplanet.jato.view.ViewBean
PAGE_SESSION_ATTRIBUTE_NVP_NAME, VIEW_BEAN_NAME_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description PolicyOpViewBeanBase(String name, String defaultDisplayURL)Creates a policy operation base view bean.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbeginDisplay(com.iplanet.jato.view.event.DisplayEvent event)protected com.iplanet.jato.view.ViewcreateChild(String name)Creates user interface components used by this view bean.protected voidcreateConditionTableModels()protected abstract voidcreatePageTitleModel()protected voidcreatePropertyModel(String realmName)protected voidcreateReferralTableModels()protected voidcreateResponseProviderTableModels()protected voidcreateRuleTableModels()protected voidcreateSubjectTableModels()protected abstract voidcreateTableModels()protected voidforwardToPolicyViewBean()protected StringgetBackButtonLabel()Creates the label used to take the user back to the previous page they were viewing.protected abstract StringgetPropertyXMLFileName(boolean readonly)voidhandleButton3Request(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles cancel request.voidhandleTblConditionsButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblConditionsButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles delete condition request.voidhandleTblConditionsEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblReferralsButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblReferralsButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblReferralsEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblResponseProvidersButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblResponseProvidersButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles delete response attribute request.voidhandleTblResponseProvidersEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblRulesButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles add new rule request.voidhandleTblRulesButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles delete rule request.voidhandleTblRulesEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles edit rule request.voidhandleTblSubjectsButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)voidhandleTblSubjectsButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles delete subject request.voidhandleTblSubjectsEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)protected voidinitialize()protected abstract booleanisProfilePage()protected voidpopulateAttributes()protected voidpopulateConditionsTable()protected voidpopulateReferralsTable()protected voidpopulateResponseProvidersTable()protected voidpopulateRulesTable()protected voidpopulateSubjectsTable()protected abstract voidpopulateTables()protected booleanreconstructPolicy()protected voidregisterChildren()Registers user interface components used by this view bean.-
Methods inherited from class com.sun.identity.console.policy.ProfileViewBeanBase
getCachedPolicy, getModelInternal
-
Methods inherited from class com.sun.identity.console.base.AMPrimaryMastHeadViewBean
addPageTrail, backTrail, beginDisplay, createTabModel, forwardTo, getBreadCrumbDisplayName, getDefaultTabId, getTabNodeAssociatedViewBean, getTrackingTabIDName, handleBreadCrumbHrefRequest, handleRealmNameInTabSwitch, initPageTrail, isRootRealm, lockPageTrail, nodeClicked, passPgSessionMapEx, setPageTrail, setRequestContext, setSelectedTabNode, startPageTrail, unlockPageTrail, unlockPageTrailForSwapping
-
Methods inherited from class com.sun.identity.console.base.AMViewBeanBase
addBlankTextField, appendPgSession, beginChildDisplay, bypassForwardTo, charToHex, createOptionList, createOptionList, createOptionList, createOptionList, createOptionList, deserializePageAttributes, disableButton, getBackButtonLabel, getBlankTextFields, getCallingView, getCharset, getCharset, getContentType, getCurrentLocation, getCurrentLocationDN, getCurrentRealm, getCurrentRealmEncoded, getList, getModel, getPageSessionAttributes, getPageSessionAttributeString, getPath, getRequestURL, getServiceNameForAccessControl, getUserLocale, getValues, handleGRequest, hexToString, hideTableSelectionIcons, isInlineAlertMessageSet, mapRequestParameter, passPgSessionMap, passPgSessionMap, performDelegationTasks, redirectToStartURL, resetButtonState, resetView, setCurrentLocation, setInlineAlertMessage, setInlineAlertMessage, setPageSessionAttributes, setRequestContentInitialize, stringToHex
-
Methods inherited from class com.iplanet.jato.view.ViewBeanBase
clearPageSessionAttributes, forward, forwardTo, getDefaultCommandDescriptor, getDefaultDisplayURL, getDisplayURL, getLogicalName, getModuleURL, getPageSessionAttribute, getPageSessionAttributeString, getRequestInvocationName, getRequestInvocationName, handleDeserializePageAttributesException, include, include, include, invokeRequestHandler, invokeRequestHandlerInternal, mapRequestParameters, removePageSessionAttribute, securityCheck, setDefaultCommandDescriptor, setDefaultDisplayURL, setPageSessionAttribute
-
Methods inherited from class com.iplanet.jato.view.RequestHandlingViewBase
acceptRequest, afterAllModelsExecute, afterAllWebActionModelsExecute, afterHandleRequestCommandExecution, afterModelExecutes, afterWebActionModelExecutes, appMessage, beforeHandleRequestCommandExecution, beforeModelExecutes, beforeWebActionModelExecutes, createDefaultExecutionContext, executeAutoDeletingModel, executeAutoDeletingModels, executeAutoExecutingModel, executeAutoExecutingModels, executeAutoInsertingModel, executeAutoInsertingModels, executeAutoRetrievingModel, executeAutoRetrievingModels, executeAutoRetrievingModels, executeAutoUpdatingModel, executeAutoUpdatingModels, getAutoDeletingModels, getAutoExecutingModels, getAutoInsertingModels, getAutoRetrieveExecutionContext, getAutoRetrievingModels, getAutoUpdatingModels, getFirstActionExecutionContext, getLastActionExecutionContext, getModel, getNextActionExecutionContext, getPreviousActionExecutionContext, getRefreshActionExecutionContext, getRequestCompletionListenerChildNames, getRequestContext, getRequestParticipantChildNames, getSession, getViewBean, getWebActionModelOffset, getWebActionModels, getWebActionRowOffsetSessionKey, handleRequest, handleWebAction, isAutoRetrieveEnabled, onHandleRequestCommandExecutionError, onModelError, onNoModelDataAvailable, onWebActionExecutionError, requestComplete, setAutoDeletingModels, setAutoExecutingModels, setAutoInsertingModels, setAutoRetrieveEnabled, setAutoRetrieveExecutionContext, setAutoRetrievingModels, setAutoUpdatingModels, setWebActionModelOffset
-
Methods inherited from class com.iplanet.jato.view.ContainerViewBase
beginChildDisplay, beginComponentDisplay, beginDisplay, childExists, createChildReserved, endChildDisplay, endChildDisplay, endComponentDisplay, endDisplay, endDisplay, ensureChild, getChild, getChildNames, getChildNames, getChildType, getCommandChildNames, getDefaultModel, getDisplayField, getDisplayFieldBooleanValue, getDisplayFieldDoubleValue, getDisplayFieldIntValue, getDisplayFieldStringValue, getDisplayFieldValue, getNumChildren, getQualifiedCommandChildNames, onValidationException, registerChild, registerDisplayEventHandlers, removeAllChildren, removeChild, removeQualifiedNameIndices, resetChildren, setDefaultModel, setDisplayFieldValue, setDisplayFieldValue, setDisplayFieldValue, setDisplayFieldValue, unregisterChild
-
Methods inherited from class com.iplanet.jato.view.ViewBase
getName, getParent, getParentViewBean, getQualifiedName, getQualifiedViewNameSeparator, getRootView, getRootView, getSimpleQualifiedName, isVisible, setName, setParent, setQualifiedViewNameSeparator, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.iplanet.jato.view.ContainerView
endChildDisplay, endDisplay, getChild, getChildNames, getChildType, getDefaultModel, getDisplayField, getDisplayFieldValue, getNumChildren, resetChildren, setDisplayFieldValue
-
Methods inherited from interface com.iplanet.jato.RequestHandler
acceptRequest, getRequestContext, handleRequest
-
-
-
-
Field Detail
-
PROPERTY_ATTRIBUTE
protected static final String PROPERTY_ATTRIBUTE
- See Also:
- Constant Field Values
-
WIZARD
public static final String WIZARD
- See Also:
- Constant Field Values
-
ptModel
protected com.sun.web.ui.model.CCPageTitleModel ptModel
-
-
Method Detail
-
initialize
protected void initialize()
- Overrides:
initializein classAMViewBeanBase
-
createPropertyModel
protected void createPropertyModel(String realmName)
-
createRuleTableModels
protected void createRuleTableModels()
-
createReferralTableModels
protected void createReferralTableModels()
-
createSubjectTableModels
protected void createSubjectTableModels()
-
createResponseProviderTableModels
protected void createResponseProviderTableModels()
-
createConditionTableModels
protected void createConditionTableModels()
-
registerChildren
protected void registerChildren()
Description copied from class:AMPrimaryMastHeadViewBeanRegisters user interface components used by this view bean.- Overrides:
registerChildrenin classAMPrimaryMastHeadViewBean
-
createChild
protected com.iplanet.jato.view.View createChild(String name)
Description copied from class:AMPrimaryMastHeadViewBeanCreates user interface components used by this view bean.- Overrides:
createChildin classAMPrimaryMastHeadViewBean- Parameters:
name- of component- Returns:
- child component
-
beginDisplay
public void beginDisplay(com.iplanet.jato.view.event.DisplayEvent event) throws com.iplanet.jato.model.ModelControlException- Specified by:
beginDisplayin interfacecom.iplanet.jato.view.ContainerView- Overrides:
beginDisplayin classAMPrimaryMastHeadViewBean- Throws:
com.iplanet.jato.model.ModelControlException
-
populateReferralsTable
protected void populateReferralsTable() throws AMConsoleException- Throws:
AMConsoleException
-
populateSubjectsTable
protected void populateSubjectsTable() throws AMConsoleException- Throws:
AMConsoleException
-
populateResponseProvidersTable
protected void populateResponseProvidersTable() throws AMConsoleException- Throws:
AMConsoleException
-
populateConditionsTable
protected void populateConditionsTable() throws AMConsoleException- Throws:
AMConsoleException
-
populateRulesTable
protected void populateRulesTable() throws AMConsoleException- Throws:
AMConsoleException
-
populateAttributes
protected void populateAttributes() throws AMConsoleException- Throws:
AMConsoleException
-
forwardToPolicyViewBean
protected void forwardToPolicyViewBean()
-
handleTblRulesButtonAddRequest
public void handleTblRulesButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionHandles add new rule request.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblRulesButtonDeleteRequest
public void handleTblRulesButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionHandles delete rule request.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblRulesEditLinkRequest
public void handleTblRulesEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionHandles edit rule request.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException
-
reconstructPolicy
protected boolean reconstructPolicy() throws com.iplanet.jato.model.ModelControlException, AMConsoleException- Throws:
com.iplanet.jato.model.ModelControlExceptionAMConsoleException
-
handleTblReferralsButtonAddRequest
public void handleTblReferralsButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblReferralsButtonDeleteRequest
public void handleTblReferralsButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblReferralsEditLinkRequest
public void handleTblReferralsEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblSubjectsButtonAddRequest
public void handleTblSubjectsButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblSubjectsEditLinkRequest
public void handleTblSubjectsEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblSubjectsButtonDeleteRequest
public void handleTblSubjectsButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionHandles delete subject request.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblResponseProvidersButtonAddRequest
public void handleTblResponseProvidersButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblResponseProvidersEditLinkRequest
public void handleTblResponseProvidersEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblResponseProvidersButtonDeleteRequest
public void handleTblResponseProvidersButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionHandles delete response attribute request.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblConditionsButtonAddRequest
public void handleTblConditionsButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblConditionsEditLinkRequest
public void handleTblConditionsEditLinkRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlException- Throws:
com.iplanet.jato.model.ModelControlException
-
handleTblConditionsButtonDeleteRequest
public void handleTblConditionsButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionHandles delete condition request.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException
-
handleButton3Request
public void handleButton3Request(com.iplanet.jato.view.event.RequestInvocationEvent event)
Handles cancel request.- Parameters:
event- Request invocation event
-
getBackButtonLabel
protected String getBackButtonLabel()
Description copied from class:ProfileViewBeanBaseCreates the label used to take the user back to the previous page they were viewing. The label is defined in the property file as "Back to {0}" which lets us control the format of the label in different locales. The name of the current object is substituted.- Overrides:
getBackButtonLabelin classProfileViewBeanBase
-
createTableModels
protected abstract void createTableModels()
-
createPageTitleModel
protected abstract void createPageTitleModel()
-
getPropertyXMLFileName
protected abstract String getPropertyXMLFileName(boolean readonly)
-
populateTables
protected abstract void populateTables()
-
isProfilePage
protected abstract boolean isProfilePage()
-
-