Class PrismObjectWrapperFactoryImpl<O extends ObjectType>
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<O>
com.evolveum.midpoint.gui.impl.factory.wrapper.PrismObjectWrapperFactoryImpl<O>
- All Implemented Interfaces:
ItemWrapperFactory<PrismContainerWrapper<O>,
,PrismContainerValueWrapper<O>, PrismContainerValue<O>> PrismContainerWrapperFactory<O>
,PrismObjectWrapperFactory<O>
,WrapperFactory
,ContainerableDuplicateResolver<O>
- Direct Known Subclasses:
AssignmentHolderWrapperFactoryImpl
,ResourceWrapperFactoryImpl
,ShadowWrapperFactoryImpl
@Component
public class PrismObjectWrapperFactoryImpl<O extends ObjectType>
extends PrismContainerWrapperFactoryImpl<O>
implements ContainerableDuplicateResolver<O>, PrismObjectWrapperFactory<O>
- Author:
- katka
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applySecurityConstraints
(PrismObject<O> object, WrapperContext context) createContainerValueWrapper
(PrismContainerWrapper<O> objectWrapper, PrismContainerValue<O> objectValue, ValueStatus status, WrapperContext context) createObjectWrapper
(PrismObject<O> object, ItemStatus status) createObjectWrapper
(PrismObject<O> object, ItemStatus status, WrapperContext context) createValueWrapper
(PrismContainerWrapper<O> parent, PrismContainerValue<O> value, ValueStatus status, WrapperContext context) duplicateObject
(O originalObject, PageBase pageBase) int
getOrder()
boolean
match
(ItemDefinition<?> def) void
register()
protected void
setupContextWithMetadataProcessing
(PrismObject<O> object, WrapperContext context) void
updateWrapper
(PrismObjectWrapper<O> wrapper, WrapperContext context) Methods inherited from class com.evolveum.midpoint.gui.impl.factory.wrapper.PrismContainerWrapperFactoryImpl
addItemWrapper, createChildren, createChildWrapper, createNewValue, createVirtualWrappers, createWrapper, createWrapperInternal, getItemDefinitions, recomputeStatus, registerWrapperPanel, setupWrapper, shouldBeExpanded
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, skipCreateWrapper
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
createWrapper, createWrapper
Methods inherited from interface com.evolveum.midpoint.gui.api.factory.wrapper.WrapperFactory
match
-
Constructor Details
-
PrismObjectWrapperFactoryImpl
public PrismObjectWrapperFactoryImpl()
-
-
Method Details
-
createObjectWrapper
public PrismObjectWrapper<O> createObjectWrapper(PrismObject<O> object, ItemStatus status, WrapperContext context) throws SchemaException - Specified by:
createObjectWrapper
in interfacePrismObjectWrapperFactory<O extends ObjectType>
- Throws:
SchemaException
-
updateWrapper
public void updateWrapper(PrismObjectWrapper<O> wrapper, WrapperContext context) throws SchemaException - Specified by:
updateWrapper
in interfacePrismObjectWrapperFactory<O extends ObjectType>
- Throws:
SchemaException
-
createContainerValueWrapper
public PrismObjectValueWrapper<O> createContainerValueWrapper(PrismContainerWrapper<O> objectWrapper, PrismContainerValue<O> objectValue, ValueStatus status, WrapperContext context) - Specified by:
createContainerValueWrapper
in interfacePrismContainerWrapperFactory<O extends ObjectType>
- Overrides:
createContainerValueWrapper
in classPrismContainerWrapperFactoryImpl<O extends ObjectType>
-
createObjectWrapper
-
createValueWrapper
public PrismContainerValueWrapper<O> createValueWrapper(PrismContainerWrapper<O> parent, PrismContainerValue<O> value, ValueStatus status, WrapperContext context) throws SchemaException - Specified by:
createValueWrapper
in interfaceItemWrapperFactory<PrismContainerWrapper<O extends ObjectType>,
PrismContainerValueWrapper<O extends ObjectType>, PrismContainerValue<O extends ObjectType>> - Overrides:
createValueWrapper
in classPrismContainerWrapperFactoryImpl<O extends ObjectType>
- Throws:
SchemaException
-
applySecurityConstraints
protected void applySecurityConstraints(PrismObject<O> object, WrapperContext context) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException - Parameters:
object
- apply security constraint to the object, update wrapper context with additional information, e.g. shadow related attributes, ...- Throws:
CommunicationException
ObjectNotFoundException
SchemaException
SecurityViolationException
ConfigurationException
ExpressionEvaluationException
-
setupContextWithMetadataProcessing
-
match
- Specified by:
match
in interfaceWrapperFactory
- Overrides:
match
in classPrismContainerWrapperFactoryImpl<O extends ObjectType>
-
register
@PostConstruct public void register()- Specified by:
register
in interfaceWrapperFactory
- Overrides:
register
in classPrismContainerWrapperFactoryImpl<O extends ObjectType>
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceWrapperFactory
- Overrides:
getOrder
in classPrismContainerWrapperFactoryImpl<O extends ObjectType>
-
duplicateObject
- Specified by:
duplicateObject
in interfaceContainerableDuplicateResolver<O extends ObjectType>
-