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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanCreateValueWrapper(PV pcv) protected booleancanCreateWrapper(ItemDefinition<?> def, ItemStatus status, WrapperContext context, boolean isEmptyValue) protected abstract PVcreateNewValue(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 IWcreateWrapperInternal(PrismContainerValueWrapper<?> parent, I childContainer, ItemStatus status, WrapperContext wrapperContext) protected booleandetermineReadOnly(IW itemWrapper, WrapperContext context) protected ItemStatusabstract voidregisterWrapperPanel(IW wrapper) protected <VW extends PrismValueWrapper>
voidsetupMetadata(IW itemWrapper, VW valueWrapper, WrapperContext ctx) protected abstract voidsetupWrapper(IW wrapper) protected booleanshouldCreateEmptyValue(I item, WrapperContext context) booleanskipCreateWrapper(ItemDefinition<?> def, ItemStatus status, WrapperContext context, boolean isEmptyValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.gui.api.factory.wrapper.ItemWrapperFactory
createValueWrapperMethods 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:
createWrapperin interfaceItemWrapperFactory<IW extends ItemWrapper,PV extends PrismValue, I extends Item> - Throws:
SchemaException
-
getStatus
-
registerWrapperPanel
-
createWrapper
public IW createWrapper(PrismContainerValueWrapper<?> parent, Item childItem, ItemStatus status, WrapperContext context) throws SchemaException - Specified by:
createWrapperin interfaceItemWrapperFactory<IW extends ItemWrapper,PV extends PrismValue, I extends Item> - Throws:
SchemaException
-
skipCreateWrapper
public boolean skipCreateWrapper(ItemDefinition<?> def, ItemStatus status, WrapperContext context, boolean isEmptyValue) -
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
-
determineReadOnly
-
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
-