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
Constructors Constructor Description ItemWrapperFactoryImpl()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
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
public abstract void registerWrapperPanel(IW wrapper)
-
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
protected abstract void setupWrapper(IW wrapper)
-
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
-
canCreateValueWrapper
protected boolean canCreateValueWrapper(PV pcv)
-
createNewValue
protected abstract PV createNewValue(I item) throws SchemaException
- Throws:
SchemaException
-
createWrapperInternal
protected abstract IW createWrapperInternal(PrismContainerValueWrapper<?> parent, I childContainer, ItemStatus status, WrapperContext wrapperContext)
-
shouldCreateEmptyValue
protected boolean shouldCreateEmptyValue(I item, WrapperContext context)
-
getRegistry
public GuiComponentRegistry getRegistry()
- Returns:
- the registry
-
getPrismContext
public PrismContext getPrismContext()
- Returns:
- the prismContext
-
getModelService
public ModelService getModelService()
-
getTaskManager
public com.evolveum.midpoint.task.api.TaskManager getTaskManager()
-
getModelInteractionService
public ModelInteractionService getModelInteractionService()
-
-