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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addDefaultBodyStyle(org.apache.wicket.markup.html.TransparentWebMarkupContainer body)
void
addFeedbackPanel()
com.evolveum.midpoint.task.api.Task
createAnonymousTask(String operation)
String
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>
createPageTitleModel()
com.evolveum.midpoint.task.api.Task
createSimpleTask(String operation)
com.evolveum.midpoint.task.api.Task
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 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)
ModelExecuteOptions
executeOptions()
<C extends Containerable>
PrismContainerWrapperFactory<C>findContainerWrapperFactory(PrismContainerDefinition<C> def)
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)
AdminGuiConfigurationMergeManager
getAdminGuiConfigurationMergeManager()
@NotNull PrismObject<UserType>
getAdministratorPrivileged(OperationResult parentResult)
com.evolveum.midpoint.wf.api.ApprovalsManager
getApprovalsManager()
com.evolveum.midpoint.repo.api.CacheDispatcher
getCacheDispatcher()
com.evolveum.midpoint.cases.api.CaseManager
getCaseManager()
CaseService
getCaseService()
AccessCertificationService
getCertificationService()
Clock
getClock()
@NotNull CompiledGuiProfile
getCompiledGuiProfile()
Returns currently applicable user profile, compiled for efficient use in the user interface.CorrelationService
getCorrelationService()
SimpleCounter
getCounterProvider(String identifier)
DashboardService
getDashboardService()
DataProviderRegistry
getDataProviderRegistry()
String
getDescribe()
Deprecated.com.evolveum.midpoint.repo.common.expression.ExpressionFactory
getExpressionFactory()
org.apache.wicket.markup.html.WebMarkupContainer
getFeedbackPanel()
MidpointFormValidatorRegistry
getFormValidatorRegistry()
LocalizationService
getLocalizationService()
MatchingRuleRegistry
getMatchingRuleRegistry()
MidPointApplication
getMidpointApplication()
MidpointConfiguration
getMidpointConfiguration()
ModelAuditService
getModelAuditService()
ModelDiagnosticService
getModelDiagnosticService()
ModelInteractionService
getModelInteractionService()
com.evolveum.midpoint.repo.common.ObjectResolver
getModelObjectResolver()
ModelService
getModelService()
GetOperationOptionsBuilder
getOperationOptionsBuilder()
com.evolveum.midpoint.task.api.Task
getPageTask()
Returns a task, that is used to retrieve and render the entire content of the page.org.apache.wicket.model.IModel<String>
getPageTitleModel()
PrismContext
getPrismContext()
QueryConverter
getQueryConverter()
GuiComponentRegistry
getRegistry()
RelationRegistry
getRelationRegistry()
com.evolveum.midpoint.report.api.ReportManager
getReportManager()
com.evolveum.midpoint.repo.api.RepositoryService
getRepositoryService()
ResourceValidator
getResourceValidator()
SchemaService
getSchemaService()
ScriptingService
getScriptingService()
com.evolveum.midpoint.security.api.SecurityContextManager
getSecurityContextManager()
com.evolveum.midpoint.security.enforcer.api.SecurityEnforcer
getSecurityEnforcer()
SessionStorage
getSessionStorage()
String
getString(String resourceKey, Object... objects)
com.evolveum.midpoint.task.api.TaskManager
getTaskManager()
TaskService
getTaskService()
WebApplicationConfiguration
getWebApplicationConfiguration()
<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, com.evolveum.midpoint.security.api.OwnerResolver ownerResolver)
boolean
isNativeRepo()
protected void
onInitialize()
void
redirectToNotFoundPage()
<T> T
runAsChecked(CheckedProducer<T> producer, PrismObject<UserType> user)
<T> T
runPrivileged(Producer<T> producer)
OpResult
showResult(OperationResult result)
OpResult
showResult(OperationResult result, boolean showSuccess)
OpResult
showResult(OperationResult result, String errorMessageKey)
OpResult
showResult(OperationResult result, String errorMessageKey, boolean showSuccess)
-
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 com.evolveum.midpoint.repo.common.expression.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 com.evolveum.midpoint.repo.api.RepositoryService getRepositoryService()
-
getTaskManager
public com.evolveum.midpoint.task.api.TaskManager getTaskManager()
-
getCaseService
public CaseService getCaseService()
-
getCaseManager
public com.evolveum.midpoint.cases.api.CaseManager getCaseManager()
-
getApprovalsManager
public com.evolveum.midpoint.wf.api.ApprovalsManager getApprovalsManager()
-
getResourceValidator
public ResourceValidator getResourceValidator()
-
getReportManager
public com.evolveum.midpoint.report.api.ReportManager getReportManager()
-
getModelAuditService
public ModelAuditService getModelAuditService()
-
getCertificationService
public AccessCertificationService getCertificationService()
-
getModelService
public ModelService getModelService()
- Specified by:
getModelService
in interfaceModelServiceLocator
-
getModelObjectResolver
public com.evolveum.midpoint.repo.common.ObjectResolver getModelObjectResolver()
- Specified by:
getModelObjectResolver
in interfaceModelServiceLocator
-
getScriptingService
public ScriptingService getScriptingService()
-
getTaskService
public TaskService getTaskService()
-
getSecurityEnforcer
public com.evolveum.midpoint.security.enforcer.api.SecurityEnforcer getSecurityEnforcer()
- Specified by:
getSecurityEnforcer
in interfaceModelServiceLocator
-
getSecurityContextManager
public com.evolveum.midpoint.security.api.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 com.evolveum.midpoint.repo.api.CacheDispatcher getCacheDispatcher()
-
getAdminGuiConfigurationMergeManager
public AdminGuiConfigurationMergeManager getAdminGuiConfigurationMergeManager()
- Specified by:
getAdminGuiConfigurationMergeManager
in interfaceModelServiceLocator
-
getCorrelationService
public CorrelationService getCorrelationService()
- Specified by:
getCorrelationService
in interfaceModelServiceLocator
-
getMidpointApplication
public MidPointApplication getMidpointApplication()
-
createSimpleTask
public com.evolveum.midpoint.task.api.Task createSimpleTask(String operation)
- Specified by:
createSimpleTask
in interfaceModelServiceLocator
-
createSimpleTask
public com.evolveum.midpoint.task.api.Task createSimpleTask(String operation, String channel)
-
getMidpointConfiguration
public MidpointConfiguration getMidpointConfiguration()
-
getPageTask
public com.evolveum.midpoint.task.api.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)
-
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
-
createAnonymousTask
public com.evolveum.midpoint.task.api.Task createAnonymousTask(String operation)
-
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, com.evolveum.midpoint.security.api.OwnerResolver ownerResolver) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
redirectToNotFoundPage
public void redirectToNotFoundPage()
-
addFeedbackPanel
public void addFeedbackPanel()
-
getFeedbackPanel
public org.apache.wicket.markup.html.WebMarkupContainer getFeedbackPanel()
-
getSessionStorage
public SessionStorage getSessionStorage()
-
-