Package com.cumulocity.me.lang

Examples of com.cumulocity.me.lang.HashMap$EntrySet


        CumulocityAlarmStatuses status = alarmFilter.getStatus();
        ManagedObjectRepresentation source = alarmFilter.getSource();
        Date dateFrom = alarmFilter.getFromDate();
        Date dateTo = alarmFilter.getToDate();

        Map filter = new HashMap();

        if (null != status) {
            filter.put(PARAMETER_STATUS, status.name());
        }
        if (null != source) {
            filter.put(PARAMETER_SOURCE, source.getId().getValue());
        }
        if (null != dateFrom) {
            filter.put(DATE_FROM, DateUtils.format(dateFrom));
        }
        if (null != dateTo) {
            filter.put(DATE_TO, DateUtils.format(dateTo));
        }

        QueryURLBuilder query = new QueryURLBuilder(templateUrlParser, filter, getAlarmsApiRepresentation().getURITemplates(),
                OPTIONAL_PARAMETERS);
        String queryUrl = query.build();
View Full Code Here


        return new AuditRecordCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getAuditRecordsByTypeAndApplication(String type, String application) throws SDKException {
        String urlTemplate = getAuditRecordsRepresentation().getAuditRecordsForTypeAndApplication();
        Map filter = new HashMap();
        filter.put(PARAMETER_TYPE, type);
        filter.put(PARAMETER_APPLICATION, application);
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new AuditRecordCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

    }

    private PagedCollectionResource getAuditRecordsByTypeAndUserAndApplication(String user, String type, String application)
            throws SDKException {
        String urlTemplate = getAuditRecordsRepresentation().getAuditRecordsForTypeAndUserAndApplication();
        Map filter = new HashMap();
        filter.put(PARAMETER_USER, user);
        filter.put(PARAMETER_TYPE, type);
        filter.put(PARAMETER_APPLICATION, application);
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new AuditRecordCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getMeasurementsBySource(ManagedObjectRepresentation source)
            throws SDKException {
        Map filter = new HashMap();
        filter.put(SOURCE, source.getId().getValue());
        String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForSource();
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getMeasurementsByDate(Date dateFrom, Date dateTo)
            throws SDKException {
        Map filter = new HashMap();
        filter.put(DATE_FROM, DateUtils.format(dateFrom));
        filter.put(DATE_TO, DateUtils.format(dateTo));
        String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForDate();
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getMeasurementsByFragmentType(Class fragmentType)
            throws SDKException {
        Map filter = new HashMap();
        filter.put(FRAGMENT_TYPE, ExtensibilityConverter.classToStringRepresentation(fragmentType));
        String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForFragmentType();
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getMeasurementsByType(String type) throws SDKException {
        Map filter = new HashMap();
        filter.put(TYPE, type);
        String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForType();
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getMeasurementsBySourceAndDate(ManagedObjectRepresentation source,
            Date dateFrom, Date dateTo) throws SDKException {
        Map filter = new HashMap();
        filter.put(SOURCE, source.getId().getValue());
        filter.put(DATE_FROM, DateUtils.format(dateFrom));
        filter.put(DATE_TO, DateUtils.format(dateTo));
        String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForSourceAndDate();
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getMeasurementsBySourceAndFragmentType(
            ManagedObjectRepresentation source, Class fragmentType) throws SDKException {
        Map filter = new HashMap();
        filter.put(SOURCE, source.getId().getValue());
        filter.put(FRAGMENT_TYPE, ExtensibilityConverter.classToStringRepresentation(fragmentType));
        String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForSourceAndFragmentType();
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }

    private PagedCollectionResource getMeasurementsBySourceAndType(ManagedObjectRepresentation source,
            String type) throws SDKException {
        Map filter = new HashMap();
        filter.put(SOURCE, source.getId().getValue());
        filter.put(TYPE, type);
        String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForSourceAndType();
        String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
        return new MeasurementCollectionImpl(restConnector, url, pageSize);
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.me.lang.HashMap$EntrySet

Copyright © 2018 www.massapicom. 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.