Package de.espirit.firstspirit.webedit
Interface DataAssociationAgent
public interface DataAssociationAgent
Agent providing methods regarding data association.
- Since:
- 5.2.101
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SpecialistType<DataAssociationAgent>
Agent providing methods regarding data association. -
Method Summary
Modifier and TypeMethodDescriptionDetermines the associations for the specified object and association namespace.<T,
A> @Nullable Set<A> associate
(DataAssociationHandler.Type<? extends DataAssociationHandler<T, A>> token, T object) Determines the associations for the specified object and association namespace.associateIds
(DataAssociationHandler.Type<? extends DataAssociationHandler<T, A>> type, T object) Determines the associations for the specified object and association namespace.<T,
A> A getFromId
(DataAssociationHandler.Type<? extends DataAssociationHandler<T, A>> token, @NotNull String id) Determines the association object belonging to the specified namespace and association identifier.@NotNull String
Returns the identifier of the specified data association.<T,
A> @NotNull String getId
(DataAssociationHandler.Type<? extends DataAssociationHandler<T, A>> token, A association) Returns the identifier of the specified data association.
-
Field Details
-
TYPE
Agent providing methods regarding data association.- Since:
- 5.2.101
-
-
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
-