Class PrismContainerWrapperFactoryImpl<C extends Containerable>
java.lang.Object
com.evolveum.midpoint.gui.impl.factory.wrapper.ItemWrapperFactoryImpl<PrismContainerWrapper<C>,PrismContainerValue<C>,PrismContainer<C>,PrismContainerValueWrapper<C>>
com.evolveum.midpoint.gui.impl.factory.wrapper.PrismContainerWrapperFactoryImpl<C>
- All Implemented Interfaces:
ItemWrapperFactory<PrismContainerWrapper<C>,,PrismContainerValueWrapper<C>, PrismContainerValue<C>> PrismContainerWrapperFactory<C>,WrapperFactory
- Direct Known Subclasses:
AppendersWrapperFactoryImpl,AssignmentDetailsWrapperFactoryImpl,AssociationMappingExpressionWrapperFactory,AssociationMappingWrapperFactory,ClassLoggerWrapperFactoryImpl,ConnectorConfigurationWrapperFactoryImpl,HeterogenousContainerWrapperFactory,LoggingConfigurationWrapperFactoryImpl,MarkingPatternWrapperFactory,MetadataWrapperFactoryImpl,NoEmptyValueContainerWrapperFactoryImpl,OperationalContainerWrapperFactory,OutboundAttributeMappingWrapperFactory,PrismObjectWrapperFactoryImpl,ProfilingClassLoggerWrapperFactoryImpl,ReportParamWrapperFactoryImpl,ResourceAttributeMappingWrapperFactory,ResourceObjectTypeWrapperFactory,SchemaDefinitionWrapperFactory,ShadowAssociationsContainerWrapperFactoryImpl,ShadowAssociationValueWrapperFactoryImpl,ShadowAttributesWrapperFactoryImpl,ValueMetadataWrapperFactoryImpl
@Component
public class PrismContainerWrapperFactoryImpl<C extends Containerable>
extends ItemWrapperFactoryImpl<PrismContainerWrapper<C>,PrismContainerValue<C>,PrismContainer<C>,PrismContainerValueWrapper<C>>
implements PrismContainerWrapperFactory<C>
- Author:
- katka
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddItemWrapper(ItemDefinition<?> def, PrismContainerValueWrapper<?> containerValueWrapper, WrapperContext context, List<ItemWrapper<?, ?>> wrappers) protected @NotNull List<ItemWrapper<?,?>> createChildren(PrismContainerWrapper<C> parent, PrismContainerValue<C> value, PrismContainerValueWrapper<C> containerValueWrapper, WrapperContext context) protected ItemWrapper<?,?> createChildWrapper(ItemDefinition<?> def, PrismContainerValueWrapper<?> containerValueWrapper, WrapperContext context) createContainerValueWrapper(PrismContainerWrapper<C> objectWrapper, PrismContainerValue<C> objectValue, ValueStatus status, WrapperContext context) protected PrismContainerValue<C>createNewValue(PrismContainer<C> item) createValueWrapper(PrismContainerWrapper<C> parent, PrismContainerValue<C> value, ValueStatus status, WrapperContext context) protected List<ItemWrapper<?,?>> createVirtualWrappers(PrismContainerValueWrapper<C> objectValueWrapper, WrapperContext context) protected PrismContainerWrapper<C>createWrapper(PrismContainerValueWrapper<?> parent, PrismContainer<C> childContainer, ItemStatus status) protected PrismContainerWrapper<C>createWrapperInternal(PrismContainerValueWrapper<?> parent, PrismContainer<C> childContainer, ItemStatus status, WrapperContext ctx) protected List<? extends ItemDefinition>getItemDefinitions(PrismContainerWrapper<C> parent, PrismContainerValue<C> value) intgetOrder()booleanmatch(ItemDefinition<?> def) protected ItemStatusrecomputeStatus(PrismContainer<C> containerWrapper, ItemStatus defaultStatus, WrapperContext ctx) voidregister()voidregisterWrapperPanel(PrismContainerWrapper<C> wrapper) protected voidsetupWrapper(PrismContainerWrapper<C> wrapper) protected booleanshouldBeExpanded(PrismContainerWrapper<C> parent, PrismContainerValue<C> value, WrapperContext context) Methods inherited from class com.evolveum.midpoint.gui.impl.factory.wrapper.ItemWrapperFactoryImpl
canCreateValueWrapper, canCreateWrapper, createValuesWrapper, createWrapper, createWrapper, determineReadOnly, getModelInteractionService, getModelService, getPrismContext, getRegistry, getStatus, getTaskManager, getValues, setupMetadata, shouldCreateEmptyValue, skipCreateWrapperMethods 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
createWrapper, createWrapperMethods inherited from interface com.evolveum.midpoint.gui.api.factory.wrapper.WrapperFactory
match
-
Field Details
-
VIRTUAL_CONTAINER
-
-
Constructor Details
-
PrismContainerWrapperFactoryImpl
public PrismContainerWrapperFactoryImpl()
-
-
Method Details
-
match
- Specified by:
matchin interfaceWrapperFactory
-
register
@PostConstruct public void register()- Specified by:
registerin interfaceWrapperFactory
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceWrapperFactory
-
createValueWrapper
public PrismContainerValueWrapper<C> createValueWrapper(PrismContainerWrapper<C> parent, PrismContainerValue<C> value, ValueStatus status, WrapperContext context) throws SchemaException - Specified by:
createValueWrapperin interfaceItemWrapperFactory<PrismContainerWrapper<C extends Containerable>,PrismContainerValueWrapper<C extends Containerable>, PrismContainerValue<C extends Containerable>> - Throws:
SchemaException
-
createChildren
@NotNull protected @NotNull List<ItemWrapper<?,?>> createChildren(PrismContainerWrapper<C> parent, PrismContainerValue<C> value, PrismContainerValueWrapper<C> containerValueWrapper, WrapperContext context) throws SchemaException - Throws:
SchemaException
-
getItemDefinitions
protected List<? extends ItemDefinition> getItemDefinitions(PrismContainerWrapper<C> parent, PrismContainerValue<C> value) -
addItemWrapper
protected void addItemWrapper(ItemDefinition<?> def, PrismContainerValueWrapper<?> containerValueWrapper, WrapperContext context, List<ItemWrapper<?, ?>> wrappers) throws SchemaException- Throws:
SchemaException
-
createChildWrapper
protected ItemWrapper<?,?> createChildWrapper(ItemDefinition<?> def, PrismContainerValueWrapper<?> containerValueWrapper, WrapperContext context) throws SchemaException - Throws:
SchemaException
-
createNewValue
- Specified by:
createNewValuein classItemWrapperFactoryImpl<PrismContainerWrapper<C extends Containerable>,PrismContainerValue<C extends Containerable>, PrismContainer<C extends Containerable>, PrismContainerValueWrapper<C extends Containerable>>
-
createWrapperInternal
protected PrismContainerWrapper<C> createWrapperInternal(PrismContainerValueWrapper<?> parent, PrismContainer<C> childContainer, ItemStatus status, WrapperContext ctx) - Specified by:
createWrapperInternalin classItemWrapperFactoryImpl<PrismContainerWrapper<C extends Containerable>,PrismContainerValue<C extends Containerable>, PrismContainer<C extends Containerable>, PrismContainerValueWrapper<C extends Containerable>>
-
createWrapper
protected PrismContainerWrapper<C> createWrapper(PrismContainerValueWrapper<?> parent, PrismContainer<C> childContainer, ItemStatus status) -
recomputeStatus
protected ItemStatus recomputeStatus(PrismContainer<C> containerWrapper, ItemStatus defaultStatus, WrapperContext ctx) -
registerWrapperPanel
- Specified by:
registerWrapperPanelin classItemWrapperFactoryImpl<PrismContainerWrapper<C extends Containerable>,PrismContainerValue<C extends Containerable>, PrismContainer<C extends Containerable>, PrismContainerValueWrapper<C extends Containerable>>
-
createContainerValueWrapper
public PrismContainerValueWrapper<C> createContainerValueWrapper(PrismContainerWrapper<C> objectWrapper, PrismContainerValue<C> objectValue, ValueStatus status, WrapperContext context) - Specified by:
createContainerValueWrapperin interfacePrismContainerWrapperFactory<C extends Containerable>
-
shouldBeExpanded
protected boolean shouldBeExpanded(PrismContainerWrapper<C> parent, PrismContainerValue<C> value, WrapperContext context) -
setupWrapper
- Specified by:
setupWrapperin classItemWrapperFactoryImpl<PrismContainerWrapper<C extends Containerable>,PrismContainerValue<C extends Containerable>, PrismContainer<C extends Containerable>, PrismContainerValueWrapper<C extends Containerable>>
-
createVirtualWrappers
protected List<ItemWrapper<?,?>> createVirtualWrappers(PrismContainerValueWrapper<C> objectValueWrapper, WrapperContext context) throws SchemaException - Throws:
SchemaException
-