public class UIHelper extends Object
| Constructor and Description |
|---|
UIHelper() |
public static void conversionOfTree(Collection<UITreeElement> list, Class<? extends org.qubership.automation.itf.core.model.common.Storable> clazz)
@Nullable public static com.google.common.collect.ImmutableList isNotNullCopyOfImmutableList(Collection collection)
@Nonnull public static UIObjectList getObjectList(@Nonnull Collection<? extends org.qubership.automation.itf.core.model.common.Storable> from)
from - storables@Nonnull public static UIObjectList fillObjectList(@Nonnull Collection<? extends org.qubership.automation.itf.core.model.common.Storable> from, @Nonnull UIObjectList to)
from - storablesto - existing UIObjectList@Nonnull public static UITreeElementList getTreeElementList(@Nonnull Collection<? extends org.qubership.automation.itf.core.model.common.Storable> from)
from - storables@Nonnull protected static UITreeElementList fillTreeElementList(@Nonnull Collection<? extends org.qubership.automation.itf.core.model.common.Storable> from, @Nonnull UITreeElementList to)
from - storablesto - existing UITreeElementList@Nonnull protected static <I extends org.qubership.automation.itf.core.model.common.Storable,O extends UIObject> UIList<O> getUIList(@Nonnull Collection<I> from, @Nonnull com.google.common.base.Function<? super I,O> func)
fillUIList(Collection, UIList, Function)@Nonnull protected static <I extends org.qubership.automation.itf.core.model.common.Storable,O extends UIObject> UIList<O> fillUIList(@Nonnull Collection<I> from, @Nonnull UIList<O> to, @Nonnull com.google.common.base.Function<? super I,O> func)
I - actual type of storablesO - actual type of UIObjectsfrom - collection of storables or its subclassesto - UIList of UIObjects or its subclassesfunc - transforms provided storables into UIObjectspublic static UIObject getUIPresentationByStorable(org.qubership.automation.itf.core.model.common.Storable storable, Class childClass, List<org.qubership.automation.itf.core.model.common.Storable> children)
public static void updateObject(UIObject object, org.qubership.automation.itf.core.model.common.Storable storable)
object - has current fieldsstorable - in which you want to update the fieldspublic static UITypeList convertMapOfTypeToUITypeList(Map<String,String> map)
map - target mappublic static List<org.qubership.automation.itf.core.model.common.Storable> initializeObjects(Collection<UIObject> sources) throws Exception
sources - UI objectsException@Nullable protected org.qubership.automation.itf.core.model.jpa.context.JsonContext toJSONContext(UIDataSet dataSet)
Copyright © 2025. All rights reserved.