Package de.espirit.firstspirit.agency
Interface ResolutionAgent
public interface ResolutionAgent
Definition for an agent offering access to resolution information defined for the underlying project.
Example:
SpecialistsBroker.requireSpecialist(ResolutionAgent.TYPE)
- Since:
- 4.2.405
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SpecialistType<ResolutionAgent>
The agent's technical type to be used to request the agent from aSpecialistsBroker
. -
Method Summary
Modifier and TypeMethodDescriptionGet the resolution defining the original.@Nullable Resolution
getResolutionByName
(String resolutionName) Get the resolution having the given symbolic name.Get an unmodifiable list of available resolutions.@NotNull List<Resolution>
getResolutionsByTag
(@NotNull String... tags) Get an unmodifiable list of available resolutions tagged with one of the given tags.
-
Field Details
-
TYPE
The agent's technical type to be used to request the agent from aSpecialistsBroker
.- Since:
- 4.2.405
-
-
Method Details
-
getResolutions
List<Resolution> getResolutions()Get an unmodifiable list of available resolutions.- Returns:
- a list of resolutions.
- Since:
- 5.1.28
-
getResolutionByName
Get the resolution having the given symbolic name.- Parameters:
resolutionName
- The resolution's symbolic name.- Returns:
- The according resolution or
null
- Since:
- 4.2.405
-
getOriginalResolution
Resolution getOriginalResolution()Get the resolution defining the original.- Returns:
- The original resolution
- Since:
- 4.2.405
-
getResolutionsByTag
Get an unmodifiable list of available resolutions tagged with one of the given tags.- Parameters:
tags
- One or more tags the resolution must be tagged with, to be included in the result.- Returns:
- A list of resolutions, may be empty.
- Since:
- 5.2.210803
-