Class WebPrismUtil
java.lang.Object
com.evolveum.midpoint.gui.api.util.WebPrismUtil
- Author:
- katka
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Containerable>
voidcleanupEmptyContainers
(PrismContainer<C> container) static <C extends Containerable>
PrismContainerValue<C>static void
collectWrappers
(ItemWrapper iw, List<ItemWrapper> iws) static ProvenanceAcquisitionType
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 <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 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<ResourceAttributeDefinition>
searchAttributeDefinitions
(ResourceSchema schema, ResourceObjectTypeDefinitionType objectType) static void
sortContainers
(List<PrismContainerWrapper<? extends Containerable>> containers)
-
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) -
getNewYieldValue
-
createAcquition
-
isValueFromResourceTemplate
-
hasValueTemplateMetadata
-
searchAttributeDefinitions
public static List<ResourceAttributeDefinition> 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
-