/** * @deprecated - use {@link org.apache.isis.applib.services.repository.RepositoryService#firstMatch(Class, Predicate)} */ @Deprecated protected <T> T firstMatch(final Class<T> ofType, final Filter<T> filter) { return getContainer().firstMatch(ofType, filter); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#firstMatch(Class, String) */ protected <T> T firstMatch(final Class<T> ofType, final String title) { return getContainer().firstMatch(ofType, title); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#firstMatch(Class, Filter) */ protected <T> T firstMatch(final Class<T> ofType, final Filter<T> filter) { return getContainer().firstMatch(ofType, filter); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#firstMatch(Class, Object) */ protected <T> T firstMatch(final Class<T> ofType, final T pattern) { return getContainer().firstMatch(ofType, pattern); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#firstMatch(Query) */ protected <T> T firstMatch(final Query<T> query) { return getContainer().firstMatch(query); }
/** * Returns the first instance of the specified type (including subtypes) * that matches the supplied title, or <tt>null</tt> if none. * * <p> * This method is useful during exploration/prototyping, but - because the filtering is performed client-side - * this method is only really suitable for initial development/prototyping, or for classes with very few * instances. Use {@link #firstMatch(Query)} for production code. * </p> * * <p> * The method simply delegates to the {@link DomainObjectContainer}. * </p> * * @see DomainObjectContainer#firstMatch(Class, String) * * @deprecated - convert to use {@link org.apache.isis.applib.services.repository.RepositoryService#firstMatch(Class, Predicate)} instead */ @Deprecated protected <T> T firstMatch(final Class<T> ofType, final String title) { return getContainer().firstMatch(ofType, title); }
/** * Returns the first instance of the specified type (including subtypes) * that matches the supplied {@link Predicate}, or <tt>null</tt> if none. * * <p> * This method is useful during exploration/prototyping, but - because the filtering is performed client-side - * this method is only really suitable for initial development/prototyping, or for classes with very few * instances. Use {@link #firstMatch(Query)} for production code. * </p> * * <p> * The method simply delegates to the {@link DomainObjectContainer}. * </p> * * @see DomainObjectContainer#firstMatch(Class, Predicate) * * @deprecated - use {@link org.apache.isis.applib.services.repository.RepositoryService#firstMatch(Class, Predicate)} */ @Deprecated protected <T> T firstMatch(final Class<T> ofType, final Predicate<T> predicate) { return getContainer().firstMatch(ofType, predicate); }
/** * Returns the first instance that matches the supplied query, or <tt>null</tt> if none. * * <p> * This method is the recommended way of querying for an instance when one or more may match. See also * {@link #uniqueMatch(Query)}. * </p> * * <p> * The method simply delegates to the {@link DomainObjectContainer}. * </p> * * @see DomainObjectContainer#firstMatch(Query) * @see #uniqueMatch(Query) * * @deprecated - use {@link org.apache.isis.applib.services.repository.RepositoryService#firstMatch(Class, Predicate)} */ @Deprecated protected <T> T firstMatch(final Query<T> query) { return getContainer().firstMatch(query); }
/** * Returns the first instance of the specified type (including subtypes) * that matches the supplied object as a pattern, or <tt>null</tt> if none. * * <p> * This method is useful during exploration/prototyping, but - because the filtering is performed client-side - * this method is only really suitable for initial development/prototyping, or for classes with very few * instances. Use {@link #firstMatch(Query)} for production code. * </p> * * <p> * The method simply delegates to the {@link DomainObjectContainer}. * </p> * * @see DomainObjectContainer#firstMatch(Class, Object) * * @deprecated - convert to use {@link org.apache.isis.applib.services.repository.RepositoryService#firstMatch(Class, Predicate)} instead */ @Deprecated protected <T> T firstMatch(final Class<T> ofType, final T pattern) { return getContainer().firstMatch(ofType, pattern); }