Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
save&run button for task, introducing taskMainPanel, fixing refresh b…
…ehaviour, small cleanup
- Loading branch information
Showing
25 changed files
with
2,448 additions
and
2,895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
164 changes: 83 additions & 81 deletions
164
gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/prism/ItemWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,83 @@ | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.gui.api.prism; | ||
|
||
import java.io.Serializable; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import com.evolveum.midpoint.gui.api.page.PageBase; | ||
import com.evolveum.midpoint.gui.impl.prism.ItemVisibilityHandler; | ||
import com.evolveum.midpoint.gui.impl.prism.PrismContainerValueWrapper; | ||
import com.evolveum.midpoint.gui.impl.prism.PrismValueWrapper; | ||
import com.evolveum.midpoint.prism.Item; | ||
import com.evolveum.midpoint.prism.ItemDefinition; | ||
import com.evolveum.midpoint.prism.PrismValue; | ||
import com.evolveum.midpoint.prism.Revivable; | ||
import com.evolveum.midpoint.prism.delta.ItemDelta; | ||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
import com.evolveum.midpoint.util.DebugDumpable; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ExpressionType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType; | ||
|
||
/** | ||
* @author katka | ||
* | ||
*/ | ||
public interface ItemWrapper<V extends PrismValue, I extends Item<V, ID>, ID extends ItemDefinition<I>, VW extends PrismValueWrapper> extends ItemDefinition<I>, Revivable, DebugDumpable, Serializable { | ||
|
||
|
||
String debugDump(int indent); | ||
|
||
boolean isVisible(PrismContainerValueWrapper parentContainer, ItemVisibilityHandler visibilityHandler); | ||
|
||
boolean checkRequired(PageBase pageBase); | ||
|
||
PrismContainerValueWrapper<?> getParent(); | ||
|
||
boolean isShowEmpty(); | ||
|
||
void setShowEmpty(boolean isShowEmpty, boolean recursive); | ||
|
||
boolean isShowInVirtualContainer(); | ||
|
||
void setShowInVirtualContainer(boolean showInVirtualContainer); | ||
|
||
ItemPath getPath(); | ||
|
||
//NEW | ||
|
||
boolean isReadOnly(); | ||
|
||
void setReadOnly(boolean readOnly); | ||
|
||
ExpressionType getFormComponentValidator(); | ||
|
||
List<VW> getValues(); | ||
VW getValue() throws SchemaException; | ||
|
||
boolean isStripe(); | ||
void setStripe(boolean stripe); | ||
|
||
I getItem(); | ||
|
||
boolean isColumn(); | ||
void setColumn(boolean column); | ||
|
||
<D extends ItemDelta<V, ID>> void applyDelta(D delta) throws SchemaException; | ||
|
||
<D extends ItemDelta<V, ID>> Collection<D> getDelta() throws SchemaException; | ||
|
||
<O extends ObjectType> ItemStatus findObjectStatus(); | ||
|
||
<OW extends PrismObjectWrapper<O>, O extends ObjectType> OW findObjectWrapper(); | ||
|
||
ItemStatus getStatus(); | ||
} | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.gui.api.prism; | ||
|
||
import java.io.Serializable; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import com.evolveum.midpoint.gui.api.page.PageBase; | ||
import com.evolveum.midpoint.gui.impl.prism.ItemVisibilityHandler; | ||
import com.evolveum.midpoint.gui.impl.prism.PrismContainerValueWrapper; | ||
import com.evolveum.midpoint.gui.impl.prism.PrismValueWrapper; | ||
import com.evolveum.midpoint.prism.Item; | ||
import com.evolveum.midpoint.prism.ItemDefinition; | ||
import com.evolveum.midpoint.prism.PrismValue; | ||
import com.evolveum.midpoint.prism.Revivable; | ||
import com.evolveum.midpoint.prism.delta.ItemDelta; | ||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
import com.evolveum.midpoint.util.DebugDumpable; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ExpressionType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.UserInterfaceElementVisibilityType; | ||
|
||
/** | ||
* @author katka | ||
* | ||
*/ | ||
public interface ItemWrapper<V extends PrismValue, I extends Item<V, ID>, ID extends ItemDefinition<I>, VW extends PrismValueWrapper> extends ItemDefinition<I>, Revivable, DebugDumpable, Serializable { | ||
|
||
|
||
String debugDump(int indent); | ||
|
||
void setVisibleOverwrite(UserInterfaceElementVisibilityType visible); | ||
boolean isVisible(PrismContainerValueWrapper parentContainer, ItemVisibilityHandler visibilityHandler); | ||
|
||
boolean checkRequired(PageBase pageBase); | ||
|
||
PrismContainerValueWrapper<?> getParent(); | ||
|
||
boolean isShowEmpty(); | ||
|
||
void setShowEmpty(boolean isShowEmpty, boolean recursive); | ||
|
||
boolean isShowInVirtualContainer(); | ||
|
||
void setShowInVirtualContainer(boolean showInVirtualContainer); | ||
|
||
ItemPath getPath(); | ||
|
||
//NEW | ||
|
||
boolean isReadOnly(); | ||
|
||
void setReadOnly(boolean readOnly); | ||
|
||
ExpressionType getFormComponentValidator(); | ||
|
||
List<VW> getValues(); | ||
VW getValue() throws SchemaException; | ||
|
||
boolean isStripe(); | ||
void setStripe(boolean stripe); | ||
|
||
I getItem(); | ||
|
||
boolean isColumn(); | ||
void setColumn(boolean column); | ||
|
||
<D extends ItemDelta<V, ID>> void applyDelta(D delta) throws SchemaException; | ||
|
||
<D extends ItemDelta<V, ID>> Collection<D> getDelta() throws SchemaException; | ||
|
||
<O extends ObjectType> ItemStatus findObjectStatus(); | ||
|
||
<OW extends PrismObjectWrapper<O>, O extends ObjectType> OW findObjectWrapper(); | ||
|
||
ItemStatus getStatus(); | ||
} |
Oops, something went wrong.