/* ================================================================== * GeneralNodeDatumDao.java - Aug 22, 2014 6:49:58 AM * * Copyright 2007-2014 SolarNetwork.net Dev Team * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * ================================================================== */ package net.solarnetwork.central.datum.dao; import java.util.Set; import net.solarnetwork.central.dao.FilterableDao; import net.solarnetwork.central.dao.GenericDao; import net.solarnetwork.central.datum.domain.GeneralNodeDatumMetadata; import net.solarnetwork.central.datum.domain.GeneralNodeDatumMetadataFilter; import net.solarnetwork.central.datum.domain.GeneralNodeDatumMetadataFilterMatch; import net.solarnetwork.central.datum.domain.NodeSourcePK; /** * DAO API for {@link GeneralNodeDatumMetadata}. * * @author matt * @version 1.1 */ public interface GeneralNodeDatumMetadataDao extends GenericDao<GeneralNodeDatumMetadata, NodeSourcePK>, FilterableDao<GeneralNodeDatumMetadataFilterMatch, NodeSourcePK, GeneralNodeDatumMetadataFilter> { /** * Get all available node + source ID combinations for a given set of node * IDs matching a metadata search filter. * * The metadata filter must be expressed in LDAP search filter style, using * JSON pointer style paths for keys, for example {@code (/m/foo=bar)}, * {@code (t=foo)}, or {@code (&(/**/foo=bar)(t=special))}. * * @param nodeIds * the node IDs to search for * @param metadataFilter * A metadata search filter, in LDAP search filter syntax. * @return the distinct node ID and source IDs combinations that match the * given filter (never <em>null</em>) * @since 1.1 */ Set<NodeSourcePK> getFilteredSources(Long[] nodeIds, String metadataFilter); }