/** * Returns the first active {@link NamingSystem} instances that match the provided type and value * * @param id ID of a NamingSystem bundle * @param type NamingSystem identifier type (oid, uuid, ...) * @param value value * @return {@link NamingSystem} instance that match the provided type and value */ default Optional<NamingSystem> findActiveNamingSystemByTypeAndValue(String id, NamingSystem.NamingSystemIdentifierType type, String value) { return findFirstNamingSystem(id, allOf( byTypeAndValue(type, value), byStatus(Enumerations.PublicationStatus.ACTIVE))); }
/** * Returns the first active {@link NamingSystem} instances that match the provided type and value * * @param id ID of a NamingSystem bundle * @param type NamingSystem identifier type (oid, uuid, ...) * @param value value * @return {@link NamingSystem} instance that match the provided type and value */ default Optional<NamingSystem> findActiveNamingSystemByTypeAndValue(String id, NamingSystem.NamingSystemIdentifierType type, String value) { return findFirstNamingSystem(id, allOf( byTypeAndValue(type, value), byStatus(Enumerations.PublicationStatus.ACTIVE))); }