Class WebComponentUtil
java.lang.Object
com.evolveum.midpoint.gui.api.util.WebComponentUtil
Utility class containing miscellaneous methods used mostly in Wicket
components.
- Author:
- lazyman
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAjaxOnUpdateBehavior(org.apache.wicket.markup.html.WebMarkupContainer container) static voidaddDisabledClassBehavior(org.apache.wicket.Component comp) static <T extends AssignmentHolderType>
voidaddNewArchetype(PrismObjectWrapper<T> object, String archetypeOid, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) static QNameanyClassToQName(PrismContext prismContext, Class<?> clazz) static booleanassignmentObjectRelationAlreadyExists(List<AssignmentObjectRelation> list, AssignmentObjectRelation relation) it's expected that the list of AssignmentObjectRelation will be pre-prepared in such manner that each AssignmentObjectRelation in the list will contain only one object type, one relation and one archetypeRef.static voidassumePowerOfAttorneyIfRequested(OperationResult result, PrismObject<UserType> powerDonor, PageBase pageBase) static booleancanResumeTask(TaskType task, PageBase pageBase) static booleancanRunNowTask(TaskType task, PageBase pageBase) static booleancanSuspendTask(TaskType task, PageBase pageBase) static ApprovalOutcomeIconcaseOutcomeUriToIcon(String outcome) caseOutcomeUriToPresentation(String outcome) static voidclaimWorkItemActionPerformed(CaseWorkItemType workItemToClaim, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) static <T extends ObjectType>
QNameclassToQName(PrismContext prismContext, Class<T> clazz) static <T extends ObjectType>
QNameclassToQName(Class<T> clazz) static voidclearProviderCache(org.apache.wicket.markup.repeater.data.IDataProvider provider) static DisplayTypecombineDisplay(DisplayType display, DisplayType variationDisplay) static @NotNull List<VisualizationDto>computeChangesCategorizationList(ChangesByState changesByState, ObjectReferenceType objectRef, ModelInteractionService modelInteractionService, PrismContext prismContext, Task opTask, OperationResult thisOpResult) static List<EvaluatedTriggerGroupDto>computeTriggers(ApprovalContextType wfc, Integer stage) static <T extends Containerable>
QNamecontainerClassToQName(PrismContext prismContext, Class<T> clazz) static <AR extends AbstractRoleType>
org.apache.wicket.model.IModel<String>createAbstractRoleConfirmationMessage(String actionName, ColumnMenuAction action, MainObjectListPanel<AR> abstractRoleTable, PageBase pageBase) static CompositedIconcreateAccountIcon(ShadowType shadow, PageBase pageBase, boolean isColumn) static org.apache.wicket.model.IModel<String>createCategoryNameModel(org.apache.wicket.model.IModel<String> categorySymbolModel) static <O extends ObjectType>
CompositedIconcreateCompositeIconForObject(O obj, OperationResult result, PageBase pageBase) static CompositedIconstatic <T> DropDownChoicePanelcreateDropDownChoices(String id, org.apache.wicket.model.IModel<DisplayableValue<T>> model, org.apache.wicket.model.IModel<List<DisplayableValue<T>>> choices, boolean allowNull) static DropDownChoicePanelcreateEnumPanel(PrismPropertyDefinition def, String id, org.apache.wicket.model.IModel model) static <E extends Enum>
DropDownChoicePanel<E>createEnumPanel(Class<E> clazz, String id, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component) static <E extends Enum>
DropDownChoicePanel<E>createEnumPanel(Class<E> clazz, String id, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component, boolean allowNull) static <E extends Enum>
DropDownChoicePanel<E>createEnumPanel(String id, org.apache.wicket.model.IModel<List<E>> choicesList, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component, boolean allowNull) static <E extends Enum>
DropDownChoicePanel<E>createEnumPanel(String id, org.apache.wicket.model.IModel<List<E>> choicesList, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component, boolean allowNull, String nullValidDisplayValue) createEnumResourceKey(T value) Deprecated.static org.apache.wicket.ComponentcreateHelp(String id) static StringcreateHumanReadableByteCount(long bytes) static <T extends FocusType>
org.apache.wicket.request.resource.IResourcecreateJpegPhotoResource(PrismObject<T> object) static org.apache.wicket.request.resource.IResourcecreateJpegPhotoResource(FocusType focus) static org.apache.wicket.model.IModel<String>createLocalizedModelForEnum(T value, org.apache.wicket.Component comp) static Map<IconCssStyle,IconType> createMainButtonLayerIcon(DisplayType mainButtonDisplayType) static org.apache.wicket.model.IModel<String>createMappingDescription(org.apache.wicket.model.IModel<PrismContainerValueWrapper<MappingType>> model) static @NotNull List<InlineMenuItem>createMenuItemsFromActions(@NotNull List<GuiActionType> actions, String operation, PageBase pageBase, @NotNull Supplier<Collection<? extends ObjectType>> selectedObjectsSupplier) static List<ObjectOrdering>createMetadataOrdering(org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sortParam, String metadataProperty, PrismContext prismContext) static <T extends ObjectType>
org.apache.wicket.ComponentcreatePanel(Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass, String markupId, ObjectDetailsModels<T> objectDetailsModels, ContainerPanelConfigurationType panelConfig) static PolyStringTypestatic PolyStringTypecreatePolyFromOrigString(String str, String key) createReadonlyModelFromEnum(Class<T> type) static org.apache.wicket.model.IModel<String>createSimulatedCategoryNameModel(org.apache.wicket.Component component, org.apache.wicket.model.IModel<SelectableBean<TaskType>> taskModel) Simulates task category using task archetype.createSupportedTargetTypeList(QName targetTypeFromDef) static @NotNull TabbedPanel<org.apache.wicket.extensions.markup.html.tabs.ITab>createTabPanel(String id, PageBase parentPage, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs, TabbedPanel.RightSideItemProvider provider) static @NotNull TabbedPanel<org.apache.wicket.extensions.markup.html.tabs.ITab>createTabPanel(String id, PageBase parentPage, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs, TabbedPanel.RightSideItemProvider provider, String tabChangeParameter) static voidcreateToastForCreateObject(org.apache.wicket.ajax.AjaxRequestTarget target, Class<? extends ObjectType> type) static voidcreateToastForCreateObject(org.apache.wicket.ajax.AjaxRequestTarget target, QName type) static voidcreateToastForUpdateObject(org.apache.wicket.ajax.AjaxRequestTarget target, Class<? extends ObjectType> type) static voidcreateToastForUpdateObject(org.apache.wicket.ajax.AjaxRequestTarget target, QName type) static org.apache.wicket.markup.html.form.DropDownChoice<Boolean>createTriStateCombo(String id, org.apache.wicket.model.IModel<Boolean> model) static VisualizationDtocreateVisualizationDto(CaseType caseObject, PageBase pageBase, String operation) static VisualizationDtocreateVisualizationDto(CaseWorkItemType caseWorkItem, PageBase pageBase, String operation) static VisualizationDtocreateVisualizationDtoForManualCase(CaseType caseObject, PageBase pageBase, String operation) static StringdebugHandler(org.apache.wicket.request.IRequestHandler handler) static voiddeleteSyncTokenPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, ResourceType resourceType, PageBase pageBase) static List<AssignmentObjectRelation>divideAssignmentRelationsByAllValues(List<AssignmentObjectRelation> initialAssignmentRelationsList) static List<AssignmentObjectRelation>divideAssignmentRelationsByAllValues(List<AssignmentObjectRelation> initialAssignmentRelationsList, boolean addDefaultObjectRelations) The idea is to divide the list of AssignmentObjectRelation objects in such way that each AssignmentObjectRelation in the list will contain not more than 1 relation, not more than 1 object type and not more than one archetype reference.static List<AssignmentObjectRelation>divideAssignmentRelationsByRelationValue(List<AssignmentObjectRelation> initialRelationsList) The idea is to divide the list of AssignmentObjectRelation objects in such way that each AssignmentObjectRelation in the list will contain not more than 1 relation.static voiddropPowerOfAttorneyIfRequested(OperationResult result, PrismObject<UserType> powerDonor, PageBase pageBase) static org.apache.wicket.behavior.BehaviorenabledIfFalse(NonEmptyModel<Boolean> model) static voidencryptCredentials(ObjectDelta delta, boolean encrypt, ModelServiceLocator serviceLocator) static voidencryptCredentials(ObjectDelta delta, boolean encrypt, MidPointApplication app) static voidencryptCredentials(PrismObject object, boolean encrypt, ModelServiceLocator serviceLocator) static voidencryptCredentials(PrismObject object, boolean encrypt, MidPointApplication app) static voidencryptProtectedString(ProtectedStringType string, boolean encrypt, ModelServiceLocator serviceLocator) static voidencryptProtectedString(ProtectedStringType string, boolean encrypt, MidPointApplication app) static ObjectFilterevaluateExpressionsInFilter(ObjectFilter objectFilter, VariablesMap variables, OperationResult result, PageBase pageBase) static ObjectFilterevaluateExpressionsInFilter(ObjectFilter objectFilter, OperationResult result, PageBase pageBase) static StringexceptionToString(String message, Exception e) static <I extends Item>
PrismObject<LookupTableType>findLookupTable(ItemDefinition<I> definition, PageBase page) static PrismObject<LookupTableType>findLookupTable(PrismReferenceValue valueEnumerationRef, PageBase page) static PrismObject<ResourceType>findResource(PrismPropertyWrapper itemWrapper, PrismPropertyPanelContext panelCtx) static StringformatDate(String format, Date date) static StringformatDate(Date date) static StringformatDate(XMLGregorianCalendar calendar) static StringformatDurationWordsForLocal(long durationMillis, boolean suppressLeadingZeroElements, boolean suppressTrailingZeroElements) static StringformatDurationWordsForLocal(long durationMillis, boolean suppressLeadingZeroElements, boolean suppressTrailingZeroElements, org.apache.wicket.Component comp) Deprecated.static List<DisplayableValue<?>>getAllowedValues(ExpressionType expression, ModelServiceLocator modelServiceLocator) static List<DisplayableValue<?>>getAllowedValues(SearchFilterParameterType parameter, ModelServiceLocator modelServiceLocator) static <O extends AssignmentHolderType>
List<String>getArchetypeOidsListByHolderType(Class<O> holderType, PageBase pageBase) static <O extends ObjectType>
ArchetypePolicyTypegetArchetypeSpecification(PrismObject<O> object, ModelServiceLocator locator) getAssignableRelationsList(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase) static ObjectFiltergetAssignableRolesFilter(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase) static ObjectFiltergetAssignableRolesFilter(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, QName relation, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase) static CompositedIconBuildergetAssignmentRelationIconBuilder(PageBase pageBase, AssignmentObjectRelation relationSpec, IconType relationIcon, IconType actionButtonIcon) static @Nullable StringgetAuthorizationActionForTargetClass(Class targetClass) static org.apache.wicket.behavior.Behaviorstatic Collatorstatic PolyStringTypegetCollectionLabel(DisplayType viewDisplayType) Returns name of the collection suitable to be displayed in the menu or other labels.static org.apache.wicket.util.string.StringValuegetCollectionNameParameterValue(PageAdminLTE parentPage) static Stringstatic CompiledObjectCollectionViewgetCollectionViewByObject(AssignmentHolderType assignmentHolder, PageBase pageBase) static CompiledGuiProfilestatic CompiledGuiProfilegetCompiledGuiProfile(org.apache.wicket.Page page) static CompiledObjectCollectionViewgetCompiledObjectCollectionView(GuiObjectListViewType listViewType, ContainerPanelConfigurationType config, PageBase pageBase) getContainerConfiguration(GuiObjectDetailsPageType pageConfig, String panelType) static <C extends Containerable>
LoadableModel<PrismContainerDefinition<C>>getContainerDefinitionModel(Class<C> clazz) static <T> TgetContainerValue(PrismContainerValue object, QName containerName) static Localestatic CompiledObjectCollectionViewgetDefaultGuiObjectListType(PageBase pageBase) Deprecated.static StringgetDisplayName(PrismObject object) static StringgetDisplayName(PrismObject object, boolean translate) static StringgetDisplayName(PrismObject object, boolean translate, LocalizationService localizationService) static StringgetDisplayName(Referencable ref, boolean translate) static Stringstatic StringgetDisplayNameAndName(PrismObject<?> object) static Stringstatic StringgetDisplayNameOrName(PrismObject object) static StringgetDisplayNameOrName(PrismObject object, boolean translate) static StringgetDisplayNameOrName(PrismObject object, boolean translate, LocalizationService localizationService) static Stringstatic StringgetDisplayNameOrName(Referencable ref, boolean translate) static StringgetDisplayNameOrName(ObjectReferenceType ref, PageBase pageBase, String operation) static <O extends ObjectType>
StringgetDisplayNameOrName(ObjectReferenceType ref, PageBase pageBase, String operation, boolean translate) static <O extends ObjectType>
StringgetEffectiveName(PrismObject<O> object, QName propertyName) static <O extends ObjectType>
StringgetEffectiveName(PrismObject<O> object, QName propertyName, boolean translate) static <O extends ObjectType>
StringgetEffectiveName(Referencable ref, QName propertyName, PageBase pageBase, String operation, boolean translate) static StringgetEffectiveName(ObjectReferenceType ref, QName propertyName, PageBase pageBase, String operation) static StringgetEffectiveName(ObjectType object, QName propertyName) static StringgetEffectiveName(ObjectType object, QName propertyName, boolean translate) static booleangetElementVisibility(UserInterfaceElementVisibilityType visibilityType) static booleangetElementVisibility(UserInterfaceElementVisibilityType visibilityType, List<String> requiredAuthorizations) static <E extends Enum<E>>
org.apache.wicket.markup.html.form.IChoiceRenderer<E>getEnumChoiceRenderer(org.apache.wicket.Component component) static org.apache.wicket.model.IModel<String>getIconUrlModel(IconType icon) static IntegergetIntegerParameter(org.apache.wicket.request.mapper.parameter.PageParameters params, String key) static Collection<String>getIntentsForKind(PrismObject<ResourceType> resource, ShadowKindType kind) static Stringstatic Stringstatic <O extends ObjectType>
StringgetLabelForType(Class<O> type, boolean startsWithUppercase) Deprecated.static StringgetLocalizedDate(Date date, String style) static StringgetLocalizedDate(XMLGregorianCalendar date, String style) static StringgetLocalizedDatePattern(String style) static StringgetLongDateTimeFormat(PageBase pageBase) static StringgetLongDateTimeFormattedValue(Date date, PageBase pageBase) static StringgetLongDateTimeFormattedValue(XMLGregorianCalendar date, PageBase pageBase) static StringgetMidpointCustomSystemName(PageAdminLTE pageBase, String defaultSystemNameKey) static AdminLTESkinstatic StringgetName(PrismObject object) static StringgetName(PrismObject object, boolean translate) static StringgetName(Referencable ref, boolean translate) static Stringstatic <O extends ObjectType>
StringgetName(ObjectReferenceType ref, PageBase pageBase, String operation) static StringgetName(ObjectType object) static StringgetName(ObjectType object, boolean translate) static AssignmentHolderTypestatic StringgetObjectListPageStorageKey(String additionalKeyValue) static Stringstatic Stringstatic Stringstatic <P extends PageAdminLTE>
Pstatic PageBasegetPageBase(org.apache.wicket.Component component) static StringgetPanelIdentifierFromParams(org.apache.wicket.request.mapper.parameter.PageParameters pageParameters) static CredentialsPolicyTypegetPasswordCredentialsPolicy(PrismObject<? extends FocusType> focus, PageAdminLTE parentPage, Task task) static ValuePolicyTypegetPasswordValuePolicy(CredentialsPolicyType credentialsPolicy, String operation, PageAdminLTE parentPage) static ItemPathgetPath(GuiObjectColumnType column) static Class<?>getPreviousPageClass(PageBase parentPage) static <C extends Containerable>
GuiObjectListViewTypegetPrincipalUserObjectListView(PageAdminLTE parentPage, FocusType principalFocus, @NotNull Class<C> viewType, boolean createIfNotExist, String defaultIdentifier) static PrismContextgetPrismContext(org.apache.wicket.Component component) static DateValidatorgetRangeValidator(org.apache.wicket.markup.html.form.Form<?> form, ItemPath path) static StringgetReferencedObjectDisplayNameAndName(Referencable ref, boolean loadObject, PageBase pageBase) static StringgetReferencedObjectDisplayNamesAndNames(Referencable ref, boolean showTypes) static StringgetReferencedObjectDisplayNamesAndNames(Referencable ref, boolean showTypes, boolean translate) static StringgetReferencedObjectDisplayNamesAndNames(List<ObjectReferenceType> refs, boolean showTypes) static StringgetReferencedObjectNames(List<ObjectReferenceType> refs, boolean showTypes) static StringgetReferencedObjectNames(List<ObjectReferenceType> refs, boolean showTypes, boolean translate) static StringgetReferenceObjectTextValue(ObjectReferenceType ref, PrismReferenceDefinition referenceDef, PageBase pageBase) static <T extends Selectable>
List<T>getSelectedData(Table table) static StringgetShortDateTimeFormat(PageBase pageBase) static StringgetShortDateTimeFormattedValue(Date date, PageBase pageBase) static StringgetShortDateTimeFormattedValue(XMLGregorianCalendar date, PageBase pageBase) static StringgetSimpleChannel(String chanelUri) static StringgetStringParameter(org.apache.wicket.request.mapper.parameter.PageParameters params, String key) static org.apache.wicket.behavior.BehaviorgetSubmitOnEnterKeyDownBehavior(String submitButtonAboutAttribute) static <O extends ObjectType>
SummaryPanelSpecificationTypegetSummaryPanelSpecification(Class<O> type, CompiledGuiProfile compiledGuiProfile) Deprecated.static StringgetTaskProgressDescription(TaskInformation taskInformation, boolean longForm, PageBase pageBase) static LonggetTimestampAsLong(XMLGregorianCalendar cal, boolean currentIfNull) static StringDeprecated.SeeLocalizationUtilstatic Stringstatic <T> TgetValue(PrismContainer object, QName propertyName, Class<T> type) static <T> TgetValue(PrismContainerValue object, QName propertyName, Class<T> type) static <AH extends AssignmentHolderType>
booleanhasAnyArchetypeAssignment(AH assignmentHolder) static <AH extends AssignmentHolderType>
booleanhasArchetypeAssignment(AH assignmentHolder, String archetypeOid) static booleanhasPopupableParent(@NotNull org.apache.wicket.Component component) static BooleanisActivationEnabled(PrismObject object, ItemPath propertyName) static booleanisAllNulls(Iterable<?> array) static booleanisArchetypeAssignment(AssignmentType assignmentType) static booleanisAuthorized(Class<? extends ObjectType> clazz) static booleanisAuthorized(String... action) static booleanisAuthorized(Collection<String> actions) static booleanisClosedTask(TaskType task) Checks user-visible state, not the technical (scheduling) state.static booleanstatic booleanisDelegationAssignment(AssignmentType assignmentType) static booleanstatic booleanstatic booleanisImportReport(ReportType report) static booleanisItemVisible(List<ItemPath> visibleItems, ItemPath itemToBeFound) static booleanisLiveSync(TaskType task) static booleanisRecomputation(TaskType task) static booleanisReconciliation(TaskType task) static booleanisRecurringTask(TaskType task) static booleanisRefreshEnabled(PageBase pageBase, QName type) static booleanstatic booleanstatic booleanisRunnableTask(TaskType task) Checks user-visible state, not the technical (scheduling) state.static booleanisRunningTask(TaskType task) static booleanstatic booleanisSuccessOrHandledError(OperationResultType resultType) static booleanstatic booleanisSuspendedTask(TaskType task) Checks user-visible state, not the technical (scheduling) state.static booleanisTemplateCategory(@NotNull ResourceType resource) static booleanisWaitingTask(TaskType task) Checks user-visible state, not the technical (scheduling) state.static ItemPathstatic LookupTableTypeloadLookupTable(String lookupTableOid, PageAdminLTE parentPage) static <O extends ObjectType>
List<O>loadReferencedObjectList(List<ObjectReferenceType> refList, String operation, PageAdminLTE pageBase) static <O extends ObjectType>
List<O>loadReferencedObjectList(List<ObjectReferenceType> refList, String operation, Task task, PageAdminLTE pageBase) static StringprepareAutoCompleteList(LookupTableType lookupTable, String input) static org.apache.wicket.behavior.Behaviorstatic Class<? extends Serializable>qnameToAnyClass(PrismContext prismContext, QName qName) static Class<?>qnameToClass(PrismContext prismContext, QName type) static <T extends ObjectType>
Class<T>qnameToClass(PrismContext prismContext, QName type, Class<T> returnType) static <C extends Containerable>
Class<C>qnameToContainerClass(PrismContext prismContext, QName type) static voidrefreshFeedbacks(org.apache.wicket.MarkupContainer component, org.apache.wicket.ajax.AjaxRequestTarget target) static voidreleaseWorkItemActionPerformed(CaseWorkItemType workItemToClaim, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) static StringresolveLocalizableMessage(LocalizableMessage localizableMessage, org.apache.wicket.Component component) static <O extends ObjectType>
List<QName>resolveObjectTypesToQNames(Collection<Class<? extends O>> types, PrismContext prismContext) Takes a collection of object types (classes) that may contain abstract types.static org.apache.wicket.RestartResponseExceptionstatic voidrevive(LoadableModel<?> loadableModel, PrismContext prismContext) static voidreviveObject(Object object, PrismContext prismContext) static <T> TrunUnderPowerOfAttorneyIfNeeded(CheckedProducer<T> producer, PrismObject<? extends FocusType> powerDonor, PageBase pageBase, Task task, OperationResult result) static Integerstatic voidsafeResultCleanup(OperationResult result, Trace logger) static voidsaveLifeCycleStateOnPath(@NotNull PrismObject resource, ItemPath pathToProperty, org.apache.wicket.ajax.AjaxRequestTarget target, Task task, OperationResult parentResult, PageBase pageBase) static voidsaveObjectLifeCycle(@NotNull PrismObject resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) static voidsetCurrentPage(Table table, ObjectPaging paging) static voidsetTaskStateBeforeSave(PrismObjectWrapper<TaskType> taskWrapper, boolean runEnabled, PageBase pageBase, org.apache.wicket.ajax.AjaxRequestTarget target) static booleanshowResultInPage(OperationResult result) static voidshowToastForRecordedButUnsavedChanges(org.apache.wicket.ajax.AjaxRequestTarget target, PrismContainerValueWrapper value) static <T> List<T>sortDropDownChoices(org.apache.wicket.model.IModel<? extends List<? extends T>> choicesModel, org.apache.wicket.markup.html.form.IChoiceRenderer<T> renderer) static StringDeprecated.SeeLocalizationUtilstatic org.apache.wicket.behavior.BehaviorvisibleIfFalse(NonEmptyModel<Boolean> model) static voidworkItemApproveActionPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, CaseWorkItemType workItem, org.apache.wicket.Component formPanel, PrismObject<UserType> powerDonor, boolean approved, OperationResult result, PageBase pageBase) static Long
-
Constructor Details
-
WebComponentUtil
public WebComponentUtil()
-
-
Method Details
-
restartOnLoginPageException
public static org.apache.wicket.RestartResponseException restartOnLoginPageException() -
setTaskStateBeforeSave
public static void setTaskStateBeforeSave(PrismObjectWrapper<TaskType> taskWrapper, boolean runEnabled, PageBase pageBase, org.apache.wicket.ajax.AjaxRequestTarget target) -
createLocalizedModelForBoolean
-
nl2br
-
getTypeLocalized
-
getReferencedObjectNames
-
getReferencedObjectNames
public static String getReferencedObjectNames(List<ObjectReferenceType> refs, boolean showTypes, boolean translate) -
getReferencedObjectDisplayNameAndName
public static String getReferencedObjectDisplayNameAndName(Referencable ref, boolean loadObject, PageBase pageBase) -
getReferencedObjectDisplayNamesAndNames
public static String getReferencedObjectDisplayNamesAndNames(List<ObjectReferenceType> refs, boolean showTypes) -
getReferencedObjectDisplayNamesAndNames
-
getReferencedObjectDisplayNamesAndNames
public static String getReferencedObjectDisplayNamesAndNames(Referencable ref, boolean showTypes, boolean translate) -
loadReferencedObjectList
public static <O extends ObjectType> List<O> loadReferencedObjectList(List<ObjectReferenceType> refList, String operation, PageAdminLTE pageBase) -
loadReferencedObjectList
public static <O extends ObjectType> List<O> loadReferencedObjectList(List<ObjectReferenceType> refList, String operation, Task task, PageAdminLTE pageBase) -
addAjaxOnUpdateBehavior
public static void addAjaxOnUpdateBehavior(org.apache.wicket.markup.html.WebMarkupContainer container) -
resolveLocalizableMessage
public static String resolveLocalizableMessage(LocalizableMessage localizableMessage, org.apache.wicket.Component component) -
getAuthorizationActionForTargetClass
-
safeResultCleanup
-
getDefaultGuiObjectListType
@Deprecated public static CompiledObjectCollectionView getDefaultGuiObjectListType(PageBase pageBase) Deprecated.Default list view setting should never be needed. Always check setting for specific object type (and archetype). -
getRangeValidator
public static DateValidator getRangeValidator(org.apache.wicket.markup.html.form.Form<?> form, ItemPath path) -
isItemVisible
-
qnameToClass
-
qnameToClass
public static <T extends ObjectType> Class<T> qnameToClass(PrismContext prismContext, QName type, Class<T> returnType) -
classToQName
-
classToQName
-
containerClassToQName
public static <T extends Containerable> QName containerClassToQName(PrismContext prismContext, Class<T> clazz) -
anyClassToQName
-
qnameToAnyClass
-
qnameToContainerClass
public static <C extends Containerable> Class<C> qnameToContainerClass(PrismContext prismContext, QName type) -
canSuspendTask
-
canResumeTask
-
canRunNowTask
-
isRunnableTask
Checks user-visible state, not the technical (scheduling) state. So RUNNABLE means the task is not actually running. -
isRunningTask
-
isWaitingTask
Checks user-visible state, not the technical (scheduling) state. -
isSuspendedTask
Checks user-visible state, not the technical (scheduling) state. -
isClosedTask
Checks user-visible state, not the technical (scheduling) state. But for closed tasks, these are equivalent. -
isRecurringTask
-
isReconciliation
-
isRecomputation
-
isReport
-
isImport
-
isLiveSync
-
isAuthorized
-
isAuthorized
-
isAuthorized
-
safeLongToInteger
-
createSupportedTargetTypeList
-
resolveObjectTypesToQNames
public static <O extends ObjectType> List<QName> resolveObjectTypesToQNames(Collection<Class<? extends O>> types, PrismContext prismContext) Takes a collection of object types (classes) that may contain abstract types. Returns a collection that only contain concrete types.- Type Parameters:
O- common supertype for all the types in the collectionsTODO: move to schema component
-
createEnumResourceKey
Deprecated. -
createLocalizedModelForEnum
-
createReadonlyModelFromEnum
-
createSimulatedCategoryNameModel
@Experimental public static org.apache.wicket.model.IModel<String> createSimulatedCategoryNameModel(org.apache.wicket.Component component, org.apache.wicket.model.IModel<SelectableBean<TaskType>> taskModel) Simulates task category using task archetype. -
createCategoryNameModel
-
createEnumPanel
public static <E extends Enum> DropDownChoicePanel<E> createEnumPanel(Class<E> clazz, String id, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component) -
createEnumPanel
public static <E extends Enum> DropDownChoicePanel<E> createEnumPanel(Class<E> clazz, String id, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component, boolean allowNull) -
createEnumPanel
public static <E extends Enum> DropDownChoicePanel<E> createEnumPanel(String id, org.apache.wicket.model.IModel<List<E>> choicesList, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component, boolean allowNull) -
createEnumPanel
public static <E extends Enum> DropDownChoicePanel<E> createEnumPanel(String id, org.apache.wicket.model.IModel<List<E>> choicesList, org.apache.wicket.model.IModel<E> model, org.apache.wicket.Component component, boolean allowNull, String nullValidDisplayValue) -
getEnumChoiceRenderer
public static <E extends Enum<E>> org.apache.wicket.markup.html.form.IChoiceRenderer<E> getEnumChoiceRenderer(org.apache.wicket.Component component) -
createEnumPanel
public static DropDownChoicePanel createEnumPanel(PrismPropertyDefinition def, String id, org.apache.wicket.model.IModel model) -
getName
-
getName
-
getEffectiveName
-
getEffectiveName
-
getEffectiveName
public static <O extends ObjectType> String getEffectiveName(PrismObject<O> object, QName propertyName) -
getEffectiveName
public static <O extends ObjectType> String getEffectiveName(PrismObject<O> object, QName propertyName, boolean translate) -
getTranslatedPolyString
Deprecated.SeeLocalizationUtil -
getName
public static <O extends ObjectType> String getName(ObjectReferenceType ref, PageBase pageBase, String operation) -
getDisplayNameOrName
public static String getDisplayNameOrName(ObjectReferenceType ref, PageBase pageBase, String operation) -
getDisplayNameOrName
public static <O extends ObjectType> String getDisplayNameOrName(ObjectReferenceType ref, PageBase pageBase, String operation, boolean translate) -
getEffectiveName
public static String getEffectiveName(ObjectReferenceType ref, QName propertyName, PageBase pageBase, String operation) -
getEffectiveName
public static <O extends ObjectType> String getEffectiveName(Referencable ref, QName propertyName, PageBase pageBase, String operation, boolean translate) -
getName
-
getName
-
getName
-
getName
-
combineDisplay
-
getItemDefinitionDisplayNameOrName
-
getItemDefinitionDisplayName
-
getDisplayNameOrName
-
getDisplayNameOrName
-
getDisplayNameOrName
public static String getDisplayNameOrName(PrismObject object, boolean translate, LocalizationService localizationService) -
getDisplayNameOrName
-
getDisplayNameOrName
-
getDisplayNameAndName
-
getDisplayNameAndName
-
getDisplayName
-
getDisplayName
-
getDisplayName
-
getDisplayName
-
getDisplayName
public static String getDisplayName(PrismObject object, boolean translate, LocalizationService localizationService) -
createPolyFromOrigString
@Contract("null -> null; !null -> !null") public static PolyStringType createPolyFromOrigString(String str) -
createPolyFromOrigString
@Contract("null, _ -> null; !null, _ -> !null") public static PolyStringType createPolyFromOrigString(String str, String key) -
getOrigStringFromPoly
-
getOrigStringFromPoly
-
getOrigStringFromPolyOrEmpty
-
getValue
-
getContainerValue
-
getValue
-
encryptCredentials
-
encryptCredentials
public static void encryptCredentials(ObjectDelta delta, boolean encrypt, ModelServiceLocator serviceLocator) -
encryptProtectedString
public static void encryptProtectedString(ProtectedStringType string, boolean encrypt, ModelServiceLocator serviceLocator) -
encryptCredentials
-
encryptCredentials
public static void encryptCredentials(PrismObject object, boolean encrypt, ModelServiceLocator serviceLocator) -
encryptProtectedString
public static void encryptProtectedString(ProtectedStringType string, boolean encrypt, MidPointApplication app) -
getSelectedData
-
clearProviderCache
public static void clearProviderCache(org.apache.wicket.markup.repeater.data.IDataProvider provider) -
showResultInPage
-
formatDate
-
formatDate
-
formatDate
-
getLocalizedDatePattern
-
getCurrentLocale
-
getLocalizedDate
-
getLocalizedDate
-
getShortDateTimeFormattedValue
-
getShortDateTimeFormattedValue
-
getLongDateTimeFormattedValue
-
getLongDateTimeFormattedValue
-
getShortDateTimeFormat
-
getLongDateTimeFormat
-
isActivationEnabled
-
isSuccessOrHandledError
-
isSuccessOrHandledError
-
isSuccessOrHandledErrorOrWarning
-
isTemplateCategory
-
evaluateExpressionsInFilter
public static ObjectFilter evaluateExpressionsInFilter(ObjectFilter objectFilter, VariablesMap variables, OperationResult result, PageBase pageBase) -
evaluateExpressionsInFilter
public static ObjectFilter evaluateExpressionsInFilter(ObjectFilter objectFilter, OperationResult result, PageBase pageBase) -
refreshFeedbacks
public static void refreshFeedbacks(org.apache.wicket.MarkupContainer component, org.apache.wicket.ajax.AjaxRequestTarget target) -
revive
public static void revive(LoadableModel<?> loadableModel, PrismContext prismContext) throws SchemaException - Throws:
SchemaException
-
reviveObject
- Throws:
SchemaException
-
getPrismContext
-
getChannelList
-
getMatchingRuleList
-
createHumanReadableByteCount
-
setCurrentPage
-
getPageBase
-
getPage
public static <P extends PageAdminLTE> P getPage(org.apache.wicket.Component component, Class<P> pageClass) -
debugHandler
-
joinPath
-
getPanelIdentifierFromParams
public static String getPanelIdentifierFromParams(org.apache.wicket.request.mapper.parameter.PageParameters pageParameters) -
createTabPanel
@NotNull public static @NotNull TabbedPanel<org.apache.wicket.extensions.markup.html.tabs.ITab> createTabPanel(String id, PageBase parentPage, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs, TabbedPanel.RightSideItemProvider provider) -
createTabPanel
@NotNull public static @NotNull TabbedPanel<org.apache.wicket.extensions.markup.html.tabs.ITab> createTabPanel(String id, PageBase parentPage, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs, TabbedPanel.RightSideItemProvider provider, String tabChangeParameter) -
createHelp
-
exceptionToString
-
visibleIfFalse
-
enabledIfFalse
-
getStringParameter
-
getIntegerParameter
-
getElementVisibility
-
getElementVisibility
public static boolean getElementVisibility(UserInterfaceElementVisibilityType visibilityType, List<String> requiredAuthorizations) -
createAbstractRoleConfirmationMessage
public static <AR extends AbstractRoleType> org.apache.wicket.model.IModel<String> createAbstractRoleConfirmationMessage(String actionName, ColumnMenuAction action, MainObjectListPanel<AR> abstractRoleTable, PageBase pageBase) -
getCollectionLabel
Returns name of the collection suitable to be displayed in the menu or other labels. E.g. "All tasks", "Active employees". -
saveObjectLifeCycle
public static void saveObjectLifeCycle(@NotNull @NotNull PrismObject resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) -
saveLifeCycleStateOnPath
public static void saveLifeCycleStateOnPath(@NotNull @NotNull PrismObject resource, ItemPath pathToProperty, org.apache.wicket.ajax.AjaxRequestTarget target, Task task, OperationResult parentResult, PageBase pageBase) -
prepareAutoCompleteList
-
createTriStateCombo
-
isAllNulls
-
getPreviousPageClass
-
createMenuItemsFromActions
@NotNull public static @NotNull List<InlineMenuItem> createMenuItemsFromActions(@NotNull @NotNull List<GuiActionType> actions, String operation, PageBase pageBase, @NotNull @NotNull Supplier<Collection<? extends ObjectType>> selectedObjectsSupplier) -
getAssignableRolesFilter
public static ObjectFilter getAssignableRolesFilter(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase) -
getAssignableRolesFilter
public static ObjectFilter getAssignableRolesFilter(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, QName relation, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase) -
getSubmitOnEnterKeyDownBehavior
public static org.apache.wicket.behavior.Behavior getSubmitOnEnterKeyDownBehavior(String submitButtonAboutAttribute) -
getBlurOnEnterKeyDownBehavior
public static org.apache.wicket.behavior.Behavior getBlurOnEnterKeyDownBehavior() -
preventSubmitOnEnterKeyDownBehavior
public static org.apache.wicket.behavior.Behavior preventSubmitOnEnterKeyDownBehavior() -
getAssignableRelationsList
public static List<QName> getAssignableRelationsList(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase) -
getReferenceObjectTextValue
public static String getReferenceObjectTextValue(ObjectReferenceType ref, PrismReferenceDefinition referenceDef, PageBase pageBase) -
formatDurationWordsForLocal
public static String formatDurationWordsForLocal(long durationMillis, boolean suppressLeadingZeroElements, boolean suppressTrailingZeroElements) -
formatDurationWordsForLocal
@Deprecated public static String formatDurationWordsForLocal(long durationMillis, boolean suppressLeadingZeroElements, boolean suppressTrailingZeroElements, org.apache.wicket.Component comp) Deprecated.uses the one without "comp" parameter- Parameters:
durationMillis-suppressLeadingZeroElements-suppressTrailingZeroElements-comp-- Returns:
-
getArchetypeSpecification
public static <O extends ObjectType> ArchetypePolicyType getArchetypeSpecification(PrismObject<O> object, ModelServiceLocator locator) -
createCompositeIconForObject
public static <O extends ObjectType> CompositedIcon createCompositeIconForObject(O obj, OperationResult result, PageBase pageBase) -
createAccountIcon
public static CompositedIcon createAccountIcon(ShadowType shadow, PageBase pageBase, boolean isColumn) -
getAssignmentRelationIconBuilder
@Contract("_,_,_,null -> null") public static CompositedIconBuilder getAssignmentRelationIconBuilder(PageBase pageBase, AssignmentObjectRelation relationSpec, IconType relationIcon, IconType actionButtonIcon) -
getIconUrlModel
-
deleteSyncTokenPerformed
public static void deleteSyncTokenPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, ResourceType resourceType, PageBase pageBase) -
divideAssignmentRelationsByRelationValue
public static List<AssignmentObjectRelation> divideAssignmentRelationsByRelationValue(List<AssignmentObjectRelation> initialRelationsList) The idea is to divide the list of AssignmentObjectRelation objects in such way that each AssignmentObjectRelation in the list will contain not more than 1 relation. This will simplify creating of a new_assignment_button on some panels -
divideAssignmentRelationsByAllValues
public static List<AssignmentObjectRelation> divideAssignmentRelationsByAllValues(List<AssignmentObjectRelation> initialAssignmentRelationsList) -
divideAssignmentRelationsByAllValues
public static List<AssignmentObjectRelation> divideAssignmentRelationsByAllValues(List<AssignmentObjectRelation> initialAssignmentRelationsList, boolean addDefaultObjectRelations) The idea is to divide the list of AssignmentObjectRelation objects in such way that each AssignmentObjectRelation in the list will contain not more than 1 relation, not more than 1 object type and not more than one archetype reference. This will simplify creating of a new_assignment_button -
assignmentObjectRelationAlreadyExists
public static boolean assignmentObjectRelationAlreadyExists(List<AssignmentObjectRelation> list, AssignmentObjectRelation relation) it's expected that the list of AssignmentObjectRelation will be pre-prepared in such manner that each AssignmentObjectRelation in the list will contain only one object type, one relation and one archetypeRef. This methods compares only the first items in these lists- Parameters:
list-relation-- Returns:
-
sortDropDownChoices
-
createVisualizationDto
public static VisualizationDto createVisualizationDto(CaseWorkItemType caseWorkItem, PageBase pageBase, String operation) -
computeTriggers
public static List<EvaluatedTriggerGroupDto> computeTriggers(ApprovalContextType wfc, Integer stage) -
createVisualizationDto
public static VisualizationDto createVisualizationDto(CaseType caseObject, PageBase pageBase, String operation) -
createVisualizationDtoForManualCase
public static VisualizationDto createVisualizationDtoForManualCase(CaseType caseObject, PageBase pageBase, String operation) -
workItemApproveActionPerformed
public static void workItemApproveActionPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, CaseWorkItemType workItem, org.apache.wicket.Component formPanel, PrismObject<UserType> powerDonor, boolean approved, OperationResult result, PageBase pageBase) -
caseOutcomeUriToPresentation
public static OperationResultStatusPresentationProperties caseOutcomeUriToPresentation(String outcome) -
caseOutcomeUriToIcon
-
createMetadataOrdering
public static List<ObjectOrdering> createMetadataOrdering(org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sortParam, String metadataProperty, PrismContext prismContext) -
claimWorkItemActionPerformed
public static void claimWorkItemActionPerformed(CaseWorkItemType workItemToClaim, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) -
releaseWorkItemActionPerformed
public static void releaseWorkItemActionPerformed(CaseWorkItemType workItemToClaim, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) -
assumePowerOfAttorneyIfRequested
public static void assumePowerOfAttorneyIfRequested(OperationResult result, PrismObject<UserType> powerDonor, PageBase pageBase) -
dropPowerOfAttorneyIfRequested
public static void dropPowerOfAttorneyIfRequested(OperationResult result, PrismObject<UserType> powerDonor, PageBase pageBase) -
runUnderPowerOfAttorneyIfNeeded
public static <T> T runUnderPowerOfAttorneyIfNeeded(CheckedProducer<T> producer, PrismObject<? extends FocusType> powerDonor, PageBase pageBase, Task task, OperationResult result) throws CommonException - Throws:
CommonException
-
computeChangesCategorizationList
@NotNull public static @NotNull List<VisualizationDto> computeChangesCategorizationList(ChangesByState changesByState, ObjectReferenceType objectRef, ModelInteractionService modelInteractionService, PrismContext prismContext, Task opTask, OperationResult thisOpResult) throws SchemaException, ExpressionEvaluationException -
getMidpointCustomSystemName
public static String getMidpointCustomSystemName(PageAdminLTE pageBase, String defaultSystemNameKey) -
getObjectListPageStorageKey
-
getObjectFromAddDeltaForCase
-
isResourceRelatedTask
-
isRefreshEnabled
-
xgc2long
-
getSimpleChannel
-
getIntentsForKind
public static Collection<String> getIntentsForKind(PrismObject<ResourceType> resource, ShadowKindType kind) -
resolveSelfPage
-
findLookupTable
public static <I extends Item> PrismObject<LookupTableType> findLookupTable(ItemDefinition<I> definition, PageBase page) -
findLookupTable
public static PrismObject<LookupTableType> findLookupTable(PrismReferenceValue valueEnumerationRef, PageBase page) -
hasAnyArchetypeAssignment
public static <AH extends AssignmentHolderType> boolean hasAnyArchetypeAssignment(AH assignmentHolder) -
isArchetypeAssignment
-
isDelegationAssignment
-
hasArchetypeAssignment
public static <AH extends AssignmentHolderType> boolean hasArchetypeAssignment(AH assignmentHolder, String archetypeOid) -
getLocale
Deprecated. -
getCollator
-
createCreateReportIcon
-
getCollectionViewByObject
public static CompiledObjectCollectionView getCollectionViewByObject(AssignmentHolderType assignmentHolder, PageBase pageBase) -
getPasswordCredentialsPolicy
public static CredentialsPolicyType getPasswordCredentialsPolicy(PrismObject<? extends FocusType> focus, PageAdminLTE parentPage, Task task) -
getPasswordValuePolicy
public static ValuePolicyType getPasswordValuePolicy(CredentialsPolicyType credentialsPolicy, String operation, PageAdminLTE parentPage) -
getTimestampAsLong
@Contract("_,true->!null") public static Long getTimestampAsLong(XMLGregorianCalendar cal, boolean currentIfNull) -
getTaskProgressDescription
public static String getTaskProgressDescription(TaskInformation taskInformation, boolean longForm, PageBase pageBase) -
getAllowedValues
public static List<DisplayableValue<?>> getAllowedValues(SearchFilterParameterType parameter, ModelServiceLocator modelServiceLocator) -
getAllowedValues
public static List<DisplayableValue<?>> getAllowedValues(ExpressionType expression, ModelServiceLocator modelServiceLocator) -
getCollectionNameParameterValueAsString
-
getCollectionNameParameterValue
public static org.apache.wicket.util.string.StringValue getCollectionNameParameterValue(PageAdminLTE parentPage) -
getPrincipalUserObjectListView
public static <C extends Containerable> GuiObjectListViewType getPrincipalUserObjectListView(PageAdminLTE parentPage, FocusType principalFocus, @NotNull @NotNull Class<C> viewType, boolean createIfNotExist, String defaultIdentifier) -
createDropDownChoices
public static <T> DropDownChoicePanel createDropDownChoices(String id, org.apache.wicket.model.IModel<DisplayableValue<T>> model, org.apache.wicket.model.IModel<List<DisplayableValue<T>>> choices, boolean allowNull) -
createMainButtonLayerIcon
public static Map<IconCssStyle,IconType> createMainButtonLayerIcon(DisplayType mainButtonDisplayType) -
addNewArchetype
public static <T extends AssignmentHolderType> void addNewArchetype(PrismObjectWrapper<T> object, String archetypeOid, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) -
isImportReport
-
createMappingDescription
public static org.apache.wicket.model.IModel<String> createMappingDescription(org.apache.wicket.model.IModel<PrismContainerValueWrapper<MappingType>> model) -
createPanel
public static <T extends ObjectType> org.apache.wicket.Component createPanel(Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass, String markupId, ObjectDetailsModels<T> objectDetailsModels, ContainerPanelConfigurationType panelConfig) -
findResource
public static PrismObject<ResourceType> findResource(PrismPropertyWrapper itemWrapper, PrismPropertyPanelContext panelCtx) -
getContainerConfiguration
public static ContainerPanelConfigurationType getContainerConfiguration(GuiObjectDetailsPageType pageConfig, String panelType) -
getSummaryPanelSpecification
@Deprecated public static <O extends ObjectType> SummaryPanelSpecificationType getSummaryPanelSpecification(Class<O> type, CompiledGuiProfile compiledGuiProfile) Deprecated.only for 'old' object details pages. Should be removed after only new design will be present. -
addDisabledClassBehavior
public static void addDisabledClassBehavior(org.apache.wicket.Component comp) -
getCompiledGuiProfile
-
getCompiledGuiProfile
-
createJpegPhotoResource
public static <T extends FocusType> org.apache.wicket.request.resource.IResource createJpegPhotoResource(PrismObject<T> object) -
createJpegPhotoResource
-
getMidPointSkin
-
createToastForUpdateObject
public static void createToastForUpdateObject(org.apache.wicket.ajax.AjaxRequestTarget target, Class<? extends ObjectType> type) -
createToastForCreateObject
public static void createToastForCreateObject(org.apache.wicket.ajax.AjaxRequestTarget target, Class<? extends ObjectType> type) -
createToastForUpdateObject
public static void createToastForUpdateObject(org.apache.wicket.ajax.AjaxRequestTarget target, QName type) -
createToastForCreateObject
public static void createToastForCreateObject(org.apache.wicket.ajax.AjaxRequestTarget target, QName type) -
getLabelForType
public static <O extends ObjectType> String getLabelForType(Class<O> type, boolean startsWithUppercase) -
showToastForRecordedButUnsavedChanges
public static void showToastForRecordedButUnsavedChanges(org.apache.wicket.ajax.AjaxRequestTarget target, PrismContainerValueWrapper value) -
translateMessage
Deprecated.SeeLocalizationUtil -
getCompiledObjectCollectionView
public static CompiledObjectCollectionView getCompiledObjectCollectionView(GuiObjectListViewType listViewType, ContainerPanelConfigurationType config, PageBase pageBase) -
getPath
-
hasPopupableParent
public static boolean hasPopupableParent(@NotNull @NotNull org.apache.wicket.Component component) -
isEnabledExperimentalFeatures
public static boolean isEnabledExperimentalFeatures() -
isDarkModeEnabled
public static boolean isDarkModeEnabled() -
loadLookupTable
-
getArchetypeOidsListByHolderType
public static <O extends AssignmentHolderType> List<String> getArchetypeOidsListByHolderType(Class<O> holderType, PageBase pageBase) -
getContainerDefinitionModel
public static <C extends Containerable> LoadableModel<PrismContainerDefinition<C>> getContainerDefinitionModel(Class<C> clazz)
-
LocalizationUtil.createKeyForEnum(Enum)