Class PageAdminLTE
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
- 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:
AbstractPageLogin
,PageBase
,PageRegistrationBase
public abstract class PageAdminLTE
extends org.apache.wicket.markup.html.WebPage
implements ModelServiceLocator
Created by Viliam Repan (lazyman).
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
-
Constructor Summary
ConstructorDescriptionPageAdminLTE
(org.apache.wicket.request.mapper.parameter.PageParameters parameters) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDefaultBodyStyle
(org.apache.wicket.markup.html.TransparentWebMarkupContainer body) void
createAnonymousTask
(String operation) createComponentPath
(String... components) static String
createEnumResourceKey
(Enum<?> e) <ID extends ItemDefinition,
IW extends ItemWrapper>
IWcreateItemWrapper
(ID def, PrismContainerValueWrapper<?> parent, WrapperContext ctx) <I extends Item,
IW extends ItemWrapper>
IWcreateItemWrapper
(I item, ItemStatus status, WrapperContext ctx) <I extends Item,
IW extends ItemWrapper>
IWcreateItemWrapper
(I item, PrismContainerValueWrapper<?> parent, ItemStatus status, WrapperContext ctx) protected org.apache.wicket.model.IModel<String>
createSimpleTask
(String operation) createSimpleTask
(String operation, String channel) org.apache.wicket.model.StringResourceModel
createStringResource
(PolyString polystringKey, Object... objects) org.apache.wicket.model.StringResourceModel
createStringResource
(PolyStringType polystringKey, Object... objects) org.apache.wicket.model.StringResourceModel
createStringResource
(Enum<?> e) org.apache.wicket.model.StringResourceModel
createStringResource
(Enum e, String prefix, String nullKey) org.apache.wicket.model.StringResourceModel
createStringResource
(String resourceKey, Object... objects) org.apache.wicket.model.StringResourceModel
createStringResource
(String resourceKey, org.apache.wicket.model.IModel model, Object... objects) org.apache.wicket.model.StringResourceModel
createStringResourceDefault
(String defaultKey, PolyStringType polystringKey, Object... objects) static @NotNull org.apache.wicket.model.StringResourceModel
createStringResourceStatic
(String resourceKey, Object... objects) static @NotNull org.apache.wicket.model.StringResourceModel
createStringResourceStatic
(String resourceKey, String defaultValue, Object... objects) static org.apache.wicket.model.StringResourceModel
createStringResourceStatic
(org.apache.wicket.Component component, Enum<?> e) <IW extends ItemWrapper,
VW extends PrismValueWrapper, PV extends PrismValue>
VWcreateValueWrapper
(IW parentWrapper, PV newValue, ValueStatus status, WrapperContext context) <C extends Containerable>
PrismContainerWrapperFactory<C>Class<? extends org.apache.wicket.markup.html.panel.Panel>
findObjectPanel
(String identifier) <O extends ObjectType>
PrismObjectWrapperFactory<O>findObjectWrapperFactory
(PrismObjectDefinition<O> objectDef) <ID extends ItemDefinition,
C extends Containerable>
ItemWrapperFactory<?,?, ?> findWrapperFactory
(ID def, PrismContainerValue<C> parentValue) @NotNull PrismObject<UserType>
getAdministratorPrivileged
(OperationResult parentResult) getClock()
@NotNull CompiledGuiProfile
Returns currently applicable user profile, compiled for efficient use in the user interface.getCounterProvider
(String identifier) Deprecated.org.apache.wicket.Component
Returns a task, that is used to retrieve and render the entire content of the page.org.apache.wicket.model.IModel<String>
Experimental, functionality will be probably later hidden behindModelInteractionService
<IW extends ItemWrapper>
org.apache.wicket.markup.html.panel.PanelinitItemPanel
(String panelId, QName typeName, org.apache.wicket.model.IModel<IW> wrapperModel, ItemPanelSettings itemPanelSettings) <O extends ObjectType>
booleanisAuthorized
(ModelAuthorizationAction action, PrismObject<O> object) boolean
isAuthorized
(String operationUrl) <O extends ObjectType,
T extends ObjectType>
booleanisAuthorized
(String operationUrl, AuthorizationPhaseType phase, PrismObject<O> object, ObjectDelta<O> delta, PrismObject<T> target) boolean
protected void
void
<T> T
runAsChecked
(SecurityContextManager.ResultAwareCheckedProducer<T> producer, PrismObject<UserType> user, OperationResult result) <T> T
runPrivileged
(Producer<T> producer) showResult
(OperationResult result) showResult
(OperationResult result, boolean showSuccess) showResult
(OperationResult result, String errorMessageKey) showResult
(OperationResult result, String errorMessageKey, boolean showSuccess) showResult
(OperationResult result, String errorMessageKey, OpResult.Options options) 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, onBeforeRender, onConfigure, 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, 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, getLocale, 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.page.IManageablePage
detach
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
Methods inherited from interface com.evolveum.midpoint.gui.api.util.ModelServiceLocator
getLocale
-
Field Details
-
ID_FEEDBACK_CONTAINER
- See Also:
-
-
Constructor Details
-
PageAdminLTE
public PageAdminLTE(org.apache.wicket.request.mapper.parameter.PageParameters parameters)
-
-
Method Details
-
onInitialize
protected void onInitialize()- Overrides:
onInitialize
in classorg.apache.wicket.Page
-
addDefaultBodyStyle
protected void addDefaultBodyStyle(org.apache.wicket.markup.html.TransparentWebMarkupContainer body) -
getSubscriptionState
-
getDescribe
Deprecated.It's here only because of some IDEs - it's not properly filtering resources during maven build. "describe" variable is not replaced.- Returns:
- "unknown" instead of "git describe" for current build.
-
getLocalizationService
- Specified by:
getLocalizationService
in interfaceModelServiceLocator
-
getExpressionFactory
- Specified by:
getExpressionFactory
in interfaceModelServiceLocator
-
getWebApplicationConfiguration
-
getSchemaService
-
getOperationOptionsBuilder
-
getQueryConverter
-
getRelationRegistry
-
getMatchingRuleRegistry
-
getRepositoryService
-
getTaskManager
-
getObjectOperationPolicyHelper
-
getCaseService
-
getCaseManager
-
getApprovalsManager
-
getResourceValidator
-
getReportManager
-
getModelAuditService
-
getCertificationService
-
getModelService
- Specified by:
getModelService
in interfaceModelServiceLocator
-
getModelObjectResolver
- Specified by:
getModelObjectResolver
in interfaceModelServiceLocator
-
getBulkActionsService
-
getTaskService
-
getSecurityEnforcer
- Specified by:
getSecurityEnforcer
in interfaceModelServiceLocator
-
getSecurityContextManager
- Specified by:
getSecurityContextManager
in interfaceModelServiceLocator
-
getModelInteractionService
- Specified by:
getModelInteractionService
in interfaceModelServiceLocator
-
getDashboardService
- Specified by:
getDashboardService
in interfaceModelServiceLocator
-
getModelDiagnosticService
-
getRegistry
- Specified by:
getRegistry
in interfaceModelServiceLocator
-
getDataProviderRegistry
-
getCacheDispatcher
-
getAdminGuiConfigurationMergeManager
- Specified by:
getAdminGuiConfigurationMergeManager
in interfaceModelServiceLocator
-
getCorrelationService
- Specified by:
getCorrelationService
in interfaceModelServiceLocator
-
getSimulationResultManager
Description copied from interface:ModelServiceLocator
Experimental, functionality will be probably later hidden behindModelInteractionService
- Specified by:
getSimulationResultManager
in interfaceModelServiceLocator
-
getRoleAnalysisService
- Specified by:
getRoleAnalysisService
in interfaceModelServiceLocator
-
getCertGuiHandlerRegistry
-
getMidpointApplication
-
createSimpleTask
- Specified by:
createSimpleTask
in interfaceModelServiceLocator
-
createSimpleTask
-
getMidpointConfiguration
-
getPageTask
Description copied from interface:ModelServiceLocator
Returns a task, that is used to retrieve and render the entire content of the page. A single task is created to render the whole page, so the summary result can be collected in the task result.- Specified by:
getPageTask
in interfaceModelServiceLocator
-
getPrismContext
- Specified by:
getPrismContext
in interfaceModelServiceLocator
-
getCompiledGuiProfile
Description copied from interface:ModelServiceLocator
Returns currently applicable user profile, compiled for efficient use in the user interface. applicable to currently logged-in user. Strictly speaking, this can be retrieved from modelInteractionService. But having a separate function for that allows to get rid of task and result parameters. And more importantly: this allows to cache adminGuiConfig in the page (in case many components need it).- Specified by:
getCompiledGuiProfile
in interfaceModelServiceLocator
-
createItemWrapper
public <I extends Item,IW extends ItemWrapper> IW createItemWrapper(I item, ItemStatus status, WrapperContext ctx) throws SchemaException - Specified by:
createItemWrapper
in interfaceModelServiceLocator
- Throws:
SchemaException
-
createItemWrapper
public <I extends Item,IW extends ItemWrapper> IW createItemWrapper(I item, PrismContainerValueWrapper<?> parent, ItemStatus status, WrapperContext ctx) throws SchemaException - Throws:
SchemaException
-
createValueWrapper
public <IW extends ItemWrapper,VW extends PrismValueWrapper, VW createValueWrapperPV extends PrismValue> (IW parentWrapper, PV newValue, ValueStatus status, WrapperContext context) throws SchemaException - Specified by:
createValueWrapper
in interfaceModelServiceLocator
- Throws:
SchemaException
-
findObjectWrapperFactory
public <O extends ObjectType> PrismObjectWrapperFactory<O> findObjectWrapperFactory(PrismObjectDefinition<O> objectDef) - Specified by:
findObjectWrapperFactory
in interfaceModelServiceLocator
-
getFormValidatorRegistry
- Specified by:
getFormValidatorRegistry
in interfaceModelServiceLocator
-
createPageTitleModel
-
createStringResource
-
getString
-
getString
-
createStringResource
-
createStringResource
-
createStringResource
public org.apache.wicket.model.StringResourceModel createStringResource(PolyString polystringKey, Object... objects) -
createStringResource
public org.apache.wicket.model.StringResourceModel createStringResource(PolyStringType polystringKey, Object... objects) -
createStringResource
-
createStringResourceStatic
-
createStringResourceStatic
-
createStringResourceDefault
public org.apache.wicket.model.StringResourceModel createStringResourceDefault(String defaultKey, PolyStringType polystringKey, Object... objects) -
createStringResourceStatic
public static org.apache.wicket.model.StringResourceModel createStringResourceStatic(org.apache.wicket.Component component, Enum<?> e) -
createEnumResourceKey
-
getPageTitleModel
-
runPrivileged
-
runAsChecked
public <T> T runAsChecked(SecurityContextManager.ResultAwareCheckedProducer<T> producer, PrismObject<UserType> user, OperationResult result) throws CommonException - Throws:
CommonException
-
getAdministratorPrivileged
@NotNull public @NotNull PrismObject<UserType> getAdministratorPrivileged(OperationResult parentResult) throws CommonException - Throws:
CommonException
-
findWrapperFactory
public <ID extends ItemDefinition,C extends Containerable> ItemWrapperFactory<?,?, findWrapperFactory?> (ID def, PrismContainerValue<C> parentValue) -
findContainerWrapperFactory
public <C extends Containerable> PrismContainerWrapperFactory<C> findContainerWrapperFactory(PrismContainerDefinition<C> def) -
createItemWrapper
public <ID extends ItemDefinition,IW extends ItemWrapper> IW createItemWrapper(ID def, PrismContainerValueWrapper<?> parent, WrapperContext ctx) throws SchemaException - Throws:
SchemaException
-
createAnonymousTask
-
initItemPanel
public <IW extends ItemWrapper> org.apache.wicket.markup.html.panel.Panel initItemPanel(String panelId, QName typeName, org.apache.wicket.model.IModel<IW> wrapperModel, ItemPanelSettings itemPanelSettings) throws SchemaException - Throws:
SchemaException
-
getClock
-
executeOptions
-
findObjectPanel
-
getCounterProvider
-
isNativeRepo
public boolean isNativeRepo() -
createComponentPath
-
showResult
-
showResult
-
showResult
-
showResult
-
showResult
public OpResult showResult(OperationResult result, String errorMessageKey, @NotNull OpResult.Options options) -
isAuthorized
public <O extends ObjectType> boolean isAuthorized(ModelAuthorizationAction action, PrismObject<O> object) -
isAuthorized
public boolean isAuthorized(String operationUrl) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException -
isAuthorized
public <O extends ObjectType,T extends ObjectType> boolean isAuthorized(String operationUrl, AuthorizationPhaseType phase, PrismObject<O> object, ObjectDelta<O> delta, PrismObject<T> target) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException -
redirectToNotFoundPage
public void redirectToNotFoundPage() -
getPrincipal
-
getPrincipalFocus
-
addFeedbackPanel
public void addFeedbackPanel() -
getFeedbackPanel
public org.apache.wicket.Component getFeedbackPanel() -
getSessionStorage
-