Class WebPrismUtil
java.lang.Object
com.evolveum.midpoint.gui.api.util.WebPrismUtil
- Author:
- katka
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Containerable>
voidcleanupEmptyContainers
(PrismContainer<C> container) static <C extends Containerable>
PrismContainerValue<C>static void
cleanupValueMetadata
(PrismValue value) static void
collectWrappers
(ItemWrapper iw, List<ItemWrapper> iws) static QName
convertStringWithPrefixToQName
(String object) static ProvenanceAcquisitionType
static String
createMappingTypeDescription
(MappingType mapping) static String
createMappingTypeDescription
(MappingType mapping, boolean showExpression) static String
createMappingTypeStrengthHelp
(MappingType mapping) static <IW extends ItemWrapper,
PV extends PrismValue, VW extends PrismValueWrapper>
VWcreateNewValueWrapper
(IW itemWrapper, PV newValue, PageBase pageBase, org.apache.wicket.ajax.AjaxRequestTarget target) static <IW extends ItemWrapper,
PV extends PrismValue, VW extends PrismValueWrapper>
VWcreateNewValueWrapper
(IW itemWrapper, PV newValue, ModelServiceLocator modelServiceLocator) static <IW extends ItemWrapper,
PV extends PrismValue, VW extends PrismValueWrapper>
VWcreateNewValueWrapper
(IW itemWrapper, PV newValue, ModelServiceLocator modelServiceLocator, WrapperContext wrapperContext) static <IW extends ItemWrapper,
PV extends PrismValue, VW extends PrismValueWrapper>
VWcreateNewValueWrapper
(IW itemWrapper, PV newValue, ValueStatus status, ModelServiceLocator modelServiceLocator) static <IW extends ItemWrapper,
PV extends PrismValue, VW extends PrismValueWrapper>
VWcreateNewValueWrapper
(IW itemWrapper, PV newValue, ValueStatus status, ModelServiceLocator modelServiceLocator, WrapperContext context) static ItemPanel
createVerticalPropertyPanel
(String id, org.apache.wicket.model.IModel<? extends ItemWrapper<?, ?>> model, ItemPanelSettings origSettings) static PrismContainerValue
findContainerValueParent
(@NotNull Item child, Class<? extends Containerable> clazz) static PrismContainerValue
findContainerValueParent
(@NotNull PrismContainerValue child, Class<? extends Containerable> clazz) static <IW extends ItemWrapper>
IWfindItemWrapper
(ItemWrapper<?, ?> child, ItemPath absoluthPathToFind, Class<IW> wrapperClass) static <T> PrismPropertyWrapper<T>
findPropertyWrapper
(ItemWrapper<?, ?> child, ItemPath pathToFind) static <R extends Referencable>
PrismReferenceWrapper<R>findReferenceWrapper
(ItemWrapper<?, ?> child, ItemPath pathToFind) static <T> PrismPropertyValue<T>
findSinglePropertyValue
(ItemWrapper<?, ?> child, ItemPath pathToFind) static <R extends Referencable>
PrismReferenceValuefindSingleReferenceValue
(ItemWrapper<?, ?> child, ItemPath pathToFind) static <ID extends ItemDefinition<I>,
I extends Item<?, ?>>
StringgetHelpText
(ID def, Class<?> containerClass) static String
getLocalizedDisplayName
(Item item) static PrismContainerValue<ValueMetadataType>
static int
getNumberOfSameAssociationNames
(PrismContainerValueWrapper containerValue, QName value) static int
getNumberOfSameMappingNames
(PrismContainerValueWrapper containerValue, String value) static boolean
static <C extends Containerable>
booleanisEmptyContainer
(PrismContainer<C> container) static <C extends Containerable>
booleanisUseAsEmptyValue
(PrismContainerValue<C> valueAfter) static boolean
isValueFromResourceTemplate
(PrismValue valueFromDelta, PrismContainer parent) static List<ShadowAttributeDefinition>
searchAttributeDefinitions
(ResourceSchema schema, ResourceObjectTypeDefinitionType objectType) static void
sortContainers
(List<PrismContainerWrapper<? extends Containerable>> containers)
-
Field Details
-
PRISM_SCHEMA
-
-
Constructor Details
-
WebPrismUtil
public WebPrismUtil()
-
-
Method Details
-
getHelpText
public static <ID extends ItemDefinition<I>,I extends Item<?, String getHelpText?>> (ID def, Class<?> containerClass) -
createNewValueWrapper
public static <IW extends ItemWrapper,PV extends PrismValue, VW createNewValueWrapperVW extends PrismValueWrapper> (IW itemWrapper, PV newValue, PageBase pageBase, org.apache.wicket.ajax.AjaxRequestTarget target) -
createNewValueWrapper
public static <IW extends ItemWrapper,PV extends PrismValue, VW createNewValueWrapperVW extends PrismValueWrapper> (IW itemWrapper, PV newValue, ModelServiceLocator modelServiceLocator) throws SchemaException - Throws:
SchemaException
-
createNewValueWrapper
public static <IW extends ItemWrapper,PV extends PrismValue, VW createNewValueWrapperVW extends PrismValueWrapper> (IW itemWrapper, PV newValue, ModelServiceLocator modelServiceLocator, WrapperContext wrapperContext) throws SchemaException - Throws:
SchemaException
-
createNewValueWrapper
public static <IW extends ItemWrapper,PV extends PrismValue, VW createNewValueWrapperVW extends PrismValueWrapper> (IW itemWrapper, PV newValue, ValueStatus status, ModelServiceLocator modelServiceLocator) throws SchemaException - Throws:
SchemaException
-
createNewValueWrapper
public static <IW extends ItemWrapper,PV extends PrismValue, VW createNewValueWrapperVW extends PrismValueWrapper> (IW itemWrapper, PV newValue, ValueStatus status, ModelServiceLocator modelServiceLocator, WrapperContext context) throws SchemaException - Throws:
SchemaException
-
findItemWrapper
public static <IW extends ItemWrapper> IW findItemWrapper(ItemWrapper<?, ?> child, ItemPath absoluthPathToFind, Class<IW> wrapperClass) -
findReferenceWrapper
public static <R extends Referencable> PrismReferenceWrapper<R> findReferenceWrapper(ItemWrapper<?, ?> child, ItemPath pathToFind) -
findPropertyWrapper
public static <T> PrismPropertyWrapper<T> findPropertyWrapper(ItemWrapper<?, ?> child, ItemPath pathToFind) -
findSingleReferenceValue
public static <R extends Referencable> PrismReferenceValue findSingleReferenceValue(ItemWrapper<?, ?> child, ItemPath pathToFind) -
findSinglePropertyValue
public static <T> PrismPropertyValue<T> findSinglePropertyValue(ItemWrapper<?, ?> child, ItemPath pathToFind) -
cleanupEmptyContainers
-
isEmptyContainer
-
isUseAsEmptyValue
public static <C extends Containerable> boolean isUseAsEmptyValue(PrismContainerValue<C> valueAfter) -
cleanupEmptyContainerValue
public static <C extends Containerable> PrismContainerValue<C> cleanupEmptyContainerValue(PrismContainerValue<C> value) -
cleanupValueMetadata
-
getNewYieldValue
-
createAcquition
-
isValueFromResourceTemplate
-
hasValueTemplateMetadata
-
searchAttributeDefinitions
public static List<ShadowAttributeDefinition> searchAttributeDefinitions(ResourceSchema schema, ResourceObjectTypeDefinitionType objectType) -
createVerticalPropertyPanel
public static ItemPanel createVerticalPropertyPanel(String id, org.apache.wicket.model.IModel<? extends ItemWrapper<?, ?>> model, ItemPanelSettings origSettings) -
sortContainers
-
getLocalizedDisplayName
-
collectWrappers
-
findContainerValueParent
public static PrismContainerValue findContainerValueParent(@NotNull @NotNull PrismContainerValue child, Class<? extends Containerable> clazz) -
findContainerValueParent
public static PrismContainerValue findContainerValueParent(@NotNull @NotNull Item child, Class<? extends Containerable> clazz) -
createMappingTypeDescription
-
createMappingTypeDescription
-
createMappingTypeStrengthHelp
-
convertStringWithPrefixToQName
-
getNumberOfSameMappingNames
public static int getNumberOfSameMappingNames(PrismContainerValueWrapper containerValue, String value) -
getNumberOfSameAssociationNames
public static int getNumberOfSameAssociationNames(PrismContainerValueWrapper containerValue, QName value)
-