Examples of parameterExists()


Examples of org.gudy.azureus2.core3.download.DownloadManagerState.parameterExists()

        Debug.printStackTrace(e);
      }
    }
     
    DownloadManagerState state = download_manager.getDownloadState();
    if (state.parameterExists(DownloadManagerState.PARAM_DND_FLAGS)) {
      long flags = state.getLongParameter(DownloadManagerState.PARAM_DND_FLAGS);
      cached_complete_excluding_dnd = (flags & STATE_FLAG_COMPLETE_NO_DND) != 0;
      cached_has_dnd_files = (flags & STATE_FLAG_HASDND) != 0;
      cached_values_set = true;
    }
View Full Code Here

Examples of org.mifosplatform.infrastructure.core.api.JsonCommand.parameterExists()

            final JsonArray array = command.arrayOfParameterNamed(InterestRateChartSlabApiConstants.incentivesParamName);
            if (array != null) {
                for (int i = 0; i < array.size(); i++) {
                    final JsonObject incentiveElement = array.get(i).getAsJsonObject();
                    JsonCommand incentivesCommand = JsonCommand.fromExistingCommand(command, incentiveElement);
                    if (incentivesCommand.parameterExists(InterestIncentiveApiConstants.idParamName)) {
                        final Long interestIncentiveId = incentivesCommand
                                .longValueOfParameterNamed(InterestIncentiveApiConstants.idParamName);
                        final InterestIncentives interestIncentives = chartSlab.findInterestIncentive(interestIncentiveId);
                        if (interestIncentives == null) {
                            baseDataValidator.parameter(InterestIncentiveApiConstants.idParamName).value(interestIncentiveId)
View Full Code Here

Examples of org.mifosplatform.infrastructure.core.api.JsonCommand.parameterExists()

                                .longValueOfParameterNamed(InterestIncentiveApiConstants.idParamName);
                        final InterestIncentives interestIncentives = chartSlab.findInterestIncentive(interestIncentiveId);
                        if (interestIncentives == null) {
                            baseDataValidator.parameter(InterestIncentiveApiConstants.idParamName).value(interestIncentiveId)
                                    .failWithCode("no.interest.incentive.associated.with.id");
                        } else if (incentivesCommand.parameterExists(deleteParamName)) {
                            if (chartSlab.removeInterestIncentive(interestIncentives)) {
                                deleteIncentives.put(idParamName, interestIncentiveId);
                            }
                        } else {
                            interestIncentives.update(incentivesCommand, IncentiveChanges, baseDataValidator, locale);
View Full Code Here

Examples of org.mifosplatform.infrastructure.core.api.JsonCommand.parameterExists()

                    if (chartCommand.parameterExists(idParamName)) {
                        final Long chartId = chartCommand.longValueOfParameterNamed(idParamName);
                        final InterestRateChart chart = this.findChart(chartId);
                        if (chart == null) {
                            baseDataValidator.parameter(idParamName).value(chartId).failWithCode("no.chart.associated.with.id");
                        } else if (chartCommand.parameterExists(deleteParamName)) {
                            if (this.removeChart(chart)) {
                                deletedCharts.put(idParamName, chartId);
                            }
                        } else {
                            chart.update(chartCommand, chartsChanges, baseDataValidator, this.setOfCharts(), this.currency().getCode());
View Full Code Here

Examples of org.mifosplatform.infrastructure.core.api.JsonCommand.parameterExists()

            final JsonArray array = command.arrayOfParameterNamed(InterestRateChartApiConstants.chartSlabs);
            if (array != null) {
                for (int i = 0; i < array.size(); i++) {
                    final JsonObject chartSlabsElement = array.get(i).getAsJsonObject();
                    JsonCommand chartSlabsCommand = JsonCommand.fromExistingCommand(command, chartSlabsElement);
                    if (chartSlabsCommand.parameterExists(idParamName)) {
                        final Long chartSlabId = chartSlabsCommand.longValueOfParameterNamed(idParamName);
                        final InterestRateChartSlab chartSlab = this.findChartSlab(chartSlabId);
                        if (chartSlab == null) {
                            baseDataValidator.parameter(idParamName).value(chartSlabId).failWithCode("no.chart.slab.associated.with.id");
                        } else if (chartSlabsCommand.parameterExists(deleteParamName)) {
View Full Code Here

Examples of org.mifosplatform.infrastructure.core.api.JsonCommand.parameterExists()

                    if (chartSlabsCommand.parameterExists(idParamName)) {
                        final Long chartSlabId = chartSlabsCommand.longValueOfParameterNamed(idParamName);
                        final InterestRateChartSlab chartSlab = this.findChartSlab(chartSlabId);
                        if (chartSlab == null) {
                            baseDataValidator.parameter(idParamName).value(chartSlabId).failWithCode("no.chart.slab.associated.with.id");
                        } else if (chartSlabsCommand.parameterExists(deleteParamName)) {
                            if (this.removeChartSlab(chartSlab)) {
                                deleteChartSlabs.put(idParamName, chartSlabId);
                            }
                        } else {
                            chartSlab.update(chartSlabsCommand, chartSlabsChanges, baseDataValidator, locale);
View Full Code Here

Examples of org.mifosplatform.infrastructure.core.api.JsonCommand.parameterExists()

            final JsonArray array = command.arrayOfParameterNamed(DepositsApiConstants.chartsParamName);
            if (array != null) {
                for (int i = 0; i < array.size(); i++) {
                    final JsonObject chartElement = array.get(i).getAsJsonObject();
                    JsonCommand chartCommand = JsonCommand.fromExistingCommand(command, chartElement);
                    if (chartCommand.parameterExists(idParamName)) {
                        final Long chartId = chartCommand.longValueOfParameterNamed(idParamName);
                        final InterestRateChart chart = this.findChart(chartId);
                        if (chart == null) {
                            baseDataValidator.parameter(idParamName).value(chartId).failWithCode("no.chart.associated.with.id");
                        } else if (chartCommand.parameterExists(deleteParamName)) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.ResourcePath.parameterExists()

     */
    public Resource get(RequestContext requestContext) throws RegistryException {

        ResourcePath resourcePath = requestContext.getResourcePath();
        Resource resource;
        if (resourcePath.parameterExists(RegistryConstants.BROWSE_PROPERTY)) {

            resource = generateBrowseView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.EDIT_PROPERTY)) {

View Full Code Here

Examples of org.wso2.carbon.registry.core.ResourcePath.parameterExists()

        Resource resource;
        if (resourcePath.parameterExists(RegistryConstants.BROWSE_PROPERTY)) {

            resource = generateBrowseView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.EDIT_PROPERTY)) {

            resource = generateEditView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.NEW_PROPERTY)) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.ResourcePath.parameterExists()

        } else if (resourcePath.parameterExists(RegistryConstants.EDIT_PROPERTY)) {

            resource = generateEditView(resourcePath, requestContext);

        } else if (resourcePath.parameterExists(RegistryConstants.NEW_PROPERTY)) {

            resource = generateNewView(resourcePath, requestContext);

        } else {
            resource = getRawResource(requestContext);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.