/** * @deprecated - use {@link org.apache.isis.applib.services.repository.RepositoryService#allMatches(Class, Predicate, long...)}. */ @Deprecated protected <T> List<T> allMatches(final Class<T> ofType, final Filter<? super T> filter, long... range) { return getContainer().allMatches(ofType, filter, range); }
/** * 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#uniqueMatch(Class, String) */ protected <T> T uniqueMatch(final Class<T> ofType, final String title) { return getContainer().uniqueMatch(ofType, title); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#uniqueMatch(Class, Object) */ protected <T> T uniqueMatch(final Class<T> ofType, final T pattern) { return getContainer().uniqueMatch(ofType, pattern); }
/** * Convenience methods that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#isValid(Object) */ protected boolean isValid(final Object domainObject) { return getContainer().isValid(domainObject); }
/** * @deprecated - not supported, will throw a RuntimeException */ @Deprecated protected <T> T newAggregatedInstance(final Object parent, final Class<T> ofType) { return getContainer().newAggregatedInstance(parent, ofType); }
/** * @deprecated - use {@link org.apache.isis.applib.services.repository.RepositoryService#uniqueMatch(Class, Predicate)} */ @Deprecated protected <T> T uniqueMatch(final Class<T> ofType, final Filter<T> filter) { return getContainer().uniqueMatch(ofType, filter); }
/** * @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#allMatches(Class, Object) */ protected <T> List<T> allMatches(final Class<T> ofType, final T pattern) { return getContainer().allMatches(ofType, pattern); }
/** * 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); }
/** * Convenience methods that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#validate(Object) */ protected String validate(final Object domainObject) { return getContainer().validate(domainObject); }
/** * Delete the provided object from the persistent object store. */ protected void remove(final Object persistentDomainObject) { getContainer().remove(persistentDomainObject); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#allMatches(Class, Filter) */ protected <T> List<T> allMatches(final Class<T> ofType, final Filter<? super T> filter) { return getContainer().allMatches(ofType, filter); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#allMatches(Class, String) */ protected <T> List<T> allMatches(final Class<T> ofType, final String title) { return getContainer().allMatches(ofType, title); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#allMatches(Query) */ protected <T> List<T> allMatches(final Query<T> query) { return getContainer().allMatches(query); }
/** * Convenience method that delegates to {@link DomainObjectContainer}. * * @see DomainObjectContainer#uniqueMatch(Query) */ protected <T> T uniqueMatch(final Query<T> query) { return getContainer().uniqueMatch(query); }
/** * Display the specified message as a warning to the user, in a more visible * fashion, but without requiring explicit acknowledgement. */ protected void warnUser(final String message) { getContainer().warnUser(message); }
/** * Saves the object, but only if not already {@link #isPersistent() * persistent}. * * @see #isPersistent() * @see #persist(Object) */ @Hidden protected void persistIfNotAlready(final Object domainObject) { getContainer().persistIfNotAlready(domainObject); }