Class WebComponentUtil
- java.lang.Object
-
- com.evolveum.midpoint.gui.api.util.WebComponentUtil
-
public final class WebComponentUtil extends Object
Utility class containing miscellaneous methods used mostly in Wicket components.- Author:
- lazyman
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebComponentUtil.AssignmentOrder
-
Constructor Summary
Constructors Constructor Description WebComponentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 OperationResultStatusPresentationPropertiescaseOutcomeUriToIcon(String outcome)static ItemVisibilitycheckShadowActivationAndPasswordVisibility(ItemWrapper<?,?> itemWrapper, ShadowType shadowType)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 intcountLinkForDeadShadows(Collection<ObjectReferenceType> refs)static intcountLinkForNonDeadShadows(Collection<ObjectReferenceType> refs)static StringcountLinkFroNonDeadShadows(Collection<ObjectReferenceType> refs)static <AR extends AbstractRoleType>
org.apache.wicket.model.IModel<String>createAbstractRoleConfirmationMessage(String actionName, ColumnMenuAction action, MainObjectListPanel<AR> abstractRoleTable, PageBase pageBase)static List<QName>createAbstractRoleTypeList()static CompositedIconcreateAccountIcon(ShadowType shadow, PageBase pageBase, boolean isColumn)static List<ObjectTypes>createAssignableTypesList()static List<QName>createAssignmentHolderTypeQnamesList()static List<ObjectTypes>createAssignmentHolderTypesList()static ObjectFiltercreateAssociationShadowRefFilter(ResourceAssociationDefinition resourceAssociationDefinition, PrismContext prismContext, String resourceOid)static List<QName>createAvailableNewObjectsTypesList()static org.apache.wicket.model.IModel<String>createCategoryNameModel(org.apache.wicket.Component component, org.apache.wicket.model.IModel<String> categorySymbolModel)static <O extends ObjectType>
CompositedIconcreateCompositeIconForObject(O obj, OperationResult result, PageBase pageBase)static List<QName>createContainerableTypesQnameList()static CompositedIconcreateCreateReportIcon()static <T extends ObjectType>
StringcreateDefaultBlackIcon(QName objectType)static <T extends ObjectType>
StringcreateDefaultColoredIcon(QName objectType)static <T extends ObjectType>
StringcreateDefaultIcon(PrismObject<T> object)static <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(Class<E> clazz, 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)static <T extends Enum>
StringcreateEnumResourceKey(T value)Deprecated.static StringcreateErrorIcon(OperationResult result)static List<QName>createFocusTypeList()static List<QName>createFocusTypeList(boolean includeAbstractType)static org.apache.wicket.ComponentcreateHelp(String id)static StringcreateHumanReadableByteCount(long bytes)static IconTypecreateIconType(String iconStyle)static IconTypecreateIconType(String iconStyle, String color)static <T extends FocusType>
org.apache.wicket.request.resource.IResourcecreateJpegPhotoResource(PrismObject<T> object)static org.apache.wicket.request.resource.IResourcecreateJpegPhotoResource(FocusType focus)static <T extends Enum>
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 StringcreateObjectColletionIcon()static List<QName>createObjectTypeList()static List<ObjectTypes>createObjectTypesList()static StringcreateOrgIcon()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 PolyStringTypecreatePolyFromOrigString(String str)static PolyStringTypecreatePolyFromOrigString(String str, String key)static <T extends Enum>
org.apache.wicket.model.IModel<List<T>>createReadonlyModelFromEnum(Class<T> type)static StringcreateReportIcon()static StringcreateResourceIcon(PrismObject<ResourceType> object)static StringcreateRoleIcon(PrismObject<RoleType> object)static StringcreateServiceIcon()static StringcreateShadowIcon(@Nullable ShadowKindType kind)static StringcreateShadowIcon(PrismObject<ShadowType> object)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.static List<QName>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 StringcreateTaskIcon()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 StringcreateUserIcon(PrismObject<UserType> object)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 voiddispatchToListPage(Class<? extends Containerable> objectClass, String collectionViewId, org.apache.wicket.Component component, boolean failIfUnsupported)static voiddispatchToObjectDetailsPage(PrismObject obj, boolean isNewObject, org.apache.wicket.Component component)static voiddispatchToObjectDetailsPage(PrismObject obj, org.apache.wicket.Component component)static voiddispatchToObjectDetailsPage(PrismReferenceValue objectRef, org.apache.wicket.Component component, boolean failIfUnsupported)static voiddispatchToObjectDetailsPage(Referencable objectRef, org.apache.wicket.Component component, boolean failIfUnsupported)static voiddispatchToObjectDetailsPage(Class<? extends ObjectType> objectClass, String oid, org.apache.wicket.Component component, boolean failIfUnsupported)static List<AssignmentObjectRelation>divideAssignmentRelationsByAllValues(List<AssignmentObjectRelation> initialAssignmentRelationsList)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 StringfilterNonDeadProjections(List<ShadowWrapper> projectionWrappers)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 List<QName>getAllRelations(ModelServiceLocator pageBase)static <O extends ObjectType>
ArchetypePolicyTypegetArchetypeSpecification(PrismObject<O> object, ModelServiceLocator locator)static List<QName>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 StringgetAssociationDisplayName(ResourceAssociationDefinition assocDef)static ExpressionTypegetAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, boolean createIfNotExist, PrismContext prismContext, PageBase pageBase)Deprecated.static ExpressionTypegetAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, PageBase pageBase)Deprecated.static @Nullable StringgetAuthorizationActionForTargetClass(Class targetClass)static org.apache.wicket.behavior.BehaviorgetBlurOnEnterKeyDownBehavior()static <T extends ObjectType>
StringgetBoxCssClasses(QName objectType)static <T extends ObjectType>
StringgetBoxThinCssClasses(QName objectType)static List<QName>getCategoryRelationChoices(AreaCategoryType category, ModelServiceLocator pageBase)static List<QName>getCategoryRelationChoices(AreaCategoryType category, List<RelationDefinitionType> defList)static List<String>getChannelList()static CollatorgetCollator()static PolyStringTypegetCollectionLabel(DisplayType viewDisplayType)Returns name of the collection suitable to be displayed in the menu or other labels.static PolyStringTypegetCollectionLabel(DisplayType viewDisplayType, CollectionRefSpecificationType collectionRefSpec, ObjectType collectionRefTarget)Deprecated.static org.apache.wicket.util.string.StringValuegetCollectionNameParameterValue(PageAdminLTE parentPage)static StringgetCollectionNameParameterValueAsString(PageBase pageBase)static CompiledObjectCollectionViewgetCollectionViewByObject(AssignmentHolderType assignmentHolder, PageBase pageBase)static CompiledGuiProfilegetCompiledGuiProfile()static CompiledGuiProfilegetCompiledGuiProfile(org.apache.wicket.Page page)static CompiledObjectCollectionViewgetCompiledObjectCollectionView(GuiObjectListViewType listViewType, ContainerPanelConfigurationType config, PageBase pageBase)static PrismObject<ResourceType>getConstructionResource(ConstructionType construction, String operation, PageBase pageBase)static ContainerPanelConfigurationTypegetContainerConfiguration(GuiObjectDetailsPageType pageConfig, String panelType)static <T> TgetContainerValue(PrismContainerValue object, QName containerName, Class<T> type)static LocalegetCurrentLocale()static CompiledObjectCollectionViewgetDefaultGuiObjectListType(PageBase pageBase)Deprecated.static QNamegetDefaultRelation()static @Nullable QNamegetDefaultRelationFor(RelationKindType kind)static @NotNull QNamegetDefaultRelationOrFail()static @NotNull QNamegetDefaultRelationOrFail(RelationKindType kind)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 StringgetDisplayName(ObjectReferenceType ref)static StringgetDisplayNameAndName(PrismObject<?> object)static StringgetDisplayNameAndName(ObjectReferenceType ref)static StringgetDisplayNameOrName(PrismObject object)static StringgetDisplayNameOrName(PrismObject object, boolean translate)static StringgetDisplayNameOrName(PrismObject object, boolean translate, LocalizationService localizationService)static StringgetDisplayNameOrName(Referencable ref)static StringgetDisplayNameOrName(Referencable ref, boolean translate)static <O extends ObjectType>
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 <F extends FocusType>
StringgetIconEnabledDisabled(PrismObject<F> object)static <O extends ObjectType>
IconTypegetIconForActivationStatus(O obj)static <O extends ObjectType>
IconTypegetIconForLifecycleState(O obj)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 StringgetItemDefinitionDisplayName(ItemDefinition def)static StringgetItemDefinitionDisplayNameOrName(ItemDefinition def)static <O extends ObjectType>
StringgetLabelForType(Class<O> type, boolean startsWithUppercase)static <F extends FocusType>
LocalegetLocale()static LocalegetLocaleFromString(String localeString)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 List<QName>getMatchingRuleList()static StringgetMidpointCustomSystemName(PageAdminLTE pageBase, String defaultSystemNameKey)static AdminLTESkingetMidPointSkin()static StringgetName(PrismObject object)static StringgetName(PrismObject object, boolean translate)static StringgetName(PrismObject object, boolean translate, LocalizationService localizationService)static StringgetName(Referencable ref, boolean translate)static StringgetName(ObjectReferenceType ref)static <O extends ObjectType>
StringgetName(ObjectReferenceType ref, PageBase pageBase, String operation)static StringgetName(ObjectType object)static StringgetName(ObjectType object, boolean translate)static CapabilityCollectionTypegetNativeCapabilities(ResourceType resource, PageBase pageBase)static Class<? extends PageBase>getNewlyCreatedObjectPage(Class<? extends ObjectType> type)static Class<? extends PageBase>getObjectDetailsPage(Class<? extends ObjectType> type)static AssignmentHolderTypegetObjectFromAddDeltaForCase(CaseType aCase)static Class<? extends PageBase>getObjectListPage(Class<? extends ObjectType> type)static StringgetObjectListPageStorageKey(String additionalKeyValue)static Class<? extends ObjectType>getObjectTypeForDetailsPage(PageBase pageType)static StringgetOrigStringFromPoly(PolyString str)static StringgetOrigStringFromPoly(PolyStringType str)static StringgetOrigStringFromPolyOrEmpty(PolyStringType str)static <P extends PageAdminLTE>
PgetPage(org.apache.wicket.Component component, Class<P> pageClass)static PageBasegetPageBase(org.apache.wicket.Component component)static Class<? extends PageBase>getPageHistoryDetailsPage(Class<?> page)static StringgetPanelIdentifierFromParams(org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)static CredentialsPolicyTypegetPasswordCredentialsPolicy(PrismObject<? extends FocusType> focus, PageAdminLTE parentPage, Task task)static <F extends FocusType>
ValuePolicyTypegetPasswordValuePolicy(CredentialsPolicyType credentialsPolicy, String operation, PageAdminLTE parentPage)static ItemPathgetPath(GuiObjectColumnType column)static StringgetPendingOperationLabel(PendingOperationType realValue, BasePanel panel)static StringgetPendingOperationsLabels(ShadowType shadow, BasePanel panel)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 List<ResourceAssociationDefinition>getRefinedAssociationDefinition(@NotNull ResourceObjectDefinition oc)static List<ResourceAssociationDefinition>getRefinedAssociationDefinition(ConstructionType construction, PageBase pageBase)static List<ResourceAssociationDefinition>getRefinedAssociationDefinition(ResourceType resource, ShadowKindType kind, String intent)static org.apache.wicket.markup.html.form.IChoiceRenderer<QName>getRelationChoicesRenderer()static RelationDefinitionTypegetRelationDefinition(QName relation)static @NotNull List<RelationDefinitionType>getRelationDefinitions(ModelServiceLocator pageBase)static @NotNull StringgetRelationHeaderLabelKey(QName relation)static @Nullable StringgetRelationHeaderLabelKeyIfKnown(QName relation)static StringgetRelationLabelValue(PrismContainerValueWrapper<AssignmentType> assignmentWrapper, PageBase pageBase)static StringgetRelationLabelValue(PrismReferenceValue referenceValue, PageBase pageBase)static StringgetRelationLabelValue(AssignmentType assignment, PageBase pageBase)static RelationRegistrygetRelationRegistry()static org.apache.wicket.model.IModel<String>getResourceAttributesLabelModel(ShadowType shadow, PageBase pageBase)static org.apache.wicket.model.IModel<String>getResourceLabelModel(ShadowType shadow, PageBase pageBase)static ResourceObjectDefinitiongetResourceObjectDefinition(ConstructionType construction, PageBase pageBase)static <T extends Selectable>
List<T>getSelectedData(Table table)static ObjectFiltergetShadowTypeFilterForAssociation(ResourceObjectDefinition oc, ItemName association)static ObjectFiltergetShadowTypeFilterForAssociation(ConstructionType construction, ItemName association, String operation, PageBase pageBase)static ObjectFiltergetShadowTypeFilterForAssociation(ConstructionType construction, String operation, PageBase pageBase)static StringgetShortDateTimeFormat(PageBase pageBase)static StringgetShortDateTimeFormattedValue(Date date, PageBase pageBase)static StringgetShortDateTimeFormattedValue(XMLGregorianCalendar date, PageBase pageBase)static StringgetSimpleChannel(String chanelUri)static RelationRegistrygetStaticallyProvidedRelationRegistry()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 StringgetTranslatedPolyString(PolyString value)Deprecated.SeeLocalizationUtilstatic StringgetTranslatedPolyString(PolyString value, LocalizationService localizationService)Deprecated.SeeLocalizationUtilstatic StringgetTranslatedPolyString(PolyStringType value)Deprecated.SeeLocalizationUtilstatic StringgetTypeLocalized(ObjectReferenceType ref)static <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 booleanhasDetailsPage(PrismObject<?> object)static booleanhasDetailsPage(Class<?> clazz)static booleanhasPopupableParent(@NotNull org.apache.wicket.Component component)static <AHT extends AssignmentHolderType>
voidinitNewObjectWithReference(PageBase pageBase, AHT assignmentHolder, List<ObjectReferenceType> newReferences)static <AHT extends AssignmentHolderType>
voidinitNewObjectWithReference(PageBase pageBase, QName type, List<ObjectReferenceType> newReferences)static BooleanisActivationEnabled(PrismObject object, ItemPath propertyName)static booleanisActivationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)static booleanisAllNulls(Iterable<?> array)static booleanisArchetypeAssignment(AssignmentType assignmentType)static booleanisAssociationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)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 booleanisDarkModeEnabled()static booleanisDefaultRelation(QName relation)static booleanisDelegationAssignment(AssignmentType assignmentType)static booleanisEnabledExperimentalFeatures()static booleanisImport(TaskType task)static booleanisImportReport(ReportType report)static booleanisItemVisible(List<ItemPath> visibleItems, ItemPath itemToBeFound)static booleanisLiveSync(TaskType task)static booleanisManagerRelation(QName relation)static booleanisNewDesignEnabled()static booleanisOfKind(QName relation, RelationKindType kind)static booleanisPasswordSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)static booleanisRecomputation(TaskType task)static booleanisReconciliation(TaskType task)static booleanisRecurringTask(TaskType task)static booleanisRedirectionTargetNotEmpty(GuiActionType action)static booleanisRefreshEnabled(PageBase pageBase, QName type)static booleanisReport(TaskType task)static booleanisResourceRelatedTask(TaskType task)static booleanisRunnableTask(TaskType task)Checks user-visible state, not the technical (scheduling) state.static booleanisRunningTask(TaskType task)static booleanisSuccessOrHandledError(OperationResult result)static booleanisSuccessOrHandledError(OperationResultType resultType)static booleanisSuccessOrHandledErrorOrWarning(OperationResult result)static 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 booleanisWorkflowTask(TaskType task)Deprecated.static ItemPathjoinPath(ItemPath path1, ItemPath path2)static <O extends ObjectType>
List<O>loadReferencedObjectList(List<ObjectReferenceType> refList, String operation, PageBase pageBase)static Collection<QName>loadResourceObjectClassValues(ResourceType resource, PageBase pageBase)static Stringnl2br(String text)static QNamenormalizeRelation(QName relation)static voidpartialConfigurationTest(@NotNull PrismObject<ResourceType> resource, PageBase pageBase, Task task, OperationResult result)static List<String>prepareAutoCompleteList(LookupTableType lookupTable, String input)static org.apache.wicket.behavior.BehaviorpreventSubmitOnEnterKeyDownBehavior()static <S extends Serializable>
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 voidredirectFromDashboardWidget(GuiActionType action, PageBase pageBase, org.apache.wicket.Component component)static voidrefreshFeedbacks(org.apache.wicket.MarkupContainer component, org.apache.wicket.ajax.AjaxRequestTarget target)static voidrefreshResourceSchema(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)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 Class<? extends PageBase>resolveSelfPage()static 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 IntegersafeLongToInteger(Long l)static voidsafeResultCleanup(OperationResult result, Trace logger)static voidsetCurrentPage(Table table, ObjectPaging paging)static booleanshowResultInPage(OperationResult result)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 voidswitchObjectMode(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, String lifecycleState)static voidswitchResourceMaintenance(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, AdministrativeAvailabilityStatusType mode)static voidtoggleResourceMaintenance(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)static StringtranslateMessage(LocalizableMessage msg)Deprecated.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 Longxgc2long(XMLGregorianCalendar gc)
-
-
-
Method Detail
-
getTypeLocalized
public static String getTypeLocalized(ObjectReferenceType ref)
-
getReferencedObjectNames
public static String getReferencedObjectNames(List<ObjectReferenceType> refs, boolean showTypes)
-
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
public static String getReferencedObjectDisplayNamesAndNames(Referencable ref, boolean showTypes)
-
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, PageBase pageBase)
-
getShadowTypeFilterForAssociation
public static ObjectFilter getShadowTypeFilterForAssociation(ConstructionType construction, String operation, PageBase pageBase)
-
getShadowTypeFilterForAssociation
public static ObjectFilter getShadowTypeFilterForAssociation(ConstructionType construction, ItemName association, String operation, PageBase pageBase)
-
getShadowTypeFilterForAssociation
public static ObjectFilter getShadowTypeFilterForAssociation(ResourceObjectDefinition oc, ItemName association)
-
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
@Nullable public static @Nullable String getAuthorizationActionForTargetClass(Class targetClass)
-
safeResultCleanup
public static void safeResultCleanup(OperationResult result, Trace logger)
-
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
public static boolean isItemVisible(List<ItemPath> visibleItems, ItemPath itemToBeFound)
-
qnameToClass
public static Class<?> qnameToClass(PrismContext prismContext, QName type)
-
qnameToClass
public static <T extends ObjectType> Class<T> qnameToClass(PrismContext prismContext, QName type, Class<T> returnType)
-
classToQName
public static <T extends ObjectType> QName classToQName(PrismContext prismContext, Class<T> clazz)
-
classToQName
public static <T extends ObjectType> QName classToQName(Class<T> clazz)
-
containerClassToQName
public static <T extends Containerable> QName containerClassToQName(PrismContext prismContext, Class<T> clazz)
-
anyClassToQName
public static QName anyClassToQName(PrismContext prismContext, Class<?> clazz)
-
qnameToAnyClass
public static <S extends Serializable> Class<? extends Serializable> qnameToAnyClass(PrismContext prismContext, QName qName)
-
qnameToContainerClass
public static <C extends Containerable> Class<C> qnameToContainerClass(PrismContext prismContext, QName type)
-
isRunnableTask
public static boolean isRunnableTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state. So RUNNABLE means the task is not actually running.
-
isRunningTask
public static boolean isRunningTask(TaskType task)
-
isWaitingTask
public static boolean isWaitingTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state.
-
isSuspendedTask
public static boolean isSuspendedTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state.
-
isClosedTask
public static boolean isClosedTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state. But for closed tasks, these are equivalent.
-
isRecurringTask
public static boolean isRecurringTask(TaskType task)
-
isWorkflowTask
@Deprecated public static boolean isWorkflowTask(TaskType task)
Deprecated.
-
isReconciliation
public static boolean isReconciliation(TaskType task)
-
isRecomputation
public static boolean isRecomputation(TaskType task)
-
isReport
public static boolean isReport(TaskType task)
-
isImport
public static boolean isImport(TaskType task)
-
isLiveSync
public static boolean isLiveSync(TaskType task)
-
isAuthorized
public static boolean isAuthorized(String... action)
-
isAuthorized
public static boolean isAuthorized(Collection<String> actions)
-
isAuthorized
public static boolean isAuthorized(Class<? extends ObjectType> clazz)
-
createObjectTypesList
public static List<ObjectTypes> createObjectTypesList()
-
createAssignmentHolderTypeQnamesList
public static List<QName> createAssignmentHolderTypeQnamesList()
-
createAssignmentHolderTypesList
public static List<ObjectTypes> createAssignmentHolderTypesList()
-
createAssignableTypesList
public static List<ObjectTypes> createAssignableTypesList()
-
createSupportedTargetTypeList
public static List<QName> createSupportedTargetTypeList(QName targetTypeFromDef)
-
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 public static <T extends Enum> String createEnumResourceKey(T value)
Deprecated.
-
createLocalizedModelForEnum
public static <T extends Enum> org.apache.wicket.model.IModel<String> createLocalizedModelForEnum(T value, org.apache.wicket.Component comp)
-
createReadonlyModelFromEnum
public static <T extends Enum> org.apache.wicket.model.IModel<List<T>> createReadonlyModelFromEnum(Class<T> type)
-
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
public static org.apache.wicket.model.IModel<String> createCategoryNameModel(org.apache.wicket.Component component, org.apache.wicket.model.IModel<String> categorySymbolModel)
-
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(Class<E> clazz, 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
public static String getName(ObjectType object)
-
getName
public static String getName(ObjectType object, boolean translate)
-
getEffectiveName
public static String getEffectiveName(ObjectType object, QName propertyName)
-
getEffectiveName
public static String getEffectiveName(ObjectType object, QName propertyName, boolean translate)
-
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 public static String getTranslatedPolyString(PolyStringType value)
Deprecated.SeeLocalizationUtil
-
getTranslatedPolyString
@Deprecated public static String getTranslatedPolyString(PolyString value)
Deprecated.SeeLocalizationUtil
-
getTranslatedPolyString
@Deprecated public static String getTranslatedPolyString(PolyString value, LocalizationService localizationService)
Deprecated.SeeLocalizationUtil
-
getName
public static <O extends ObjectType> String getName(ObjectReferenceType ref, PageBase pageBase, String operation)
-
getDisplayNameOrName
public static <O extends ObjectType> 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
public static String getName(ObjectReferenceType ref)
-
getName
public static String getName(Referencable ref, boolean translate)
-
getName
public static String getName(PrismObject object)
-
getName
public static String getName(PrismObject object, boolean translate)
-
getName
public static String getName(PrismObject object, boolean translate, LocalizationService localizationService)
-
combineDisplay
public static DisplayType combineDisplay(DisplayType display, DisplayType variationDisplay)
-
getItemDefinitionDisplayNameOrName
public static String getItemDefinitionDisplayNameOrName(ItemDefinition def)
-
getItemDefinitionDisplayName
public static String getItemDefinitionDisplayName(ItemDefinition def)
-
getDisplayNameOrName
public static String getDisplayNameOrName(PrismObject object)
-
getDisplayNameOrName
public static String getDisplayNameOrName(PrismObject object, boolean translate)
-
getDisplayNameOrName
public static String getDisplayNameOrName(PrismObject object, boolean translate, LocalizationService localizationService)
-
getDisplayNameOrName
public static String getDisplayNameOrName(Referencable ref)
-
getDisplayNameOrName
public static String getDisplayNameOrName(Referencable ref, boolean translate)
-
getDisplayNameAndName
public static String getDisplayNameAndName(PrismObject<?> object)
-
getDisplayNameAndName
public static String getDisplayNameAndName(ObjectReferenceType ref)
-
getDisplayName
public static String getDisplayName(ObjectReferenceType ref)
-
getDisplayName
public static String getDisplayName(Referencable ref, boolean translate)
-
getDisplayName
public static String getDisplayName(PrismObject object)
-
getDisplayName
public static String getDisplayName(PrismObject object, boolean translate)
-
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
public static String getOrigStringFromPoly(PolyString str)
-
getOrigStringFromPoly
public static String getOrigStringFromPoly(PolyStringType str)
-
getOrigStringFromPolyOrEmpty
public static String getOrigStringFromPolyOrEmpty(PolyStringType str)
-
getValue
public static <T> T getValue(PrismContainerValue object, QName propertyName, Class<T> type)
-
getContainerValue
public static <T> T getContainerValue(PrismContainerValue object, QName containerName, Class<T> type)
-
getValue
public static <T> T getValue(PrismContainer object, QName propertyName, Class<T> type)
-
encryptCredentials
public static void encryptCredentials(ObjectDelta delta, boolean encrypt, MidPointApplication app)
-
encryptCredentials
public static void encryptCredentials(ObjectDelta delta, boolean encrypt, ModelServiceLocator serviceLocator)
-
encryptProtectedString
public static void encryptProtectedString(ProtectedStringType string, boolean encrypt, ModelServiceLocator serviceLocator)
-
encryptCredentials
public static void encryptCredentials(PrismObject object, boolean encrypt, MidPointApplication app)
-
encryptCredentials
public static void encryptCredentials(PrismObject object, boolean encrypt, ModelServiceLocator serviceLocator)
-
encryptProtectedString
public static void encryptProtectedString(ProtectedStringType string, boolean encrypt, MidPointApplication app)
-
getSelectedData
public static <T extends Selectable> List<T> getSelectedData(Table table)
-
clearProviderCache
public static void clearProviderCache(org.apache.wicket.markup.repeater.data.IDataProvider provider)
-
showResultInPage
public static boolean showResultInPage(OperationResult result)
-
formatDate
public static String formatDate(XMLGregorianCalendar calendar)
-
getCurrentLocale
public static Locale getCurrentLocale()
-
getLocalizedDate
public static String getLocalizedDate(XMLGregorianCalendar date, String style)
-
getShortDateTimeFormattedValue
public static String getShortDateTimeFormattedValue(XMLGregorianCalendar date, PageBase pageBase)
-
getShortDateTimeFormattedValue
public static String getShortDateTimeFormattedValue(Date date, PageBase pageBase)
-
getLongDateTimeFormattedValue
public static String getLongDateTimeFormattedValue(XMLGregorianCalendar date, PageBase pageBase)
-
getLongDateTimeFormattedValue
public static String getLongDateTimeFormattedValue(Date date, PageBase pageBase)
-
isActivationEnabled
public static Boolean isActivationEnabled(PrismObject object, ItemPath propertyName)
-
isSuccessOrHandledError
public static boolean isSuccessOrHandledError(OperationResult result)
-
isSuccessOrHandledError
public static boolean isSuccessOrHandledError(OperationResultType resultType)
-
isSuccessOrHandledErrorOrWarning
public static boolean isSuccessOrHandledErrorOrWarning(OperationResult result)
-
createDefaultIcon
public static <T extends ObjectType> String createDefaultIcon(PrismObject<T> object)
-
createDefaultColoredIcon
public static <T extends ObjectType> String createDefaultColoredIcon(QName objectType)
-
createDefaultBlackIcon
public static <T extends ObjectType> String createDefaultBlackIcon(QName objectType)
-
getBoxCssClasses
public static <T extends ObjectType> String getBoxCssClasses(QName objectType)
-
getBoxThinCssClasses
public static <T extends ObjectType> String getBoxThinCssClasses(QName objectType)
-
isOfKind
public static boolean isOfKind(QName relation, RelationKindType kind)
-
getRelationRegistry
public static RelationRegistry getRelationRegistry()
-
isManagerRelation
public static boolean isManagerRelation(QName relation)
-
isDefaultRelation
public static boolean isDefaultRelation(QName relation)
-
getRelationLabelValue
public static String getRelationLabelValue(PrismContainerValueWrapper<AssignmentType> assignmentWrapper, PageBase pageBase)
-
getRelationLabelValue
public static String getRelationLabelValue(AssignmentType assignment, PageBase pageBase)
-
getRelationLabelValue
public static String getRelationLabelValue(PrismReferenceValue referenceValue, PageBase pageBase)
-
getDefaultRelation
public static QName getDefaultRelation()
-
getDefaultRelationOrFail
@NotNull public static @NotNull QName getDefaultRelationOrFail()
-
getDefaultRelationFor
@Nullable public static @Nullable QName getDefaultRelationFor(RelationKindType kind)
-
getDefaultRelationOrFail
@NotNull public static @NotNull QName getDefaultRelationOrFail(RelationKindType kind)
-
getRelationHeaderLabelKey
@NotNull public static @NotNull String getRelationHeaderLabelKey(QName relation)
-
getRelationHeaderLabelKeyIfKnown
@Nullable public static @Nullable String getRelationHeaderLabelKeyIfKnown(QName relation)
-
createUserIcon
public static String createUserIcon(PrismObject<UserType> object)
-
createRoleIcon
public static String createRoleIcon(PrismObject<RoleType> object)
-
createOrgIcon
public static String createOrgIcon()
-
createServiceIcon
public static String createServiceIcon()
-
getIconEnabledDisabled
public static <F extends FocusType> String getIconEnabledDisabled(PrismObject<F> object)
-
createResourceIcon
public static String createResourceIcon(PrismObject<ResourceType> object)
-
isTemplateCategory
public static boolean isTemplateCategory(@NotNull @NotNull ResourceType resource)
-
createTaskIcon
public static String createTaskIcon()
-
createShadowIcon
public static String createShadowIcon(PrismObject<ShadowType> object)
-
createShadowIcon
public static String createShadowIcon(@Nullable @Nullable ShadowKindType kind)
-
createObjectColletionIcon
public static String createObjectColletionIcon()
-
evaluateExpressionsInFilter
public static ObjectFilter evaluateExpressionsInFilter(ObjectFilter objectFilter, VariablesMap variables, OperationResult result, PageBase pageBase)
-
evaluateExpressionsInFilter
public static ObjectFilter evaluateExpressionsInFilter(ObjectFilter objectFilter, OperationResult result, PageBase pageBase)
-
createReportIcon
public static String createReportIcon()
-
initNewObjectWithReference
public static <AHT extends AssignmentHolderType> void initNewObjectWithReference(PageBase pageBase, QName type, List<ObjectReferenceType> newReferences) throws SchemaException
- Throws:
SchemaException
-
initNewObjectWithReference
public static <AHT extends AssignmentHolderType> void initNewObjectWithReference(PageBase pageBase, AHT assignmentHolder, List<ObjectReferenceType> newReferences) throws SchemaException
- Throws:
SchemaException
-
createErrorIcon
public static String createErrorIcon(OperationResult result)
-
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
public static void reviveObject(Object object, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
getPrismContext
public static PrismContext getPrismContext(org.apache.wicket.Component component)
-
createHumanReadableByteCount
public static String createHumanReadableByteCount(long bytes)
-
setCurrentPage
public static void setCurrentPage(Table table, ObjectPaging paging)
-
getPageBase
public static PageBase getPageBase(org.apache.wicket.Component component)
-
getPage
public static <P extends PageAdminLTE> P getPage(org.apache.wicket.Component component, Class<P> pageClass)
-
debugHandler
public static String debugHandler(org.apache.wicket.request.IRequestHandler handler)
-
dispatchToObjectDetailsPage
public static void dispatchToObjectDetailsPage(PrismReferenceValue objectRef, org.apache.wicket.Component component, boolean failIfUnsupported)
-
dispatchToObjectDetailsPage
public static void dispatchToObjectDetailsPage(Referencable objectRef, org.apache.wicket.Component component, boolean failIfUnsupported)
-
dispatchToObjectDetailsPage
public static void dispatchToObjectDetailsPage(PrismObject obj, org.apache.wicket.Component component)
-
isNewDesignEnabled
public static boolean isNewDesignEnabled()
-
dispatchToObjectDetailsPage
public static void dispatchToObjectDetailsPage(PrismObject obj, boolean isNewObject, org.apache.wicket.Component component)
-
dispatchToObjectDetailsPage
public static void dispatchToObjectDetailsPage(Class<? extends ObjectType> objectClass, String oid, org.apache.wicket.Component component, boolean failIfUnsupported)
-
dispatchToListPage
public static void dispatchToListPage(Class<? extends Containerable> objectClass, String collectionViewId, org.apache.wicket.Component component, boolean failIfUnsupported)
-
redirectFromDashboardWidget
public static void redirectFromDashboardWidget(GuiActionType action, PageBase pageBase, org.apache.wicket.Component component)
-
isRedirectionTargetNotEmpty
public static boolean isRedirectionTargetNotEmpty(GuiActionType action)
-
hasDetailsPage
public static boolean hasDetailsPage(PrismObject<?> object)
-
hasDetailsPage
public static boolean hasDetailsPage(Class<?> clazz)
-
getObjectDetailsPage
public static Class<? extends PageBase> getObjectDetailsPage(Class<? extends ObjectType> type)
-
getObjectTypeForDetailsPage
public static Class<? extends ObjectType> getObjectTypeForDetailsPage(PageBase pageType)
-
getPanelIdentifierFromParams
public static String getPanelIdentifierFromParams(org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
-
getNewlyCreatedObjectPage
public static Class<? extends PageBase> getNewlyCreatedObjectPage(Class<? extends ObjectType> type)
-
getObjectListPage
public static Class<? extends PageBase> getObjectListPage(Class<? extends ObjectType> type)
-
getPageHistoryDetailsPage
public static Class<? extends PageBase> getPageHistoryDetailsPage(Class<?> page)
-
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
public static org.apache.wicket.Component createHelp(String id)
-
visibleIfFalse
public static org.apache.wicket.behavior.Behavior visibleIfFalse(NonEmptyModel<Boolean> model)
-
enabledIfFalse
public static org.apache.wicket.behavior.Behavior enabledIfFalse(NonEmptyModel<Boolean> model)
-
getStringParameter
public static String getStringParameter(org.apache.wicket.request.mapper.parameter.PageParameters params, String key)
-
getIntegerParameter
public static Integer getIntegerParameter(org.apache.wicket.request.mapper.parameter.PageParameters params, String key)
-
getElementVisibility
public static boolean getElementVisibility(UserInterfaceElementVisibilityType visibilityType)
-
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
public static PolyStringType getCollectionLabel(DisplayType viewDisplayType)
Returns name of the collection suitable to be displayed in the menu or other labels. E.g. "All tasks", "Active employees".
-
getCollectionLabel
@Deprecated public static PolyStringType getCollectionLabel(DisplayType viewDisplayType, CollectionRefSpecificationType collectionRefSpec, ObjectType collectionRefTarget)
Deprecated.Returns name of the collection suitable to be displayed in the menu or other labels. E.g. "All tasks", "Active employees". DEPRECATED. Use getCollectionLabel(DisplayType displayType) instead
-
checkShadowActivationAndPasswordVisibility
public static ItemVisibility checkShadowActivationAndPasswordVisibility(ItemWrapper<?,?> itemWrapper, ShadowType shadowType)
-
isActivationSupported
public static boolean isActivationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)
-
isPasswordSupported
public static boolean isPasswordSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)
-
isAssociationSupported
public static boolean isAssociationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)
-
toggleResourceMaintenance
public static void toggleResourceMaintenance(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)
-
switchResourceMaintenance
public static void switchResourceMaintenance(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, AdministrativeAvailabilityStatusType mode)
-
switchObjectMode
public static void switchObjectMode(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, String lifecycleState)
-
refreshResourceSchema
public static void refreshResourceSchema(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)
-
partialConfigurationTest
public static void partialConfigurationTest(@NotNull @NotNull PrismObject<ResourceType> resource, PageBase pageBase, Task task, OperationResult result)
-
getNativeCapabilities
public static CapabilityCollectionType getNativeCapabilities(ResourceType resource, PageBase pageBase)
-
getCategoryRelationChoices
public static List<QName> getCategoryRelationChoices(AreaCategoryType category, List<RelationDefinitionType> defList)
-
getCategoryRelationChoices
public static List<QName> getCategoryRelationChoices(AreaCategoryType category, ModelServiceLocator pageBase)
-
getAllRelations
public static List<QName> getAllRelations(ModelServiceLocator pageBase)
-
getRelationDefinitions
@NotNull public static @NotNull List<RelationDefinitionType> getRelationDefinitions(ModelServiceLocator pageBase)
-
getRelationDefinition
public static RelationDefinitionType getRelationDefinition(QName relation)
-
prepareAutoCompleteList
public static List<String> prepareAutoCompleteList(LookupTableType lookupTable, String input)
-
createTriStateCombo
public static org.apache.wicket.markup.html.form.DropDownChoice<Boolean> createTriStateCombo(String id, org.apache.wicket.model.IModel<Boolean> model)
-
isAllNulls
public static boolean isAllNulls(Iterable<?> array)
-
createAssociationShadowRefFilter
public static ObjectFilter createAssociationShadowRefFilter(ResourceAssociationDefinition resourceAssociationDefinition, PrismContext prismContext, String resourceOid)
-
createMenuItemsFromActions
@NotNull public static @NotNull List<InlineMenuItem> createMenuItemsFromActions(@NotNull @NotNull List<GuiActionType> actions, String operation, PageBase pageBase, @NotNull @NotNull Supplier<Collection<? extends ObjectType>> selectedObjectsSupplier)
-
getStaticallyProvidedRelationRegistry
public static RelationRegistry getStaticallyProvidedRelationRegistry()
-
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:
-
loadResourceObjectClassValues
public static Collection<QName> loadResourceObjectClassValues(ResourceType resource, PageBase pageBase)
-
getRefinedAssociationDefinition
public static List<ResourceAssociationDefinition> getRefinedAssociationDefinition(ConstructionType construction, PageBase pageBase)
-
getRefinedAssociationDefinition
public static List<ResourceAssociationDefinition> getRefinedAssociationDefinition(@NotNull @NotNull ResourceObjectDefinition oc)
-
getResourceObjectDefinition
public static ResourceObjectDefinition getResourceObjectDefinition(ConstructionType construction, PageBase pageBase) throws CommonException
- Throws:
CommonException
-
getRefinedAssociationDefinition
public static List<ResourceAssociationDefinition> getRefinedAssociationDefinition(ResourceType resource, ShadowKindType kind, String intent)
-
getAssociationDisplayName
public static String getAssociationDisplayName(ResourceAssociationDefinition assocDef)
-
getAssociationExpression
@Deprecated public static ExpressionType getAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, PageBase pageBase)
Deprecated.
-
getAssociationExpression
@Deprecated public static ExpressionType getAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, boolean createIfNotExist, PrismContext prismContext, PageBase pageBase)
Deprecated.
-
getConstructionResource
public static PrismObject<ResourceType> getConstructionResource(ConstructionType construction, String operation, PageBase pageBase)
-
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)
-
getIconForLifecycleState
public static <O extends ObjectType> IconType getIconForLifecycleState(O obj)
-
getIconForActivationStatus
public static <O extends ObjectType> IconType getIconForActivationStatus(O obj)
-
getAssignmentRelationIconBuilder
@Contract("_,_,_,null -> null") public static CompositedIconBuilder getAssignmentRelationIconBuilder(PageBase pageBase, AssignmentObjectRelation relationSpec, IconType relationIcon, IconType actionButtonIcon)
-
getIconUrlModel
public static org.apache.wicket.model.IModel<String> getIconUrlModel(IconType icon)
-
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)
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
public static <T> List<T> sortDropDownChoices(org.apache.wicket.model.IModel<? extends List<? extends T>> choicesModel, org.apache.wicket.markup.html.form.IChoiceRenderer<T> renderer)
-
getRelationChoicesRenderer
public static org.apache.wicket.markup.html.form.IChoiceRenderer<QName> getRelationChoicesRenderer()
-
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)
-
caseOutcomeUriToIcon
public static OperationResultStatusPresentationProperties caseOutcomeUriToIcon(String outcome)
-
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)
-
getResourceLabelModel
public static org.apache.wicket.model.IModel<String> getResourceLabelModel(ShadowType shadow, PageBase pageBase)
-
getResourceAttributesLabelModel
public static org.apache.wicket.model.IModel<String> getResourceAttributesLabelModel(ShadowType shadow, PageBase pageBase)
-
getPendingOperationsLabels
public static String getPendingOperationsLabels(ShadowType shadow, BasePanel panel)
-
getPendingOperationLabel
public static String getPendingOperationLabel(PendingOperationType realValue, BasePanel panel)
-
getObjectListPageStorageKey
public static String getObjectListPageStorageKey(String additionalKeyValue)
-
getObjectFromAddDeltaForCase
public static AssignmentHolderType getObjectFromAddDeltaForCase(CaseType aCase)
-
isResourceRelatedTask
public static boolean isResourceRelatedTask(TaskType task)
-
xgc2long
public static Long xgc2long(XMLGregorianCalendar gc)
-
getIntentsForKind
public static Collection<String> getIntentsForKind(PrismObject<ResourceType> resource, ShadowKindType kind)
-
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
public static boolean isArchetypeAssignment(AssignmentType assignmentType)
-
isDelegationAssignment
public static boolean isDelegationAssignment(AssignmentType assignmentType)
-
hasArchetypeAssignment
public static <AH extends AssignmentHolderType> boolean hasArchetypeAssignment(AH assignmentHolder, String archetypeOid)
-
getCollator
public static Collator getCollator()
-
createCreateReportIcon
public static CompositedIcon 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 <F extends FocusType> 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)
-
filterNonDeadProjections
public static String filterNonDeadProjections(List<ShadowWrapper> projectionWrappers)
-
countLinkFroNonDeadShadows
public static String countLinkFroNonDeadShadows(Collection<ObjectReferenceType> refs)
-
countLinkForNonDeadShadows
public static int countLinkForNonDeadShadows(Collection<ObjectReferenceType> refs)
-
countLinkForDeadShadows
public static int countLinkForDeadShadows(Collection<ObjectReferenceType> refs)
-
getAllowedValues
public static List<DisplayableValue<?>> getAllowedValues(SearchFilterParameterType parameter, ModelServiceLocator modelServiceLocator)
-
getAllowedValues
public static List<DisplayableValue<?>> getAllowedValues(ExpressionType expression, ModelServiceLocator modelServiceLocator)
-
getCollectionNameParameterValueAsString
public static String getCollectionNameParameterValueAsString(PageBase pageBase)
-
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
public static boolean isImportReport(ReportType report)
-
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
public static CompiledGuiProfile getCompiledGuiProfile(org.apache.wicket.Page page)
-
getCompiledGuiProfile
public static CompiledGuiProfile getCompiledGuiProfile()
-
createJpegPhotoResource
public static <T extends FocusType> org.apache.wicket.request.resource.IResource createJpegPhotoResource(PrismObject<T> object)
-
createJpegPhotoResource
public static org.apache.wicket.request.resource.IResource createJpegPhotoResource(FocusType focus)
-
getMidPointSkin
public static AdminLTESkin 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)
-
translateMessage
@Deprecated public static String translateMessage(LocalizableMessage msg)
Deprecated.SeeLocalizationUtil
-
getCompiledObjectCollectionView
public static CompiledObjectCollectionView getCompiledObjectCollectionView(GuiObjectListViewType listViewType, ContainerPanelConfigurationType config, PageBase pageBase)
-
getPath
public static ItemPath getPath(GuiObjectColumnType column)
-
hasPopupableParent
public static boolean hasPopupableParent(@NotNull @NotNull org.apache.wicket.Component component)
-
isEnabledExperimentalFeatures
public static boolean isEnabledExperimentalFeatures()
-
isDarkModeEnabled
public static boolean isDarkModeEnabled()
-
-