Class PrismReferenceValueWrapperImpl<T extends Referencable>
java.lang.Object
com.evolveum.midpoint.gui.impl.prism.wrapper.PrismValueWrapperImpl<T>
com.evolveum.midpoint.gui.impl.prism.wrapper.PrismReferenceValueWrapperImpl<T>
- All Implemented Interfaces:
PrismValueWrapper<T>
,DebugDumpable
,Serializable
- Direct Known Subclasses:
CreateObjectForReferenceValueWrapper
public class PrismReferenceValueWrapperImpl<T extends Referencable>
extends PrismValueWrapperImpl<T>
- Author:
- katka
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionPrismReferenceValueWrapperImpl
(PrismReferenceWrapper<T> parent, PrismReferenceValue value, ValueStatus status) -
Method Summary
Modifier and TypeMethodDescriptionprotected <O extends ObjectType>
PrismObject<O>createNewPrismObject
(OperationResult result) Create new object that will be added to reference value.protected WrapperContext
createWrapperContextForNewObject
(WrapperContext wrapperContext) debugDump
(int indent) boolean
Check that exist details model for new object that will be added to reference value.<O extends ObjectType>
ObjectDetailsModels<O>getNewObjectModel
(ContainerPanelConfigurationType config, ModelServiceLocator serviceLocator, OperationResult result) Return details model for new object that will be added to reference value.getPreconditionDeltas
(ModelServiceLocator serviceLocator, OperationResult result) Collect processor with deltas and consumer, that should be processed before basic deltas of showed objectboolean
boolean
isLink()
boolean
protected <O extends ObjectType>
voidprocessBeforeCreatingPreconditionDelta
(ObjectDetailsModels<O> newObjectModel, ModelServiceLocator serviceLocator) Custom processing of new object for reference.void
Clean details model for new object that should be added to reference value.void
setEditEnabled
(boolean editEnabled) void
setLink
(boolean link) void
setRealValue
(T realValueReferencable) Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.PrismValueWrapperImpl
addToDelta, getNewValueWithMetadataApplied, getOldValue, getParent, getParentContainerValue, getRealValue, getStatus, getValueMetadata, isChanged, isShowMetadata, isVisible, setNewValue, setShowMetadata, setStatus, setValueMetadata
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.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
PrismReferenceValueWrapperImpl
public PrismReferenceValueWrapperImpl(PrismReferenceWrapper<T> parent, PrismReferenceValue value, ValueStatus status)
-
-
Method Details
-
setRealValue
-
isEditEnabled
public boolean isEditEnabled() -
setEditEnabled
public void setEditEnabled(boolean editEnabled) -
isLink
public boolean isLink() -
setLink
public void setLink(boolean link) -
getNewValue
- Specified by:
getNewValue
in interfacePrismValueWrapper<T extends Referencable>
- Overrides:
getNewValue
in classPrismValueWrapperImpl<T extends Referencable>
-
toShortString
- Specified by:
toShortString
in interfacePrismValueWrapper<T extends Referencable>
- Overrides:
toShortString
in classPrismValueWrapperImpl<T extends Referencable>
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
- Overrides:
debugDump
in classPrismValueWrapperImpl<T extends Referencable>
-
getPreconditionDeltas
public Collection<ExecutedDeltaPostProcessor> getPreconditionDeltas(ModelServiceLocator serviceLocator, OperationResult result) throws CommonException Description copied from interface:PrismValueWrapper
Collect processor with deltas and consumer, that should be processed before basic deltas of showed object- Specified by:
getPreconditionDeltas
in interfacePrismValueWrapper<T extends Referencable>
- Overrides:
getPreconditionDeltas
in classPrismValueWrapperImpl<T extends Referencable>
- Throws:
CommonException
-
processBeforeCreatingPreconditionDelta
protected <O extends ObjectType> void processBeforeCreatingPreconditionDelta(ObjectDetailsModels<O> newObjectModel, ModelServiceLocator serviceLocator) Custom processing of new object for reference. -
getNewObjectModel
public <O extends ObjectType> ObjectDetailsModels<O> getNewObjectModel(ContainerPanelConfigurationType config, ModelServiceLocator serviceLocator, OperationResult result) Return details model for new object that will be added to reference value. -
createWrapperContextForNewObject
-
createNewPrismObject
protected <O extends ObjectType> PrismObject<O> createNewPrismObject(OperationResult result) throws SchemaException Create new object that will be added to reference value.- Throws:
SchemaException
-
resetNewObjectModel
public void resetNewObjectModel()Clean details model for new object that should be added to reference value. -
isNewObjectModelCreated
public boolean isNewObjectModelCreated() -
existNewObjectModel
public boolean existNewObjectModel()Check that exist details model for new object that will be added to reference value.
-