/** * EasySOA Registry * Copyright 2012-2013 Open Wide * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Contact : easysoa-dev@googlegroups.com */ package org.easysoa.registry.indicators.rest; import java.util.List; import org.easysoa.registry.DocumentService; import org.easysoa.registry.types.SoaNode; /** * * @author jguillemotte, mdutoo */ public class PlaceholdersIndicatorProvider extends QueryCountIndicator { private String docType; // indicator category private String category; /** * Constructor * @param docType * @param category Indicator category */ public PlaceholdersIndicatorProvider(String docType, String category) { super(DocumentService.NXQL_SELECT_FROM + docType + DocumentService.NXQL_WHERE_NO_PROXY + DocumentService.NXQL_AND + SoaNode.XPATH_ISPLACEHOLDER + " = 1", DocumentService.NXQL_SELECT_FROM + docType + DocumentService.NXQL_WHERE_NO_PROXY); this.docType = docType; this.category = category; } @Override public List<String> getRequiredIndicators() { return null; } @Override public String getName() { return docType + "Placeholders"; } @Override public String getCategory(){ return category; } @Override public String getDescription() { return ""; } @Override public String getDocType() { return docType; } }