Class WebPrismUtil
java.lang.Object
com.evolveum.midpoint.gui.api.util.WebPrismUtil
- Author:
 - katka
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Containerable>
voidcleanupEmptyContainers(PrismContainer<C> container) static <C extends Containerable>
PrismContainerValue<C>static voidcleanupValueMetadata(PrismValue value) static voidcollectWrappers(ItemWrapper iw, List<ItemWrapper> iws) static QNameconvertStringWithPrefixToQName(String object) static ProvenanceAcquisitionTypestatic StringcreateMappingTypeDescription(MappingType mapping) static StringcreateMappingTypeDescription(MappingType mapping, boolean showExpression) static StringcreateMappingTypeStrengthHelp(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 ItemPanelcreateVerticalPropertyPanel(String id, org.apache.wicket.model.IModel<? extends ItemWrapper<?, ?>> model, ItemPanelSettings origSettings) static PrismContainerValuefindContainerValueParent(@NotNull Item child, Class<? extends Containerable> clazz) static PrismContainerValuefindContainerValueParent(@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 StringgetLocalizedDisplayName(Item item) static PrismContainerValue<ValueMetadataType>static intgetNumberOfSameAssociationNames(PrismContainerValueWrapper containerValue, QName value) static intgetNumberOfSameMappingNames(PrismContainerValueWrapper containerValue, String value) static booleanstatic <C extends Containerable>
booleanisEmptyContainer(PrismContainer<C> container) static <C extends Containerable>
booleanisUseAsEmptyValue(PrismContainerValue<C> valueAfter) static booleanisValueFromResourceTemplate(PrismValue valueFromDelta, PrismContainer parent) static List<ShadowAttributeDefinition>searchAttributeDefinitions(ResourceSchema schema, ResourceObjectTypeDefinitionType objectType) static voidsortContainers(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)  
 -