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
FieldsFields 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
ConstructorsConstructorDescriptionPageAdminLTE(org.apache.wicket.request.mapper.parameter.PageParameters parameters) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDefaultBodyStyle(org.apache.wicket.markup.html.TransparentWebMarkupContainer body) voidvoidchangeLocal(org.apache.wicket.ajax.AjaxRequestTarget target) createAnonymousTask(String operation) createComponentPath(String... components) static StringcreateEnumResourceKey(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.StringResourceModelcreateStringResource(PolyString polystringKey, Object... objects) org.apache.wicket.model.StringResourceModelcreateStringResource(PolyStringType polystringKey, Object... objects) org.apache.wicket.model.StringResourceModelcreateStringResource(Enum<?> e) org.apache.wicket.model.StringResourceModelcreateStringResource(Enum e, String prefix, String nullKey) org.apache.wicket.model.StringResourceModelcreateStringResource(String resourceKey, Object... objects) org.apache.wicket.model.StringResourceModelcreateStringResource(String resourceKey, org.apache.wicket.model.IModel model, Object... objects) org.apache.wicket.model.StringResourceModelcreateStringResourceDefault(String defaultKey, PolyStringType polystringKey, Object... objects) static @NotNull org.apache.wicket.model.StringResourceModelcreateStringResourceStatic(String resourceKey, Object... objects) static @NotNull org.apache.wicket.model.StringResourceModelcreateStringResourceStatic(String resourceKey, String defaultValue, Object... objects) static org.apache.wicket.model.StringResourceModelcreateStringResourceStatic(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) List<Class<? extends AbstractGuiColumn<?,?>>> findAllApplicableGuiColumns(Class<? extends Containerable> clazz) <C extends Containerable>
PrismContainerWrapperFactory<C>Class<? extends AbstractGuiAction<?>>findGuiAction(String identifier) Class<? extends AbstractGuiColumn<?,?>> findGuiColumn(String identifier) 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 CompiledGuiProfileReturns currently applicable user profile, compiled for efficient use in the user interface.getCounterProvider(String identifier) Deprecated.org.apache.wicket.ComponentReturns a task, that is used to retrieve and render the entire content of the page.protected VisibleEnableBehaviourorg.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) booleanisAuthorized(String operationUrl) <O extends ObjectType,T extends ObjectType>
booleanisAuthorized(String operationUrl, AuthorizationPhaseType phase, PrismObject<O> object, ObjectDelta<O> delta, PrismObject<T> target) booleanprotected voidvoid<T> TrunAsChecked(SecurityContextManager.ResultAwareCheckedProducer<T> producer, PrismObject<UserType> user, OperationResult result) <T> TrunPrivileged(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, setHeadersMethods 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, wasRenderedMethods 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, visitChildrenMethods 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, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.wicket.page.IManageablePage
detachMethods inherited from interface org.apache.wicket.IQueueRegion
dequeue, getRegionMarkup, newDequeueContextMethods inherited from interface org.apache.wicket.request.component.IRequestableComponent
canCallListenerAfterExpiry, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePathMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
onInitializein classorg.apache.wicket.Page
-
getPageTitleBehaviour
-
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:
getLocalizationServicein interfaceModelServiceLocator
-
getExpressionFactory
- Specified by:
getExpressionFactoryin interfaceModelServiceLocator
-
getWebApplicationConfiguration
-
getSchemaService
-
getOperationOptionsBuilder
-
getQueryConverter
-
getRelationRegistry
-
getMatchingRuleRegistry
-
getRepositoryService
-
getTaskManager
-
getObjectOperationPolicyHelper
-
getCaseService
-
getCaseManager
-
getApprovalsManager
-
getResourceValidator
-
getReportManager
-
getModelAuditService
-
getCertificationService
-
getModelService
- Specified by:
getModelServicein interfaceModelServiceLocator
-
getModelObjectResolver
- Specified by:
getModelObjectResolverin interfaceModelServiceLocator
-
getBulkActionsService
-
getTaskService
-
getSecurityEnforcer
- Specified by:
getSecurityEnforcerin interfaceModelServiceLocator
-
getSecurityContextManager
- Specified by:
getSecurityContextManagerin interfaceModelServiceLocator
-
getModelInteractionService
- Specified by:
getModelInteractionServicein interfaceModelServiceLocator
-
getDashboardService
- Specified by:
getDashboardServicein interfaceModelServiceLocator
-
getModelDiagnosticService
-
getRegistry
- Specified by:
getRegistryin interfaceModelServiceLocator
-
getDataProviderRegistry
-
getCacheDispatcher
-
getAdminGuiConfigurationMergeManager
- Specified by:
getAdminGuiConfigurationMergeManagerin interfaceModelServiceLocator
-
getCorrelationService
- Specified by:
getCorrelationServicein interfaceModelServiceLocator
-
getSimulationResultManager
Description copied from interface:ModelServiceLocatorExperimental, functionality will be probably later hidden behindModelInteractionService- Specified by:
getSimulationResultManagerin interfaceModelServiceLocator
-
getRoleAnalysisService
- Specified by:
getRoleAnalysisServicein interfaceModelServiceLocator
-
getCertGuiHandlerRegistry
-
getMidpointApplication
-
createSimpleTask
- Specified by:
createSimpleTaskin interfaceModelServiceLocator
-
createSimpleTask
-
getMidpointConfiguration
-
getPageTask
Description copied from interface:ModelServiceLocatorReturns 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:
getPageTaskin interfaceModelServiceLocator
-
getPrismContext
- Specified by:
getPrismContextin interfaceModelServiceLocator
-
getCompiledGuiProfile
Description copied from interface:ModelServiceLocatorReturns 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:
getCompiledGuiProfilein interfaceModelServiceLocator
-
createItemWrapper
public <I extends Item,IW extends ItemWrapper> IW createItemWrapper(I item, ItemStatus status, WrapperContext ctx) throws SchemaException - Specified by:
createItemWrapperin 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:
createValueWrapperin interfaceModelServiceLocator- Throws:
SchemaException
-
findObjectWrapperFactory
public <O extends ObjectType> PrismObjectWrapperFactory<O> findObjectWrapperFactory(PrismObjectDefinition<O> objectDef) - Specified by:
findObjectWrapperFactoryin interfaceModelServiceLocator
-
getFormValidatorRegistry
- Specified by:
getFormValidatorRegistryin 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
-
findGuiAction
-
findGuiColumn
-
findAllApplicableGuiColumns
public List<Class<? extends AbstractGuiColumn<?,?>>> findAllApplicableGuiColumns(Class<? extends Containerable> clazz) -
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
-
getSecretsProviderManager
-
getTriggerHandlerRegistry
- Specified by:
getTriggerHandlerRegistryin interfaceModelServiceLocator
-
getResourceSchemaRegistry
-
getMarkManager
-
changeLocal
public void changeLocal(org.apache.wicket.ajax.AjaxRequestTarget target)
-