Search in sources :

Example 6 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project pinot by linkedin.

the class SegmentGeneratorConfig method getQualifyingDimensions.

/**
   * Returns a comma separated list of qualifying dimension name strings
   * @param type FieldType to filter on
   * @return
   */
@JsonIgnore
private String getQualifyingDimensions(FieldType type) {
    List<String> dimensions = new ArrayList<>();
    for (final FieldSpec spec : getSchema().getAllFieldSpecs()) {
        if (spec.getFieldType() == type) {
            dimensions.add(spec.getName());
        }
    }
    Collections.sort(dimensions);
    return StringUtils.join(dimensions, ",");
}
Also used : ArrayList(java.util.ArrayList) TimeFieldSpec(com.linkedin.pinot.common.data.TimeFieldSpec) FieldSpec(com.linkedin.pinot.common.data.FieldSpec) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 7 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project OpenAttestation by OpenAttestation.

the class Certificate method getX509Certificate.

@JsonIgnore
@Override
public X509Certificate getX509Certificate() {
    if (certificate == null) {
        return null;
    }
    try {
        log.debug("Certificate bytes length {}", certificate.length);
        log.info("Certificate bytes length {}", certificate.length);
        return X509Util.decodeDerCertificate(certificate);
    } catch (CertificateException e) {
        //            throw new ASException(ce, ErrorCode.MS_CERTIFICATE_ENCODING_ERROR, ce.getClass().getSimpleName()); 
        throw new X509CertificateFormatException(e, certificate);
    }
}
Also used : X509CertificateFormatException(com.intel.mtwilson.util.x509.X509CertificateFormatException) CertificateException(java.security.cert.CertificateException) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 8 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project OpenAttestation by OpenAttestation.

the class Configuration method setXmlContent.

@JsonIgnore
public void setXmlContent(String xmlContent) throws IOException {
    Properties p = new Properties();
    p.loadFromXML(new ByteArrayInputStream(xmlContent.getBytes()));
    // only set it if we were able to deserialize;  if there is an error during loadFromXml then we retain the previous content
    content = p;
}
Also used : ByteArrayInputStream(java.io.ByteArrayInputStream) Properties(java.util.Properties) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 9 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project OpenAttestation by OpenAttestation.

the class Configuration method getXmlContent.

@JsonIgnore
public String getXmlContent() throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    content.storeToXML(out, name);
    return out.toString();
}
Also used : ByteArrayOutputStream(java.io.ByteArrayOutputStream) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 10 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project motech by motech.

the class SettingsDto method getTaskRetriesProps.

@JsonIgnore
public Properties getTaskRetriesProps() {
    Properties props = new Properties();
    props.putAll(this.taskRetries);
    return props;
}
Also used : Properties(java.util.Properties) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Aggregations

JsonIgnore (org.codehaus.jackson.annotate.JsonIgnore)12 ArrayList (java.util.ArrayList)3 Properties (java.util.Properties)3 Date (java.util.Date)2 Predicate (org.apache.commons.collections.Predicate)2 OrderJobInfo (com.emc.vipr.model.catalog.OrderJobInfo)1 DiagutilInfo (com.emc.vipr.model.sys.diagutil.DiagutilInfo)1 X509CertificateFormatException (com.intel.mtwilson.util.x509.X509CertificateFormatException)1 FieldSpec (com.linkedin.pinot.common.data.FieldSpec)1 TimeFieldSpec (com.linkedin.pinot.common.data.TimeFieldSpec)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 CertificateException (java.security.cert.CertificateException)1