Class ObjectDetailsModels<O extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.gui.impl.page.admin.ObjectDetailsModels<O>
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AssignmentHolderDetailsModel
,ShadowDetailsModel
public class ObjectDetailsModels<O extends ObjectType> extends Object implements Serializable, org.apache.wicket.model.IDetachable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
OPERATION_LOAD_PARENT_ORG
-
Constructor Summary
Constructors Constructor Description ObjectDetailsModels(org.apache.wicket.model.LoadableDetachableModel<PrismObject<O>> prismObjectModel, ModelServiceLocator serviceLocator)
-
Method Summary
-
-
-
Field Detail
-
OPERATION_LOAD_PARENT_ORG
protected static final String OPERATION_LOAD_PARENT_ORG
-
-
Constructor Detail
-
ObjectDetailsModels
public ObjectDetailsModels(org.apache.wicket.model.LoadableDetachableModel<PrismObject<O>> prismObjectModel, ModelServiceLocator serviceLocator)
-
-
Method Detail
-
createWrapperContext
public WrapperContext createWrapperContext()
-
createWrapperContext
protected WrapperContext createWrapperContext(Task task, OperationResult result)
-
getPanelConfigurations
public List<? extends ContainerPanelConfigurationType> getPanelConfigurations()
-
getPageBase
protected PageBase getPageBase()
-
loadDetailsPageConfiguration
protected GuiObjectDetailsPageType loadDetailsPageConfiguration()
-
getSummaryModel
public org.apache.wicket.model.LoadableDetachableModel<O> getSummaryModel()
-
isEditObject
public boolean isEditObject(PrismObject<O> prismObject)
-
getPrismContext
protected PrismContext getPrismContext()
-
getDelta
public ObjectDelta<O> getDelta()
-
getValidationErrors
public Collection<SimpleValidationError> getValidationErrors()
-
performCustomValidation
protected Collection<SimpleValidationError> performCustomValidation(PrismObject<O> object, Collection<ObjectDelta<? extends ObjectType>> deltas) throws SchemaException
- Throws:
SchemaException
-
prepareObjectForAdd
protected void prepareObjectForAdd(PrismObject<O> objectToAdd) throws SchemaException
- Throws:
SchemaException
-
prepareObjectDeltaForModify
protected void prepareObjectDeltaForModify(ObjectDelta<O> modifyDelta) throws SchemaException
- Throws:
SchemaException
-
getAdditionalModifyDeltas
protected List<ObjectDelta<? extends ObjectType>> getAdditionalModifyDeltas(OperationResult result)
-
reset
public void reset()
-
getModelServiceLocator
protected ModelServiceLocator getModelServiceLocator()
-
getAdminGuiConfigurationMergeManager
protected AdminGuiConfigurationMergeManager getAdminGuiConfigurationMergeManager()
-
getObjectWrapperModel
public LoadableModel<PrismObjectWrapper<O>> getObjectWrapperModel()
-
getObjectWrapper
public PrismObjectWrapper<O> getObjectWrapper()
-
getPrismObject
protected PrismObject<O> getPrismObject()
-
reloadPrismObjectModel
public void reloadPrismObjectModel(@NotNull @NotNull PrismObject<O> newObject)
-
getObjectDetailsPageConfiguration
public LoadableModel<GuiObjectDetailsPageType> getObjectDetailsPageConfiguration()
-
getObjectType
public O getObjectType()
-
isReadonly
protected boolean isReadonly()
-
getObjectStatus
public ItemStatus getObjectStatus()
-
getSummaryPanelSpecification
public SummaryPanelSpecificationType getSummaryPanelSpecification()
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-
collectDeltas
public Collection<ObjectDelta<? extends ObjectType>> collectDeltas(OperationResult result) throws SchemaException
- Throws:
SchemaException
-
collectDeltaWithoutSavedDeltas
public Collection<ObjectDelta<? extends ObjectType>> collectDeltaWithoutSavedDeltas(OperationResult result) throws SchemaException
- Throws:
SchemaException
-
saveDeltas
public void saveDeltas()
-
-