Class ItemWrapperFactoryImpl<IW extends ItemWrapper,PV extends PrismValue,I extends Item,VW extends PrismValueWrapper>
java.lang.Object
com.evolveum.midpoint.gui.impl.factory.wrapper.ItemWrapperFactoryImpl<IW,PV,I,VW>
- All Implemented Interfaces:
ItemWrapperFactory<IW,
,VW, PV> WrapperFactory
- Direct Known Subclasses:
PrismContainerWrapperFactoryImpl
,PrismPropertyWrapperFactoryImpl
,PrismReferenceWrapperFactory
,ResourceAttributeWrapperFactoryImpl
public abstract class ItemWrapperFactoryImpl<IW extends ItemWrapper,PV extends PrismValue,I extends Item,VW extends PrismValueWrapper>
extends Object
implements ItemWrapperFactory<IW,VW,PV>
- Author:
- katka
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canCreateValueWrapper
(PV pcv) protected boolean
canCreateWrapper
(ItemDefinition<?> def, ItemStatus status, WrapperContext context, boolean isEmptyValue) protected abstract PV
createNewValue
(I item) createValuesWrapper
(IW itemWrapper, I item, WrapperContext context) createWrapper
(PrismContainerValueWrapper<?> parent, ItemDefinition<?> def, WrapperContext context) createWrapper
(PrismContainerValueWrapper<?> parent, Item childItem, ItemStatus status, WrapperContext context) protected abstract IW
createWrapperInternal
(PrismContainerValueWrapper<?> parent, I childContainer, ItemStatus status, WrapperContext wrapperContext) abstract void
registerWrapperPanel
(IW wrapper) protected <VW extends PrismValueWrapper>
voidsetupMetadata
(IW itemWrapper, VW valueWrapper, WrapperContext ctx) protected abstract void
setupWrapper
(IW wrapper) protected boolean
shouldCreateEmptyValue
(I item, WrapperContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.gui.api.factory.wrapper.ItemWrapperFactory
createValueWrapper
Methods inherited from interface com.evolveum.midpoint.gui.api.factory.wrapper.WrapperFactory
getOrder, match, match, register
-
Constructor Details
-
ItemWrapperFactoryImpl
public ItemWrapperFactoryImpl()
-
-
Method Details
-
createWrapper
public IW createWrapper(PrismContainerValueWrapper<?> parent, ItemDefinition<?> def, WrapperContext context) throws SchemaException - Specified by:
createWrapper
in interfaceItemWrapperFactory<IW extends ItemWrapper,
PV extends PrismValue, I extends Item> - Throws:
SchemaException
-
registerWrapperPanel
-
createWrapper
public IW createWrapper(PrismContainerValueWrapper<?> parent, Item childItem, ItemStatus status, WrapperContext context) throws SchemaException - Specified by:
createWrapper
in interfaceItemWrapperFactory<IW extends ItemWrapper,
PV extends PrismValue, I extends Item> - Throws:
SchemaException
-
canCreateWrapper
protected boolean canCreateWrapper(ItemDefinition<?> def, ItemStatus status, WrapperContext context, boolean isEmptyValue) -
setupWrapper
-
createValuesWrapper
protected List<VW> createValuesWrapper(IW itemWrapper, I item, WrapperContext context) throws SchemaException - Throws:
SchemaException
-
setupMetadata
protected <VW extends PrismValueWrapper> void setupMetadata(IW itemWrapper, VW valueWrapper, WrapperContext ctx) throws SchemaException - Throws:
SchemaException
-
getValues
-
canCreateValueWrapper
-
createNewValue
- Throws:
SchemaException
-
createWrapperInternal
protected abstract IW createWrapperInternal(PrismContainerValueWrapper<?> parent, I childContainer, ItemStatus status, WrapperContext wrapperContext) -
shouldCreateEmptyValue
-
getRegistry
- Returns:
- the registry
-
getPrismContext
- Returns:
- the prismContext
-
getModelService
-
getTaskManager
-
getModelInteractionService
-