public class GenericHelper extends 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,
Object value) |
static ActionResult |
checkAttributes(DisplayState displayState,
ComposedType itemType,
Map values) |
static Chip |
findParentChip(Chip currentChip,
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 Collection |
getLocalizationsByArgumentType(JaloSession jaloSession,
Type argumentType) |
static List |
getTypeEntries(Collection types,
boolean checkCreate)
Creates a List which contains TypeEntries for the given Collection of ComposedTypes.
|
static List |
getTypeEntries(ComposedType type)
This convenience function returns the tree of the TypeEntries as a flat list.
|
static 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 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 Collection getLocalizationsByArgumentType(JaloSession jaloSession, Type argumentType)
public static List getTypeEntries(ComposedType type)
public static List getTypeEntries(ComposedType type, boolean checkCreate)
checkCreate - Whether or not to check for the right to create instances of this type.public static List getTypeEntries(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 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, 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, Map values)
public static boolean checkAttribute(DisplayState displayState, ActionResult result, AttributeDescriptor descriptor, Object value)
Copyright © 2017 SAP SE. All Rights Reserved.