Class PageBase
- java.lang.Object
-
- org.apache.wicket.Component
-
- org.apache.wicket.MarkupContainer
-
- org.apache.wicket.Page
-
- org.apache.wicket.markup.html.WebPage
-
- com.evolveum.midpoint.gui.api.page.PageAdminLTE
-
- com.evolveum.midpoint.gui.api.page.PageBase
-
- All Implemented Interfaces:
ModelServiceLocator
,Serializable
,Iterable<org.apache.wicket.Component>
,org.apache.wicket.event.IEventSink
,org.apache.wicket.event.IEventSource
,org.apache.wicket.feedback.IFeedbackContributor
,org.apache.wicket.IConverterLocator
,org.apache.wicket.IMetadataContext<Serializable,org.apache.wicket.Component>
,org.apache.wicket.IQueueRegion
,org.apache.wicket.markup.html.IHeaderContributor
,org.apache.wicket.page.IManageablePage
,org.apache.wicket.request.component.IRequestableComponent
,org.apache.wicket.request.component.IRequestablePage
,org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AbstractPageObjectDetails
,PageAccountActivation
,PageAdmin
,PageAttorneySelection
,PageAuditLogDetails
,PageAuditLogViewer
,PageError
,PageFocusPreviewChanges
,PageMergeObjects
,PageOperationResult
,PageSelf
,PageSelfConsents
,PageSelfCredentials
,PageSelfProfile
,PageSystemConfiguration
,PageTestNoAuthorizations
public abstract class PageBase extends PageAdminLTE
- Author:
- lazyman, semancik
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID_FEEDBACK_CONTAINER
static String
PARAMETER_DASHBOARD_TYPE_OID
static String
PARAMETER_DASHBOARD_WIDGET_NAME
static String
PARAMETER_OBJECT_COLLECTION_NAME
static String
PARAMETER_SEARCH_BY_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBreadcrumb(Breadcrumb breadcrumb)
<O extends ObjectType,T extends ObjectType>
voidauthorize(String operationUrl, AuthorizationPhaseType phase, PrismObject<O> object, ObjectDelta<O> delta, PrismObject<T> target, OwnerResolver ownerResolver, OperationResult result)
boolean
canRedirectBack()
boolean
canRedirectBack(int backStep)
Checks if it's possible to make backStep steps back.void
clearBreadcrumbs()
protected void
createBreadcrumb()
static org.apache.wicket.behavior.AttributeAppender
createHeaderColorStyleModel(boolean checkSkinUsage)
protected MessagePanel
createMessagePanel(String panelId, MessagePanel.MessagePanelType type, String message, Object... params)
protected org.apache.wicket.model.IModel<String>
createPageTitleModel()
String
createPropertyModelExpression(String... components)
org.apache.wicket.markup.html.WebPage
createWebPage(Class<? extends org.apache.wicket.markup.html.WebPage> pageType, org.apache.wicket.request.mapper.parameter.PageParameters params)
protected String
determineDataLanguage()
AsyncWebProcessManager
getAsyncWebProcessManager()
List<Breadcrumb>
getBreadcrumbs()
long
getItemsPerPage(UserProfileStorage.TableId tableId)
long
getItemsPerPage(String tableIdName)
Breadcrumb
getLastBreadcrumb()
Locale
getLocale()
MainPopupDialog
getMainPopup()
String
getMainPopupBodyId()
Breadcrumb
getPreviousBreadcrumb()
org.apache.wicket.RestartResponseException
getRestartResponseException(Class<? extends org.apache.wicket.Page> defaultBackPageClass)
org.apache.wicket.markup.html.WebMarkupContainer
getTitleContainer()
boolean
hasSubjectRoleRelation(String oid, List<QName> subjectRelations)
void
hideMainPopup(org.apache.wicket.ajax.AjaxRequestTarget target)
<C extends Containerable>
org.apache.wicket.markup.html.panel.PanelinitContainerValuePanel(String id, org.apache.wicket.model.IModel<PrismContainerValueWrapper<C>> model, ItemPanelSettings settings)
boolean
isLogoLinkEnabled()
protected boolean
isSideMenuVisible()
PrismObject<? extends FocusType>
loadFocusSelf()
void
navigateToNext(Class<? extends org.apache.wicket.markup.html.WebPage> page)
void
navigateToNext(Class<? extends org.apache.wicket.markup.html.WebPage> pageType, org.apache.wicket.request.mapper.parameter.PageParameters params)
void
navigateToNext(org.apache.wicket.markup.html.WebPage page)
protected void
onBeforeRender()
protected void
onConfigure()
protected void
onInitialize()
<T> void
parseObject(String lexicalRepresentation, Holder<T> objectHolder, String language, boolean validateSchema, boolean skipChecks, Class<T> clazz, OperationResult result)
void
processResult(org.apache.wicket.ajax.AjaxRequestTarget target, OperationResult result, boolean showSuccess)
Breadcrumb
redirectBack()
Breadcrumb
redirectBack(int backStep)
void
redirectBackToBreadcrumb(Breadcrumb breadcrumb)
org.apache.wicket.RestartResponseException
redirectBackViaRestartResponseException()
Returns exception, always use with `throw`.void
redirectToNotFoundPage()
void
refreshTitle(org.apache.wicket.ajax.AjaxRequestTarget target)
void
reloadShoppingCartIcon(org.apache.wicket.ajax.AjaxRequestTarget target)
org.apache.wicket.RestartResponseException
restartResponseExceptionToReload()
Returns exception, always use with `throw`.void
setBreadcrumbs(List<Breadcrumb> breadcrumbs)
protected void
setTimeZone()
void
showMainPopup(Popupable popupable, org.apache.wicket.ajax.AjaxRequestTarget target)
void
updateBreadcrumbParameters(String key, Object value)
-
Methods inherited from class com.evolveum.midpoint.gui.api.page.PageAdminLTE
addDefaultBodyStyle, addFeedbackPanel, createAnonymousTask, createComponentPath, createEnumResourceKey, createItemWrapper, createItemWrapper, createItemWrapper, createSimpleTask, createSimpleTask, createStringResource, createStringResource, createStringResource, createStringResource, createStringResource, createStringResource, createStringResourceDefault, createStringResourceStatic, createStringResourceStatic, createValueWrapper, executeOptions, findContainerWrapperFactory, findObjectPanel, findObjectWrapperFactory, findWrapperFactory, getAdminGuiConfigurationMergeManager, getAdministratorPrivileged, getApprovalsManager, getCacheDispatcher, getCaseManager, getCaseService, getCertificationService, getClock, getCompiledGuiProfile, getCorrelationService, getCounterProvider, getDashboardService, getDataProviderRegistry, getDescribe, getExpressionFactory, getFeedbackPanel, getFormValidatorRegistry, getLocalizationService, getMatchingRuleRegistry, getMidpointApplication, getMidpointConfiguration, getModelAuditService, getModelDiagnosticService, getModelInteractionService, getModelObjectResolver, getModelService, getOperationOptionsBuilder, getPageTask, getPageTitleModel, getPrincipal, getPrincipalFocus, getPrismContext, getQueryConverter, getRegistry, getRelationRegistry, getReportManager, getRepositoryService, getResourceValidator, getSchemaService, getScriptingService, getSecurityContextManager, getSecurityEnforcer, getSessionStorage, getString, getTaskManager, getTaskService, getWebApplicationConfiguration, initItemPanel, isAuthorized, isAuthorized, isAuthorized, isNativeRepo, runAsChecked, runPrivileged, showResult, showResult, showResult, showResult
-
Methods inherited from class org.apache.wicket.markup.html.WebPage
configureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl, reportMissingHead, setHeaders
-
Methods inherited from class org.apache.wicket.Page
componentChanged, componentRendered, detachModels, dirty, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, isBookmarkable, isErrorPage, isPageStateless, onDetach, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, toString, wasCreatedBookmarkable, wasRendered
-
Methods inherited from class org.apache.wicket.MarkupContainer
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, visitChildren, visitChildren
-
Methods inherited from class org.apache.wicket.Component
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getInnermostModel, getInnermostModel, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMarkupTag, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.IQueueRegion
dequeue, getRegionMarkup, newDequeueContext
-
Methods inherited from interface org.apache.wicket.request.component.IRequestableComponent
canCallListenerAfterExpiry, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
ID_FEEDBACK_CONTAINER
public static final String ID_FEEDBACK_CONTAINER
- See Also:
- Constant Field Values
-
PARAMETER_OBJECT_COLLECTION_NAME
public static final String PARAMETER_OBJECT_COLLECTION_NAME
- See Also:
- Constant Field Values
-
PARAMETER_DASHBOARD_TYPE_OID
public static final String PARAMETER_DASHBOARD_TYPE_OID
- See Also:
- Constant Field Values
-
PARAMETER_DASHBOARD_WIDGET_NAME
public static final String PARAMETER_DASHBOARD_WIDGET_NAME
- See Also:
- Constant Field Values
-
PARAMETER_SEARCH_BY_NAME
public static final String PARAMETER_SEARCH_BY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
onInitialize
protected void onInitialize()
- Overrides:
onInitialize
in classPageAdminLTE
-
onConfigure
protected void onConfigure()
- Overrides:
onConfigure
in classorg.apache.wicket.Page
-
createBreadcrumb
protected void createBreadcrumb()
-
authorize
public <O extends ObjectType,T extends ObjectType> void authorize(String operationUrl, AuthorizationPhaseType phase, PrismObject<O> object, ObjectDelta<O> delta, PrismObject<T> target, OwnerResolver ownerResolver, OperationResult result) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
-
hasSubjectRoleRelation
public boolean hasSubjectRoleRelation(String oid, List<QName> subjectRelations)
-
onBeforeRender
protected void onBeforeRender()
- Overrides:
onBeforeRender
in classorg.apache.wicket.Page
-
createHeaderColorStyleModel
public static org.apache.wicket.behavior.AttributeAppender createHeaderColorStyleModel(boolean checkSkinUsage)
-
getMainPopup
public MainPopupDialog getMainPopup()
-
getMainPopupBodyId
public String getMainPopupBodyId()
-
showMainPopup
public void showMainPopup(Popupable popupable, org.apache.wicket.ajax.AjaxRequestTarget target)
-
hideMainPopup
public void hideMainPopup(org.apache.wicket.ajax.AjaxRequestTarget target)
-
isSideMenuVisible
protected boolean isSideMenuVisible()
-
createPageTitleModel
protected org.apache.wicket.model.IModel<String> createPageTitleModel()
- Overrides:
createPageTitleModel
in classPageAdminLTE
-
refreshTitle
public void refreshTitle(org.apache.wicket.ajax.AjaxRequestTarget target)
-
getTitleContainer
public org.apache.wicket.markup.html.WebMarkupContainer getTitleContainer()
-
processResult
public void processResult(org.apache.wicket.ajax.AjaxRequestTarget target, OperationResult result, boolean showSuccess)
-
getRestartResponseException
public org.apache.wicket.RestartResponseException getRestartResponseException(Class<? extends org.apache.wicket.Page> defaultBackPageClass)
-
parseObject
public <T> void parseObject(String lexicalRepresentation, Holder<T> objectHolder, String language, boolean validateSchema, boolean skipChecks, Class<T> clazz, OperationResult result)
-
getItemsPerPage
public long getItemsPerPage(UserProfileStorage.TableId tableId)
-
getItemsPerPage
public long getItemsPerPage(String tableIdName)
-
canRedirectBack
public boolean canRedirectBack()
-
canRedirectBack
public boolean canRedirectBack(int backStep)
Checks if it's possible to make backStep steps back.
-
redirectBack
public Breadcrumb redirectBack()
-
redirectToNotFoundPage
public void redirectToNotFoundPage()
- Overrides:
redirectToNotFoundPage
in classPageAdminLTE
-
redirectBack
public Breadcrumb redirectBack(int backStep)
- Parameters:
backStep
- redirects back to page with backStep step
-
navigateToNext
public void navigateToNext(Class<? extends org.apache.wicket.markup.html.WebPage> page)
-
navigateToNext
public void navigateToNext(Class<? extends org.apache.wicket.markup.html.WebPage> pageType, org.apache.wicket.request.mapper.parameter.PageParameters params)
-
createWebPage
public org.apache.wicket.markup.html.WebPage createWebPage(Class<? extends org.apache.wicket.markup.html.WebPage> pageType, org.apache.wicket.request.mapper.parameter.PageParameters params)
-
navigateToNext
public void navigateToNext(org.apache.wicket.markup.html.WebPage page)
-
redirectBackViaRestartResponseException
public org.apache.wicket.RestartResponseException redirectBackViaRestartResponseException()
Returns exception, always use with `throw`.
-
restartResponseExceptionToReload
public org.apache.wicket.RestartResponseException restartResponseExceptionToReload()
Returns exception, always use with `throw`.
-
redirectBackToBreadcrumb
public void redirectBackToBreadcrumb(Breadcrumb breadcrumb)
-
setTimeZone
protected void setTimeZone()
-
setBreadcrumbs
public void setBreadcrumbs(List<Breadcrumb> breadcrumbs)
-
getBreadcrumbs
public List<Breadcrumb> getBreadcrumbs()
-
addBreadcrumb
public void addBreadcrumb(Breadcrumb breadcrumb)
-
getLastBreadcrumb
public Breadcrumb getLastBreadcrumb()
-
getPreviousBreadcrumb
public Breadcrumb getPreviousBreadcrumb()
-
clearBreadcrumbs
public void clearBreadcrumbs()
-
isLogoLinkEnabled
public boolean isLogoLinkEnabled()
-
determineDataLanguage
protected String determineDataLanguage()
-
reloadShoppingCartIcon
public void reloadShoppingCartIcon(org.apache.wicket.ajax.AjaxRequestTarget target)
-
getAsyncWebProcessManager
public AsyncWebProcessManager getAsyncWebProcessManager()
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceModelServiceLocator
- Overrides:
getLocale
in classorg.apache.wicket.Component
-
initContainerValuePanel
public <C extends Containerable> org.apache.wicket.markup.html.panel.Panel initContainerValuePanel(String id, org.apache.wicket.model.IModel<PrismContainerValueWrapper<C>> model, ItemPanelSettings settings)
-
loadFocusSelf
public PrismObject<? extends FocusType> loadFocusSelf()
-
createMessagePanel
protected MessagePanel createMessagePanel(String panelId, MessagePanel.MessagePanelType type, String message, Object... params)
-
-