public class GenericHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericHelper.TypeEntry
Internal use!
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkAttribute(DisplayState displayState,
ActionResult result,
AttributeDescriptor descriptor,
java.lang.Object value) |
static ActionResult |
checkAttributes(DisplayState displayState,
ComposedType itemType,
java.util.Map values) |
static Chip |
findParentChip(Chip currentChip,
java.lang.Class chipClass)
Finds and returns a parent chip which is of the given type or null if no appropriate parent chip could be found.
|
static AttributeChip |
getAttributeChip(Chip currentChip)
Gets the next attribute chip of the given chip.
|
protected static GenericHelperImpl |
getImplementation() |
static GenericItemChip |
getItemChip(Chip currentChip)
Gets the next item chip of the given chip.
|
static java.util.Collection |
getLocalizationsByArgumentType(JaloSession jaloSession,
Type argumentType) |
static java.util.List |
getTypeEntries(java.util.Collection types,
boolean checkCreate)
Creates a List which contains TypeEntries for the given Collection of ComposedTypes.
|
static java.util.List |
getTypeEntries(ComposedType type)
This convenience function returns the tree of the TypeEntries as a flat list.
|
static java.util.List |
getTypeEntries(ComposedType type,
boolean checkCreate)
This convenience function returns the tree of the TypeEntries as a flat list.
|
static GenericHelper.TypeEntry |
getTypeEntry(ComposedType type)
Returns a TypeEntry for this ComposedType.
|
static boolean |
isExplorableFromEditor(ComposedType type) |
static boolean |
isExplorableFromExplorerMenu(JaloSession jaloSession,
ComposedType type) |
static java.lang.String |
toStringForReference(DisplayState displayState,
Item item) |
protected static final GenericHelperImpl getImplementation()
public static final boolean isExplorableFromEditor(ComposedType type)
public static final boolean isExplorableFromExplorerMenu(JaloSession jaloSession, ComposedType type)
public static java.util.Collection getLocalizationsByArgumentType(JaloSession jaloSession, Type argumentType)
public static java.util.List getTypeEntries(ComposedType type)
public static java.util.List getTypeEntries(ComposedType type, boolean checkCreate)
checkCreate - Whether or not to check for the right to create instances of this type.public static java.util.List getTypeEntries(java.util.Collection types,
boolean checkCreate)
checkCreate - Whether or not to check for the right to create instances of this type.public static GenericHelper.TypeEntry getTypeEntry(ComposedType type)
public static java.lang.String toStringForReference(DisplayState displayState, Item item)
public static GenericItemChip getItemChip(Chip currentChip)
GenericItemChip traversing from bottom to top of chip hierarchy starting by parent of current
chip or null if no appropriate parent chip could be found.currentChip - the chip for which to start the search (will begin with the chip's parent)GenericItemChip or null if no appropriate parent chip could be
found.public static AttributeChip getAttributeChip(Chip currentChip)
AttributeChip traversing from bottom to top of chip hierarchy starting by parent of current
chip or null if no appropriate parent chip could be found.currentChip - the chip for which to start the search (will begin with the chip's parent)AttributeChip or null if no appropriate parent chip could be
found.public static Chip findParentChip(Chip currentChip, java.lang.Class chipClass)
currentChip - the chip for which to start the search (will begin with the chip's parent)chipClass - the Class which has to match the result chippublic static ActionResult checkAttributes(DisplayState displayState, ComposedType itemType, java.util.Map values)
public static boolean checkAttribute(DisplayState displayState, ActionResult result, AttributeDescriptor descriptor, java.lang.Object value)
Copyright © 2017 SAP SE. All Rights Reserved.