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 class
WebComponentUtil.AssignmentOrder
-
Constructor Summary
Constructors Constructor Description WebComponentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
addAjaxOnUpdateBehavior(org.apache.wicket.markup.html.WebMarkupContainer container)
static void
addDisabledClassBehavior(org.apache.wicket.Component comp)
static <T extends AssignmentHolderType>
voidaddNewArchetype(PrismObjectWrapper<T> object, String archetypeOid, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)
static QName
anyClassToQName(PrismContext prismContext, Class<?> clazz)
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.static void
assumePowerOfAttorneyIfRequested(OperationResult result, PrismObject<UserType> powerDonor, PageBase pageBase)
static boolean
canResumeTask(TaskType task, PageBase pageBase)
static boolean
canRunNowTask(TaskType task, PageBase pageBase)
static boolean
canSuspendTask(TaskType task, PageBase pageBase)
static OperationResultStatusPresentationProperties
caseOutcomeUriToIcon(String outcome)
static ItemVisibility
checkShadowActivationAndPasswordVisibility(ItemWrapper<?,?> itemWrapper, ShadowType shadowType)
static void
claimWorkItemActionPerformed(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 void
clearProviderCache(org.apache.wicket.markup.repeater.data.IDataProvider provider)
static DisplayType
combineDisplay(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 int
countLinkForDeadShadows(Collection<ObjectReferenceType> refs)
static int
countLinkForNonDeadShadows(Collection<ObjectReferenceType> refs)
static String
countLinkFroNonDeadShadows(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 CompositedIcon
createAccountIcon(ShadowType shadow, PageBase pageBase, boolean isColumn)
static List<ObjectTypes>
createAssignableTypesList()
static List<QName>
createAssignmentHolderTypeQnamesList()
static List<ObjectTypes>
createAssignmentHolderTypesList()
static ObjectFilter
createAssociationShadowRefFilter(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 CompositedIcon
createCreateReportIcon()
static <T extends ObjectType>
StringcreateDefaultBlackIcon(QName objectType)
static <T extends ObjectType>
StringcreateDefaultColoredIcon(QName objectType)
static <T extends ObjectType>
StringcreateDefaultIcon(PrismObject<T> object)
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)
static DropDownChoicePanel
createEnumPanel(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 String
createErrorIcon(OperationResult result)
static List<QName>
createFocusTypeList()
static List<QName>
createFocusTypeList(boolean includeAbstractType)
static org.apache.wicket.Component
createHelp(String id)
static String
createHumanReadableByteCount(long bytes)
static IconType
createIconType(String iconStyle)
static IconType
createIconType(String iconStyle, String color)
static <T extends FocusType>
org.apache.wicket.request.resource.IResourcecreateJpegPhotoResource(PrismObject<T> object)
static org.apache.wicket.request.resource.IResource
createJpegPhotoResource(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 String
createObjectColletionIcon()
static List<QName>
createObjectTypeList()
static List<ObjectTypes>
createObjectTypesList()
static String
createOrgIcon()
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 PolyStringType
createPolyFromOrigString(String str)
static PolyStringType
createPolyFromOrigString(String str, String key)
static <T extends Enum>
org.apache.wicket.model.IModel<List<T>>createReadonlyModelFromEnum(Class<T> type)
static String
createReportIcon()
static String
createResourceIcon(PrismObject<ResourceType> object)
static String
createRoleIcon(PrismObject<RoleType> object)
static String
createServiceIcon()
static String
createShadowIcon(@Nullable ShadowKindType kind)
static String
createShadowIcon(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 String
createTaskIcon()
static void
createToastForCreateObject(org.apache.wicket.ajax.AjaxRequestTarget target, Class<? extends ObjectType> type)
static void
createToastForCreateObject(org.apache.wicket.ajax.AjaxRequestTarget target, QName type)
static void
createToastForUpdateObject(org.apache.wicket.ajax.AjaxRequestTarget target, Class<? extends ObjectType> type)
static void
createToastForUpdateObject(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 String
createUserIcon(PrismObject<UserType> object)
static VisualizationDto
createVisualizationDto(CaseType caseObject, PageBase pageBase, String operation)
static VisualizationDto
createVisualizationDto(CaseWorkItemType caseWorkItem, PageBase pageBase, String operation)
static VisualizationDto
createVisualizationDtoForManualCase(CaseType caseObject, PageBase pageBase, String operation)
static String
debugHandler(org.apache.wicket.request.IRequestHandler handler)
static void
deleteSyncTokenPerformed(org.apache.wicket.ajax.AjaxRequestTarget target, ResourceType resourceType, PageBase pageBase)
static void
dispatchToListPage(Class<? extends Containerable> objectClass, String collectionViewId, org.apache.wicket.Component component, boolean failIfUnsupported)
static void
dispatchToObjectDetailsPage(PrismObject obj, boolean isNewObject, org.apache.wicket.Component component)
static void
dispatchToObjectDetailsPage(PrismObject obj, org.apache.wicket.Component component)
static void
dispatchToObjectDetailsPage(PrismReferenceValue objectRef, org.apache.wicket.Component component, boolean failIfUnsupported)
static void
dispatchToObjectDetailsPage(Referencable objectRef, org.apache.wicket.Component component, boolean failIfUnsupported)
static void
dispatchToObjectDetailsPage(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 void
dropPowerOfAttorneyIfRequested(OperationResult result, PrismObject<UserType> powerDonor, PageBase pageBase)
static org.apache.wicket.behavior.Behavior
enabledIfFalse(NonEmptyModel<Boolean> model)
static void
encryptCredentials(ObjectDelta delta, boolean encrypt, ModelServiceLocator serviceLocator)
static void
encryptCredentials(ObjectDelta delta, boolean encrypt, MidPointApplication app)
static void
encryptCredentials(PrismObject object, boolean encrypt, ModelServiceLocator serviceLocator)
static void
encryptCredentials(PrismObject object, boolean encrypt, MidPointApplication app)
static void
encryptProtectedString(ProtectedStringType string, boolean encrypt, ModelServiceLocator serviceLocator)
static void
encryptProtectedString(ProtectedStringType string, boolean encrypt, MidPointApplication app)
static ObjectFilter
evaluateExpressionsInFilter(ObjectFilter objectFilter, VariablesMap variables, OperationResult result, PageBase pageBase)
static ObjectFilter
evaluateExpressionsInFilter(ObjectFilter objectFilter, OperationResult result, PageBase pageBase)
static String
exceptionToString(String message, Exception e)
static String
filterNonDeadProjections(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 String
formatDate(String format, Date date)
static String
formatDate(Date date)
static String
formatDate(XMLGregorianCalendar calendar)
static String
formatDurationWordsForLocal(long durationMillis, boolean suppressLeadingZeroElements, boolean suppressTrailingZeroElements)
static String
formatDurationWordsForLocal(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 ObjectFilter
getAssignableRolesFilter(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase)
static ObjectFilter
getAssignableRolesFilter(PrismObject<? extends FocusType> focusObject, Class<? extends AbstractRoleType> type, QName relation, WebComponentUtil.AssignmentOrder assignmentOrder, OperationResult result, Task task, PageBase pageBase)
static CompositedIconBuilder
getAssignmentRelationIconBuilder(PageBase pageBase, AssignmentObjectRelation relationSpec, IconType relationIcon, IconType actionButtonIcon)
static String
getAssociationDisplayName(ResourceAssociationDefinition assocDef)
static ExpressionType
getAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, boolean createIfNotExist, PrismContext prismContext, PageBase pageBase)
Deprecated.static ExpressionType
getAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, PageBase pageBase)
Deprecated.static @Nullable String
getAuthorizationActionForTargetClass(Class targetClass)
static org.apache.wicket.behavior.Behavior
getBlurOnEnterKeyDownBehavior()
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 Collator
getCollator()
static PolyStringType
getCollectionLabel(DisplayType viewDisplayType)
Returns name of the collection suitable to be displayed in the menu or other labels.static PolyStringType
getCollectionLabel(DisplayType viewDisplayType, CollectionRefSpecificationType collectionRefSpec, ObjectType collectionRefTarget)
Deprecated.static org.apache.wicket.util.string.StringValue
getCollectionNameParameterValue(PageAdminLTE parentPage)
static String
getCollectionNameParameterValueAsString(PageBase pageBase)
static CompiledObjectCollectionView
getCollectionViewByObject(AssignmentHolderType assignmentHolder, PageBase pageBase)
static CompiledGuiProfile
getCompiledGuiProfile()
static CompiledGuiProfile
getCompiledGuiProfile(org.apache.wicket.Page page)
static CompiledObjectCollectionView
getCompiledObjectCollectionView(GuiObjectListViewType listViewType, ContainerPanelConfigurationType config, PageBase pageBase)
static PrismObject<ResourceType>
getConstructionResource(ConstructionType construction, String operation, PageBase pageBase)
static ContainerPanelConfigurationType
getContainerConfiguration(GuiObjectDetailsPageType pageConfig, String panelType)
static <T> T
getContainerValue(PrismContainerValue object, QName containerName, Class<T> type)
static Locale
getCurrentLocale()
static CompiledObjectCollectionView
getDefaultGuiObjectListType(PageBase pageBase)
Deprecated.static QName
getDefaultRelation()
static @Nullable QName
getDefaultRelationFor(RelationKindType kind)
static @NotNull QName
getDefaultRelationOrFail()
static @NotNull QName
getDefaultRelationOrFail(RelationKindType kind)
static String
getDisplayName(PrismObject object)
static String
getDisplayName(PrismObject object, boolean translate)
static String
getDisplayName(PrismObject object, boolean translate, LocalizationService localizationService)
static String
getDisplayName(Referencable ref, boolean translate)
static String
getDisplayName(ObjectReferenceType ref)
static String
getDisplayNameAndName(PrismObject<?> object)
static String
getDisplayNameAndName(ObjectReferenceType ref)
static String
getDisplayNameOrName(PrismObject object)
static String
getDisplayNameOrName(PrismObject object, boolean translate)
static String
getDisplayNameOrName(PrismObject object, boolean translate, LocalizationService localizationService)
static String
getDisplayNameOrName(Referencable ref)
static String
getDisplayNameOrName(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 String
getEffectiveName(ObjectReferenceType ref, QName propertyName, PageBase pageBase, String operation)
static String
getEffectiveName(ObjectType object, QName propertyName)
static String
getEffectiveName(ObjectType object, QName propertyName, boolean translate)
static boolean
getElementVisibility(UserInterfaceElementVisibilityType visibilityType)
static boolean
getElementVisibility(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 Integer
getIntegerParameter(org.apache.wicket.request.mapper.parameter.PageParameters params, String key)
static Collection<String>
getIntentsForKind(PrismObject<ResourceType> resource, ShadowKindType kind)
static String
getItemDefinitionDisplayName(ItemDefinition def)
static String
getItemDefinitionDisplayNameOrName(ItemDefinition def)
static <O extends ObjectType>
StringgetLabelForType(Class<O> type, boolean startsWithUppercase)
static <F extends FocusType>
LocalegetLocale()
static Locale
getLocaleFromString(String localeString)
static String
getLocalizedDate(Date date, String style)
static String
getLocalizedDate(XMLGregorianCalendar date, String style)
static String
getLocalizedDatePattern(String style)
static String
getLongDateTimeFormat(PageBase pageBase)
static String
getLongDateTimeFormattedValue(Date date, PageBase pageBase)
static String
getLongDateTimeFormattedValue(XMLGregorianCalendar date, PageBase pageBase)
static List<QName>
getMatchingRuleList()
static String
getMidpointCustomSystemName(PageAdminLTE pageBase, String defaultSystemNameKey)
static AdminLTESkin
getMidPointSkin()
static String
getName(PrismObject object)
static String
getName(PrismObject object, boolean translate)
static String
getName(PrismObject object, boolean translate, LocalizationService localizationService)
static String
getName(Referencable ref, boolean translate)
static String
getName(ObjectReferenceType ref)
static <O extends ObjectType>
StringgetName(ObjectReferenceType ref, PageBase pageBase, String operation)
static String
getName(ObjectType object)
static String
getName(ObjectType object, boolean translate)
static CapabilityCollectionType
getNativeCapabilities(ResourceType resource, PageBase pageBase)
static Class<? extends PageBase>
getNewlyCreatedObjectPage(Class<? extends ObjectType> type)
static Class<? extends PageBase>
getObjectDetailsPage(Class<? extends ObjectType> type)
static AssignmentHolderType
getObjectFromAddDeltaForCase(CaseType aCase)
static Class<? extends PageBase>
getObjectListPage(Class<? extends ObjectType> type)
static String
getObjectListPageStorageKey(String additionalKeyValue)
static Class<? extends ObjectType>
getObjectTypeForDetailsPage(PageBase pageType)
static String
getOrigStringFromPoly(PolyString str)
static String
getOrigStringFromPoly(PolyStringType str)
static String
getOrigStringFromPolyOrEmpty(PolyStringType str)
static <P extends PageAdminLTE>
PgetPage(org.apache.wicket.Component component, Class<P> pageClass)
static PageBase
getPageBase(org.apache.wicket.Component component)
static Class<? extends PageBase>
getPageHistoryDetailsPage(Class<?> page)
static String
getPanelIdentifierFromParams(org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
static CredentialsPolicyType
getPasswordCredentialsPolicy(PrismObject<? extends FocusType> focus, PageAdminLTE parentPage, Task task)
static <F extends FocusType>
ValuePolicyTypegetPasswordValuePolicy(CredentialsPolicyType credentialsPolicy, String operation, PageAdminLTE parentPage)
static ItemPath
getPath(GuiObjectColumnType column)
static String
getPendingOperationLabel(PendingOperationType realValue, BasePanel panel)
static String
getPendingOperationsLabels(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 PrismContext
getPrismContext(org.apache.wicket.Component component)
static DateValidator
getRangeValidator(org.apache.wicket.markup.html.form.Form<?> form, ItemPath path)
static String
getReferencedObjectDisplayNameAndName(Referencable ref, boolean loadObject, PageBase pageBase)
static String
getReferencedObjectDisplayNamesAndNames(Referencable ref, boolean showTypes)
static String
getReferencedObjectDisplayNamesAndNames(Referencable ref, boolean showTypes, boolean translate)
static String
getReferencedObjectDisplayNamesAndNames(List<ObjectReferenceType> refs, boolean showTypes)
static String
getReferencedObjectNames(List<ObjectReferenceType> refs, boolean showTypes)
static String
getReferencedObjectNames(List<ObjectReferenceType> refs, boolean showTypes, boolean translate)
static String
getReferenceObjectTextValue(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 RelationDefinitionType
getRelationDefinition(QName relation)
static @NotNull List<RelationDefinitionType>
getRelationDefinitions(ModelServiceLocator pageBase)
static @NotNull String
getRelationHeaderLabelKey(QName relation)
static @Nullable String
getRelationHeaderLabelKeyIfKnown(QName relation)
static String
getRelationLabelValue(PrismContainerValueWrapper<AssignmentType> assignmentWrapper, PageBase pageBase)
static String
getRelationLabelValue(PrismReferenceValue referenceValue, PageBase pageBase)
static String
getRelationLabelValue(AssignmentType assignment, PageBase pageBase)
static RelationRegistry
getRelationRegistry()
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 ResourceObjectDefinition
getResourceObjectDefinition(ConstructionType construction, PageBase pageBase)
static <T extends Selectable>
List<T>getSelectedData(Table table)
static ObjectFilter
getShadowTypeFilterForAssociation(ResourceObjectDefinition oc, ItemName association)
static ObjectFilter
getShadowTypeFilterForAssociation(ConstructionType construction, ItemName association, String operation, PageBase pageBase)
static ObjectFilter
getShadowTypeFilterForAssociation(ConstructionType construction, String operation, PageBase pageBase)
static String
getShortDateTimeFormat(PageBase pageBase)
static String
getShortDateTimeFormattedValue(Date date, PageBase pageBase)
static String
getShortDateTimeFormattedValue(XMLGregorianCalendar date, PageBase pageBase)
static String
getSimpleChannel(String chanelUri)
static RelationRegistry
getStaticallyProvidedRelationRegistry()
static String
getStringParameter(org.apache.wicket.request.mapper.parameter.PageParameters params, String key)
static org.apache.wicket.behavior.Behavior
getSubmitOnEnterKeyDownBehavior(String submitButtonAboutAttribute)
static <O extends ObjectType>
SummaryPanelSpecificationTypegetSummaryPanelSpecification(Class<O> type, CompiledGuiProfile compiledGuiProfile)
Deprecated.static String
getTaskProgressDescription(TaskInformation taskInformation, boolean longForm, PageBase pageBase)
static Long
getTimestampAsLong(XMLGregorianCalendar cal, boolean currentIfNull)
static String
getTranslatedPolyString(PolyString value)
Deprecated.SeeLocalizationUtil
static String
getTranslatedPolyString(PolyString value, LocalizationService localizationService)
Deprecated.SeeLocalizationUtil
static String
getTranslatedPolyString(PolyStringType value)
Deprecated.SeeLocalizationUtil
static String
getTypeLocalized(ObjectReferenceType ref)
static <T> T
getValue(PrismContainer object, QName propertyName, Class<T> type)
static <T> T
getValue(PrismContainerValue object, QName propertyName, Class<T> type)
static <AH extends AssignmentHolderType>
booleanhasAnyArchetypeAssignment(AH assignmentHolder)
static <AH extends AssignmentHolderType>
booleanhasArchetypeAssignment(AH assignmentHolder, String archetypeOid)
static boolean
hasDetailsPage(PrismObject<?> object)
static boolean
hasDetailsPage(Class<?> clazz)
static boolean
hasPopupableParent(@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 Boolean
isActivationEnabled(PrismObject object, ItemPath propertyName)
static boolean
isActivationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)
static boolean
isAllNulls(Iterable<?> array)
static boolean
isArchetypeAssignment(AssignmentType assignmentType)
static boolean
isAssociationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)
static boolean
isAuthorized(Class<? extends ObjectType> clazz)
static boolean
isAuthorized(String... action)
static boolean
isAuthorized(Collection<String> actions)
static boolean
isClosedTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state.static boolean
isDarkModeEnabled()
static boolean
isDefaultRelation(QName relation)
static boolean
isDelegationAssignment(AssignmentType assignmentType)
static boolean
isEnabledExperimentalFeatures()
static boolean
isImport(TaskType task)
static boolean
isImportReport(ReportType report)
static boolean
isItemVisible(List<ItemPath> visibleItems, ItemPath itemToBeFound)
static boolean
isLiveSync(TaskType task)
static boolean
isManagerRelation(QName relation)
static boolean
isNewDesignEnabled()
static boolean
isOfKind(QName relation, RelationKindType kind)
static boolean
isPasswordSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel)
static boolean
isRecomputation(TaskType task)
static boolean
isReconciliation(TaskType task)
static boolean
isRecurringTask(TaskType task)
static boolean
isRedirectionTargetNotEmpty(GuiActionType action)
static boolean
isRefreshEnabled(PageBase pageBase, QName type)
static boolean
isReport(TaskType task)
static boolean
isResourceRelatedTask(TaskType task)
static boolean
isRunnableTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state.static boolean
isRunningTask(TaskType task)
static boolean
isSuccessOrHandledError(OperationResult result)
static boolean
isSuccessOrHandledError(OperationResultType resultType)
static boolean
isSuccessOrHandledErrorOrWarning(OperationResult result)
static boolean
isSuspendedTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state.static boolean
isTemplateCategory(@NotNull ResourceType resource)
static boolean
isWaitingTask(TaskType task)
Checks user-visible state, not the technical (scheduling) state.static boolean
isWorkflowTask(TaskType task)
Deprecated.static ItemPath
joinPath(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 String
nl2br(String text)
static QName
normalizeRelation(QName relation)
static void
partialConfigurationTest(@NotNull PrismObject<ResourceType> resource, PageBase pageBase, Task task, OperationResult result)
static List<String>
prepareAutoCompleteList(LookupTableType lookupTable, String input)
static org.apache.wicket.behavior.Behavior
preventSubmitOnEnterKeyDownBehavior()
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 void
redirectFromDashboardWidget(GuiActionType action, PageBase pageBase, org.apache.wicket.Component component)
static void
refreshFeedbacks(org.apache.wicket.MarkupContainer component, org.apache.wicket.ajax.AjaxRequestTarget target)
static void
refreshResourceSchema(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)
static void
releaseWorkItemActionPerformed(CaseWorkItemType workItemToClaim, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)
static String
resolveLocalizableMessage(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 void
revive(LoadableModel<?> loadableModel, PrismContext prismContext)
static void
reviveObject(Object object, PrismContext prismContext)
static <T> T
runUnderPowerOfAttorneyIfNeeded(CheckedProducer<T> producer, PrismObject<? extends FocusType> powerDonor, PageBase pageBase, Task task, OperationResult result)
static Integer
safeLongToInteger(Long l)
static void
safeResultCleanup(OperationResult result, Trace logger)
static void
setCurrentPage(Table table, ObjectPaging paging)
static boolean
showResultInPage(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 void
switchObjectMode(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, String lifecycleState)
static void
switchResourceMaintenance(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, AdministrativeAvailabilityStatusType mode)
static void
toggleResourceMaintenance(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)
static String
translateMessage(LocalizableMessage msg)
Deprecated.SeeLocalizationUtil
static org.apache.wicket.behavior.Behavior
visibleIfFalse(NonEmptyModel<Boolean> model)
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)
static Long
xgc2long(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()
-
-