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 voidapplySecurityConstraints(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)intgetOrder()booleanmatch(ItemDefinition<?> def)voidregister()protected voidsetupContextWithMetadataProcessing(PrismObject<O> object, WrapperContext context)voidupdateWrapper(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:
createObjectWrapperin interfacePrismObjectWrapperFactory<O extends ObjectType>- Throws:
SchemaException
-
updateWrapper
public void updateWrapper(PrismObjectWrapper<O> wrapper, WrapperContext context) throws SchemaException
- Specified by:
updateWrapperin interfacePrismObjectWrapperFactory<O extends ObjectType>- Throws:
SchemaException
-
createContainerValueWrapper
public PrismObjectValueWrapper<O> createContainerValueWrapper(PrismContainerWrapper<O> objectWrapper, PrismContainerValue<O> objectValue, ValueStatus status, WrapperContext context)
- Specified by:
createContainerValueWrapperin interfacePrismContainerWrapperFactory<O extends ObjectType>- Overrides:
createContainerValueWrapperin 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:
createValueWrapperin interfaceItemWrapperFactory<PrismContainerWrapper<O extends ObjectType>,PrismContainerValueWrapper<O extends ObjectType>,PrismContainerValue<O extends ObjectType>>- Overrides:
createValueWrapperin 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:
CommunicationExceptionObjectNotFoundExceptionSchemaExceptionSecurityViolationExceptionConfigurationExceptionExpressionEvaluationException
-
setupContextWithMetadataProcessing
protected void setupContextWithMetadataProcessing(PrismObject<O> object, WrapperContext context)
-
match
public boolean match(ItemDefinition<?> def)
- Specified by:
matchin interfaceWrapperFactory- Overrides:
matchin classPrismContainerWrapperFactoryImpl<O extends ObjectType>
-
register
@PostConstruct public void register()
- Specified by:
registerin interfaceWrapperFactory- Overrides:
registerin classPrismContainerWrapperFactoryImpl<O extends ObjectType>
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceWrapperFactory- Overrides:
getOrderin classPrismContainerWrapperFactoryImpl<O extends ObjectType>
-
-