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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID_FEEDBACK_CONTAINER
-
Constructor Summary
Constructors Constructor Description PageAdminLTE(org.apache.wicket.request.mapper.parameter.PageParameters parameters)
-
Method Summary
-
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, 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.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 Detail
-
ID_FEEDBACK_CONTAINER
public static final String ID_FEEDBACK_CONTAINER
- See Also:
- Constant Field Values
-
-
Method Detail
-
onInitialize
protected void onInitialize()
- Overrides:
onInitialize
in classorg.apache.wicket.Page
-
addDefaultBodyStyle
protected void addDefaultBodyStyle(org.apache.wicket.markup.html.TransparentWebMarkupContainer body)
-
getDescribe
@Deprecated public String 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
public LocalizationService getLocalizationService()
- Specified by:
getLocalizationService
in interfaceModelServiceLocator
-
getExpressionFactory
public ExpressionFactory getExpressionFactory()
- Specified by:
getExpressionFactory
in interfaceModelServiceLocator
-
getWebApplicationConfiguration
public WebApplicationConfiguration getWebApplicationConfiguration()
-
getSchemaService
public SchemaService getSchemaService()
-
getOperationOptionsBuilder
public GetOperationOptionsBuilder getOperationOptionsBuilder()
-
getQueryConverter
public QueryConverter getQueryConverter()
-
getRelationRegistry
public RelationRegistry getRelationRegistry()
-
getMatchingRuleRegistry
public MatchingRuleRegistry getMatchingRuleRegistry()
-
getRepositoryService
public RepositoryService getRepositoryService()
-
getTaskManager
public TaskManager getTaskManager()
-
getObjectOperationPolicyHelper
public ObjectOperationPolicyHelper getObjectOperationPolicyHelper()
-
getCaseService
public CaseService getCaseService()
-
getCaseManager
public CaseManager getCaseManager()
-
getApprovalsManager
public ApprovalsManager getApprovalsManager()
-
getResourceValidator
public ResourceValidator getResourceValidator()
-
getReportManager
public ReportManager getReportManager()
-
getModelAuditService
public ModelAuditService getModelAuditService()
-
getCertificationService
public AccessCertificationService getCertificationService()
-
getModelService
public ModelService getModelService()
- Specified by:
getModelService
in interfaceModelServiceLocator
-
getModelObjectResolver
public ObjectResolver getModelObjectResolver()
- Specified by:
getModelObjectResolver
in interfaceModelServiceLocator
-
getScriptingService
public ScriptingService getScriptingService()
-
getTaskService
public TaskService getTaskService()
-
getSecurityEnforcer
public SecurityEnforcer getSecurityEnforcer()
- Specified by:
getSecurityEnforcer
in interfaceModelServiceLocator
-
getSecurityContextManager
public SecurityContextManager getSecurityContextManager()
- Specified by:
getSecurityContextManager
in interfaceModelServiceLocator
-
getModelInteractionService
public ModelInteractionService getModelInteractionService()
- Specified by:
getModelInteractionService
in interfaceModelServiceLocator
-
getDashboardService
public DashboardService getDashboardService()
- Specified by:
getDashboardService
in interfaceModelServiceLocator
-
getModelDiagnosticService
public ModelDiagnosticService getModelDiagnosticService()
-
getRegistry
public GuiComponentRegistry getRegistry()
- Specified by:
getRegistry
in interfaceModelServiceLocator
-
getDataProviderRegistry
public DataProviderRegistry getDataProviderRegistry()
-
getCacheDispatcher
public CacheDispatcher getCacheDispatcher()
-
getAdminGuiConfigurationMergeManager
public AdminGuiConfigurationMergeManager getAdminGuiConfigurationMergeManager()
- Specified by:
getAdminGuiConfigurationMergeManager
in interfaceModelServiceLocator
-
getCorrelationService
public CorrelationService getCorrelationService()
- Specified by:
getCorrelationService
in interfaceModelServiceLocator
-
getSimulationResultManager
public SimulationResultManager getSimulationResultManager()
Description copied from interface:ModelServiceLocator
Experimental, functionality will be probably later hidden behindModelInteractionService
- Specified by:
getSimulationResultManager
in interfaceModelServiceLocator
-
getMidpointApplication
public MidPointApplication getMidpointApplication()
-
createSimpleTask
public Task createSimpleTask(String operation)
- Specified by:
createSimpleTask
in interfaceModelServiceLocator
-
getMidpointConfiguration
public MidpointConfiguration getMidpointConfiguration()
-
getPageTask
public Task 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
@Contract(pure=true) public PrismContext getPrismContext()
- Specified by:
getPrismContext
in interfaceModelServiceLocator
-
getCompiledGuiProfile
@NotNull public @NotNull CompiledGuiProfile 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,PV extends PrismValue> VW createValueWrapper(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
public MidpointFormValidatorRegistry getFormValidatorRegistry()
- Specified by:
getFormValidatorRegistry
in interfaceModelServiceLocator
-
createPageTitleModel
protected org.apache.wicket.model.IModel<String> createPageTitleModel()
-
createStringResource
public org.apache.wicket.model.StringResourceModel createStringResource(Enum e, String prefix, String nullKey)
-
createStringResource
public org.apache.wicket.model.StringResourceModel createStringResource(String resourceKey, Object... objects)
-
createStringResource
public org.apache.wicket.model.StringResourceModel createStringResource(String resourceKey, org.apache.wicket.model.IModel model, Object... objects)
-
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
public org.apache.wicket.model.StringResourceModel createStringResource(Enum<?> e)
-
createStringResourceStatic
@NotNull public static @NotNull org.apache.wicket.model.StringResourceModel createStringResourceStatic(String resourceKey, Object... objects)
-
createStringResourceStatic
@NotNull public static @NotNull org.apache.wicket.model.StringResourceModel createStringResourceStatic(String resourceKey, String defaultValue, Object... objects)
-
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)
-
getPageTitleModel
public org.apache.wicket.model.IModel<String> getPageTitleModel()
-
runPrivileged
public <T> T runPrivileged(Producer<T> producer)
-
runAsChecked
public <T> T runAsChecked(CheckedProducer<T> producer, PrismObject<UserType> user) 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
-
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
public Clock getClock()
-
executeOptions
public ModelExecuteOptions executeOptions()
-
findObjectPanel
public Class<? extends org.apache.wicket.markup.html.panel.Panel> findObjectPanel(String identifier)
-
getCounterProvider
public SimpleCounter getCounterProvider(String identifier)
-
isNativeRepo
public boolean isNativeRepo()
-
showResult
public OpResult showResult(OperationResult result, String errorMessageKey)
-
showResult
public OpResult showResult(OperationResult result, boolean showSuccess)
-
showResult
public OpResult showResult(OperationResult result)
-
showResult
public OpResult showResult(OperationResult result, String errorMessageKey, boolean showSuccess)
-
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, OwnerResolver ownerResolver) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
redirectToNotFoundPage
public void redirectToNotFoundPage()
-
getPrincipal
public GuiProfiledPrincipal getPrincipal()
-
getPrincipalFocus
public FocusType getPrincipalFocus()
-
addFeedbackPanel
public void addFeedbackPanel()
-
getFeedbackPanel
public org.apache.wicket.Component getFeedbackPanel()
-
getSessionStorage
public SessionStorage getSessionStorage()
-
-