Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
370 additions
and
426 deletions.
There are no files selected for viewing
178 changes: 86 additions & 92 deletions
178
...in-gui/src/main/java/com/evolveum/midpoint/gui/impl/prism/PrismContainerValueWrapper.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,92 +1,86 @@ | ||
/* | ||
* 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.impl.prism; | ||
|
||
import java.util.List; | ||
|
||
import com.evolveum.midpoint.gui.api.prism.ItemWrapper; | ||
import com.evolveum.midpoint.gui.api.prism.PrismContainerWrapper; | ||
import com.evolveum.midpoint.prism.Containerable; | ||
import com.evolveum.midpoint.prism.ItemDefinition; | ||
import com.evolveum.midpoint.prism.PrismContainerDefinition; | ||
import com.evolveum.midpoint.prism.PrismContainerValue; | ||
import com.evolveum.midpoint.prism.Referencable; | ||
import com.evolveum.midpoint.prism.delta.ItemDelta; | ||
import com.evolveum.midpoint.prism.path.ItemName; | ||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.web.component.prism.ValueStatus; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.VirtualContainerItemSpecificationType; | ||
|
||
/** | ||
* @author katka | ||
* | ||
*/ | ||
public interface PrismContainerValueWrapper<C extends Containerable> extends PrismValueWrapper<C, PrismContainerValue<C>>{ | ||
|
||
String getDisplayName(); | ||
String getHelpText(); | ||
|
||
boolean isExpanded(); | ||
|
||
void setExpanded(boolean expanded); | ||
|
||
boolean hasMetadata(); | ||
boolean isShowMetadata(); | ||
|
||
void setShowMetadata(boolean showMetadata); | ||
|
||
boolean isSorted(); | ||
void setSorted(boolean sorted); | ||
|
||
List<PrismContainerDefinition<C>> getChildContainers() throws SchemaException; | ||
|
||
ValueStatus getStatus(); | ||
void setStatus(ValueStatus status); | ||
|
||
<T extends Containerable> List<PrismContainerWrapper<T>> getContainers(); | ||
|
||
List<? extends ItemWrapper<?,?,?,?>> getNonContainers(); | ||
|
||
// PrismContainerWrapper<C> getParent(); | ||
|
||
List<? extends ItemWrapper<?,?,?,?>> getItems(); | ||
|
||
// PrismContainerValue<C> getNewValue(); | ||
|
||
<T extends Containerable> PrismContainerWrapper<T> findContainer(ItemPath path) throws SchemaException; | ||
<X> PrismPropertyWrapper<X> findProperty(ItemPath propertyPath) throws SchemaException; | ||
<R extends Referencable> PrismReferenceWrapper<R> findReference(ItemPath path) throws SchemaException; | ||
<IW extends ItemWrapper> IW findItem(ItemPath path, Class<IW> type) throws SchemaException; | ||
|
||
ItemPath getPath(); | ||
|
||
boolean isSelected(); | ||
boolean setSelected(boolean selected); //TODO why return boolean? | ||
|
||
|
||
boolean isReadOnly(); | ||
void setReadOnly(boolean readOnly, boolean recursive); | ||
|
||
@Deprecated | ||
boolean hasChanged(); | ||
|
||
boolean isShowEmpty(); | ||
void setShowEmpty(boolean setShowEmpty); | ||
|
||
//void sort(); | ||
|
||
<ID extends ItemDelta> void applyDelta(ID delta) throws SchemaException; | ||
PrismContainerValue<C> getValueToAdd() throws SchemaException; | ||
|
||
boolean isHeterogenous(); | ||
void setHeterogenous(boolean heterogenous); | ||
|
||
void setVirtualContainerItems(List<VirtualContainerItemSpecificationType> virtualItems); | ||
boolean isVirtual(); | ||
|
||
} | ||
/* | ||
* 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.impl.prism; | ||
|
||
import java.util.List; | ||
|
||
import com.evolveum.midpoint.gui.api.prism.ItemWrapper; | ||
import com.evolveum.midpoint.gui.api.prism.PrismContainerWrapper; | ||
import com.evolveum.midpoint.prism.Containerable; | ||
import com.evolveum.midpoint.prism.PrismContainerDefinition; | ||
import com.evolveum.midpoint.prism.PrismContainerValue; | ||
import com.evolveum.midpoint.prism.Referencable; | ||
import com.evolveum.midpoint.prism.delta.ItemDelta; | ||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.web.component.prism.ValueStatus; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.VirtualContainerItemSpecificationType; | ||
|
||
/** | ||
* @author katka | ||
* | ||
*/ | ||
public interface PrismContainerValueWrapper<C extends Containerable> extends PrismValueWrapper<C, PrismContainerValue<C>>{ | ||
|
||
String getDisplayName(); | ||
String getHelpText(); | ||
|
||
boolean isExpanded(); | ||
|
||
void setExpanded(boolean expanded); | ||
|
||
boolean hasMetadata(); | ||
boolean isShowMetadata(); | ||
|
||
void setShowMetadata(boolean showMetadata); | ||
|
||
boolean isSorted(); | ||
void setSorted(boolean sorted); | ||
|
||
List<PrismContainerDefinition<C>> getChildContainers() throws SchemaException; | ||
|
||
ValueStatus getStatus(); | ||
void setStatus(ValueStatus status); | ||
|
||
<T extends Containerable> List<PrismContainerWrapper<T>> getContainers(); | ||
|
||
List<? extends ItemWrapper<?,?,?,?>> getNonContainers(); | ||
|
||
List<? extends ItemWrapper<?,?,?,?>> getItems(); | ||
|
||
<T extends Containerable> PrismContainerWrapper<T> findContainer(ItemPath path) throws SchemaException; | ||
<X> PrismPropertyWrapper<X> findProperty(ItemPath propertyPath) throws SchemaException; | ||
<R extends Referencable> PrismReferenceWrapper<R> findReference(ItemPath path) throws SchemaException; | ||
<IW extends ItemWrapper> IW findItem(ItemPath path, Class<IW> type) throws SchemaException; | ||
|
||
ItemPath getPath(); | ||
|
||
boolean isSelected(); | ||
boolean setSelected(boolean selected); //TODO why return boolean? | ||
|
||
|
||
boolean isReadOnly(); | ||
void setReadOnly(boolean readOnly, boolean recursive); | ||
|
||
@Deprecated | ||
boolean hasChanged(); | ||
|
||
boolean isShowEmpty(); | ||
void setShowEmpty(boolean setShowEmpty); | ||
|
||
//void sort(); | ||
|
||
<ID extends ItemDelta> void applyDelta(ID delta) throws SchemaException; | ||
PrismContainerValue<C> getValueToAdd() throws SchemaException; | ||
|
||
boolean isHeterogenous(); | ||
void setHeterogenous(boolean heterogenous); | ||
|
||
void setVirtualContainerItems(List<VirtualContainerItemSpecificationType> virtualItems); | ||
boolean isVirtual(); | ||
|
||
} |
Oops, something went wrong.