public final class RelationshipRules extends Object
This class concentrates those checks so that they can be called easily from the various places in the codebase that work with relationships.
| Modifier and Type | Method and Description |
|---|---|
static <E> void |
checkCreate(InventoryBackend<E> backend,
E origin,
Relationships.Direction direction,
Relationships.WellKnown relationship,
E target) |
static <E> void |
checkCreate(InventoryBackend<E> backend,
E origin,
Relationships.Direction direction,
String relationship,
E target) |
static <E> void |
checkDelete(InventoryBackend<E> backend,
E origin,
Relationships.Direction direction,
Relationships.WellKnown relationship,
E target) |
static <E> void |
checkDelete(InventoryBackend<E> backend,
E origin,
Relationships.Direction direction,
String relationship,
E target) |
public static <E> void checkCreate(InventoryBackend<E> backend, E origin, Relationships.Direction direction, Relationships.WellKnown relationship, E target)
public static <E> void checkCreate(InventoryBackend<E> backend, E origin, Relationships.Direction direction, String relationship, E target)
public static <E> void checkDelete(InventoryBackend<E> backend, E origin, Relationships.Direction direction, Relationships.WellKnown relationship, E target)
public static <E> void checkDelete(InventoryBackend<E> backend, E origin, Relationships.Direction direction, String relationship, E target)
Copyright © 2015 Red Hat, Inc.. All rights reserved.