Interface DataAssociationAgent


public interface DataAssociationAgent
Agent providing methods regarding data association.
Since:
5.2.101
See Also:
  • Field Details

  • Method Details

    • associate

      @Nullable @Nullable Set<String> associate(@NotNull @NotNull String namespace, @NotNull @NotNull Object object)
      Determines the associations for the specified object and association namespace.
      Parameters:
      namespace - The namespace of the requested data association.
      object - The object to determine the association from.
      Returns:
      A list of association identifiers belonging to the specified element, or null
      Since:
      5.2.101
    • associate

      @Nullable <T, A> @Nullable Set<A> associate(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token, @NotNull T object)
      Determines the associations for the specified object and association namespace.
      Type Parameters:
      T - The object type.
      A - The association object type.
      Parameters:
      token - The type of the requested data association.
      object - The object to determine the association from.
      Returns:
      A list of associations belonging to the specified element, or null
      Since:
      5.2.101
    • associateIds

      @Nullable <T, A> @Nullable Set<String> associateIds(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> type, @NotNull T object)
      Determines the associations for the specified object and association namespace.
      Type Parameters:
      T - The object type.
      A - The association object type.
      Parameters:
      type - The type of the requested data association.
      object - The object to determine the association from.
      Returns:
      A list of association identifiers belonging to the specified element, or null
      Since:
      5.2.101
    • getId

      @NotNull <T, A> @NotNull String getId(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token, @NotNull A association)
      Returns the identifier of the specified data association.
      Type Parameters:
      T - The object type.
      A - The association object type.
      Parameters:
      token - The type of the data association.
      association - The association to get the identifier from.
      Returns:
      The identifier of the specified association.
      Since:
      5.2.101
    • getId

      @NotNull @NotNull String getId(@NotNull @NotNull String namespace, @NotNull @NotNull Object association)
      Returns the identifier of the specified data association.
      Parameters:
      namespace - The namespace of the data association.
      association - The association to get the identifier from.
      Returns:
      The identifier of the specified association.
      Since:
      5.2.101
    • getFromId

      @Nullable <T, A> A getFromId(@NotNull DataAssociationHandler.Type<? extends DataAssociationHandler<T,A>> token, @NotNull @NotNull String id)
      Determines the association object belonging to the specified namespace and association identifier.
      Type Parameters:
      T - The object type.
      A - The association object type.
      Parameters:
      token - The type of the data association.
      id - The association identifier to get the association object from.
      Returns:
      The association object belonging to the specified identifer, or null
      Since:
      5.2.101