APISonar


com.thinkbiganalytics.metadata.modeshape.common.JcrPropertyConstants.JSON

> com > thinkbiganalytics > metadata > modeshape > common > JcrPropertyConstants > JSON
com APIs thinkbiganalytics APIs metadata APIs modeshape APIs common APIs JcrPropertyConstants APIs JSON APIs

Example 1
public List<? extends ServiceLevelAgreementActionConfiguration> getActionConfigurations(boolean allowClassNotFound) {
        try {
            @SuppressWarnings("unchecked")
            Iterator<Node> itr = (Iterator<Node>) this.node.getNodes(ACTION_CONFIGURATIONS);

            return Lists.newArrayList(Iterators.transform(itr, (actionConfigNode) -> {
                  return JcrUtil.getGenericJson(actionConfigNode, JcrPropertyConstants.JSON,allowClassNotFound);
            }));



        } catch (RepositoryException e) {
            throw new MetadataRepositoryException("Failed to retrieve the metric nodes", e);
        }
    }
Example 2
public Metric getMetric() {
        Node metricNode = (Node) JcrPropertyUtil.getProperty(this.node, METRIC);
        return JcrUtil.getGenericJson(metricNode, JcrPropertyConstants.JSON);

    }