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
- Direct Known Subclasses:
ResourceWrapperFactoryImpl
,ShadowWrapperFactoryImpl
@Component public class PrismObjectWrapperFactoryImpl<O extends ObjectType> extends PrismContainerWrapperFactoryImpl<O> implements PrismObjectWrapperFactory<O>
- Author:
- katka
-
-
Constructor Summary
Constructors Constructor Description PrismObjectWrapperFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applySecurityConstraints(PrismObject<O> object, WrapperContext context)
PrismObjectValueWrapper<O>
createContainerValueWrapper(PrismContainerWrapper<O> objectWrapper, PrismContainerValue<O> objectValue, ValueStatus status, WrapperContext context)
PrismObjectWrapper<O>
createObjectWrapper(PrismObject<O> object, ItemStatus status)
PrismObjectWrapper<O>
createObjectWrapper(PrismObject<O> object, ItemStatus status, WrapperContext context)
PrismContainerValueWrapper<O>
createValueWrapper(PrismContainerWrapper<O> parent, PrismContainerValue<O> value, ValueStatus status, WrapperContext context)
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, createWrapperInternal, getItemDefinitions, registerWrapperPanel, setupWrapper, shouldBeExpanded
-
Methods inherited from class com.evolveum.midpoint.gui.impl.factory.wrapper.ItemWrapperFactoryImpl
canCreateValueWrapper, canCreateWrapper, createValuesWrapper, createWrapper, createWrapper, getModelInteractionService, getModelService, getPrismContext, getRegistry, getTaskManager, getValues, setupMetadata, shouldCreateEmptyValue
-
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
-
-
-
-
Method Detail
-
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
public PrismObjectWrapper<O> createObjectWrapper(PrismObject<O> object, ItemStatus status)
-
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
protected void setupContextWithMetadataProcessing(PrismObject<O> object, WrapperContext context)
-
match
public boolean match(ItemDefinition<?> def)
- 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>
-
-