Class AgentsViewBean
- 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.agentconfig.AgentsViewBean
-
- 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,HasEntitiesTabs,com.sun.web.ui.view.tabs.CCNodeEventHandlerInterface
public class AgentsViewBean extends AMPrimaryMastHeadViewBean implements HasEntitiesTabs
Main page of agent configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAGENT_2_2static StringAGENT_WEBbooleancombinedTypestatic StringDEFAULT_ID_TYPEstatic StringDESCRIPTIONstatic StringLOCAL_OR_NOTstatic StringPG_SESSION_AGENT_TYPEstatic StringPG_SESSION_SUPERCEDE_AGENT_TYPEstatic StringPROP_CENTRALstatic StringPROP_LOCALSetsupportedTypes-
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 AgentsViewBean()Creates an instance of this view bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbeginBtnGroupSearchDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)Returnstrueif agent type is not 2.2 agent.voidbeginDisplay(com.iplanet.jato.view.event.DisplayEvent event)Sets the agent title and populates the agent and agent group action table.booleanbeginTabCommonDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)Returnstrueif tab set of more than one tab.booleanbeginTblSearchGroupDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)Returnstrueif agent type is not 2.2 agent.booleanbeginTfGroupFilterDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)Returnstrueif agent type is not 2.2 agent.protected com.iplanet.jato.view.ViewcreateChild(String name)Creates user interface components used by this view bean.protected voidcreateTabModel()code to handle tab related functionalityprotected StringgetBreadCrumbDisplayName()protected AMModelgetModelInternal()Returns model for this view bean.voidhandleBtnGroupSearchRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles search request.voidhandleBtnSearchRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles search request.voidhandleButton1Request(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles 'Back to' button request.voidhandleParentagepathHrefRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles parentage path request.protected booleanhandleRealmNameInTabSwitch(com.iplanet.jato.RequestContext rc)voidhandleTblButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Forwards request to creation view bean.voidhandleTblButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Deletes agents.voidhandleTblButtonGroupAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Forwards request to group creation view bean.voidhandleTblButtonGroupDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Deletes agent groups.voidhandleTblDataActionGroupHrefRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Forwards request to edit agent group view bean.voidhandleTblDataActionHrefRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Forwards request to edit agent view bean.protected voidinitialize()voidnodeClicked(com.iplanet.jato.view.event.RequestInvocationEvent event, int nodeID)Handles tab selected event.protected voidregisterChildren()Registers user interface components used by this view bean.protected booleanstartPageTrail()-
Methods inherited from class com.sun.identity.console.base.AMPrimaryMastHeadViewBean
addPageTrail, backTrail, beginDisplay, forwardTo, getDefaultTabId, getTabNodeAssociatedViewBean, getTrackingTabIDName, handleBreadCrumbHrefRequest, initPageTrail, isRootRealm, lockPageTrail, passPgSessionMapEx, setPageTrail, setRequestContext, setSelectedTabNode, 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
-
PG_SESSION_AGENT_TYPE
public static final String PG_SESSION_AGENT_TYPE
- See Also:
- Constant Field Values
-
PG_SESSION_SUPERCEDE_AGENT_TYPE
public static final String PG_SESSION_SUPERCEDE_AGENT_TYPE
- See Also:
- Constant Field Values
-
DEFAULT_ID_TYPE
public static final String DEFAULT_ID_TYPE
- See Also:
- Constant Field Values
-
DESCRIPTION
public static String DESCRIPTION
-
LOCAL_OR_NOT
public static final String LOCAL_OR_NOT
- See Also:
- Constant Field Values
-
PROP_LOCAL
public static final String PROP_LOCAL
- See Also:
- Constant Field Values
-
PROP_CENTRAL
public static final String PROP_CENTRAL
- See Also:
- Constant Field Values
-
AGENT_2_2
public static final String AGENT_2_2
- See Also:
- Constant Field Values
-
AGENT_WEB
public static final String AGENT_WEB
- See Also:
- Constant Field Values
-
combinedType
public boolean combinedType
-
supportedTypes
public Set supportedTypes
-
-
Method Detail
-
initialize
protected void initialize()
- Overrides:
initializein classAMViewBeanBase
-
createTabModel
protected void createTabModel()
Description copied from class:AMPrimaryMastHeadViewBeancode to handle tab related functionality- Overrides:
createTabModelin classAMPrimaryMastHeadViewBean
-
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
-
handleRealmNameInTabSwitch
protected boolean handleRealmNameInTabSwitch(com.iplanet.jato.RequestContext rc)
- Overrides:
handleRealmNameInTabSwitchin classAMPrimaryMastHeadViewBean
-
beginTabCommonDisplay
public boolean beginTabCommonDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)
Returnstrueif tab set of more than one tab.- Parameters:
event- Child Display Event.- Returns:
trueif tab set of more than one tab.
-
beginDisplay
public void beginDisplay(com.iplanet.jato.view.event.DisplayEvent event) throws com.iplanet.jato.model.ModelControlExceptionSets the agent title and populates the agent and agent group action table.- Specified by:
beginDisplayin interfacecom.iplanet.jato.view.ContainerView- Overrides:
beginDisplayin classAMPrimaryMastHeadViewBean- Parameters:
event- Display Event.- Throws:
com.iplanet.jato.model.ModelControlException- if cannot access to framework model.
-
nodeClicked
public void nodeClicked(com.iplanet.jato.view.event.RequestInvocationEvent event, int nodeID)Handles tab selected event.- Specified by:
nodeClickedin interfacecom.sun.web.ui.view.tabs.CCNodeEventHandlerInterface- Overrides:
nodeClickedin classAMPrimaryMastHeadViewBean- Parameters:
event- Request Invocation Event.nodeID- Selected Node ID.
-
handleButton1Request
public void handleButton1Request(com.iplanet.jato.view.event.RequestInvocationEvent event)
Handles 'Back to' button request. In this case, it takes you back to the realm view.- Parameters:
event- Request Invocation Event.
-
getModelInternal
protected AMModel getModelInternal()
Description copied from class:AMViewBeanBaseReturns model for this view bean. Dervived class need to implement this method.- Specified by:
getModelInternalin classAMViewBeanBase- Returns:
- model for this view bean.
-
handleBtnGroupSearchRequest
public void handleBtnGroupSearchRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Handles search request.- Parameters:
event- Request Invocation Event.
-
handleBtnSearchRequest
public void handleBtnSearchRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Handles search request.- Parameters:
event- Request Invocation Event.
-
handleTblButtonGroupAddRequest
public void handleTblButtonGroupAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Forwards request to group creation view bean.- Parameters:
event- Request Invocation Event.
-
handleTblButtonAddRequest
public void handleTblButtonAddRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Forwards request to creation view bean.- Parameters:
event- Request Invocation Event.
-
handleTblDataActionHrefRequest
public void handleTblDataActionHrefRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Forwards request to edit agent view bean.- Parameters:
event- Request Invocation Event.
-
handleTblDataActionGroupHrefRequest
public void handleTblDataActionGroupHrefRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Forwards request to edit agent group view bean.- Parameters:
event- Request Invocation Event.
-
handleTblButtonDeleteRequest
public void handleTblButtonDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionDeletes agents.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException- if table model cannot be restored.
-
handleTblButtonGroupDeleteRequest
public void handleTblButtonGroupDeleteRequest(com.iplanet.jato.view.event.RequestInvocationEvent event) throws com.iplanet.jato.model.ModelControlExceptionDeletes agent groups.- Parameters:
event- Request Invocation Event.- Throws:
com.iplanet.jato.model.ModelControlException- if table model cannot be restored.
-
beginTblSearchGroupDisplay
public boolean beginTblSearchGroupDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)
Returnstrueif agent type is not 2.2 agent.- Parameters:
event- Child display event.- Returns:
trueif agent type is not 2.2 agent.
-
beginBtnGroupSearchDisplay
public boolean beginBtnGroupSearchDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)
Returnstrueif agent type is not 2.2 agent.- Parameters:
event- Child display event.- Returns:
trueif agent type is not 2.2 agent.
-
beginTfGroupFilterDisplay
public boolean beginTfGroupFilterDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)
Returnstrueif agent type is not 2.2 agent.- Parameters:
event- Child display event.- Returns:
trueif agent type is not 2.2 agent.
-
getBreadCrumbDisplayName
protected String getBreadCrumbDisplayName()
- Overrides:
getBreadCrumbDisplayNamein classAMPrimaryMastHeadViewBean
-
startPageTrail
protected boolean startPageTrail()
- Overrides:
startPageTrailin classAMPrimaryMastHeadViewBean
-
handleParentagepathHrefRequest
public void handleParentagepathHrefRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Handles parentage path request.- Parameters:
event- Request Invocation Event.
-
-