[#1509] Sync Target type with SW and DS types / getByKey (Mgmt Layer) (#1516)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2023-12-13 16:42:10 +02:00
committed by GitHub
parent 4ac42c80d7
commit d951cee6b2
5 changed files with 84 additions and 27 deletions

View File

@@ -32,6 +32,14 @@ import org.springframework.security.access.prepost.PreAuthorize;
*/
public interface TargetTypeManagement {
/**
* @param key
* as {@link TargetType#getKey()}
* @return {@link TargetType}
*/
@PreAuthorize(SpPermission.SpringEvalExpressions.HAS_AUTH_READ_TARGET)
Optional<TargetType> getByKey(@NotEmpty String key);
/**
* @param name
* as {@link TargetType#getName()}