Search in sources :

Example 26 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project ambrose by twitter.

the class CascadingJob method setJobStats.

@JsonIgnore
public void setJobStats(HadoopStepStats stats) {
    Counters counters = new Counters();
    for (String groupName : stats.getCounterGroups()) {
        for (String counterName : stats.getCountersFor(groupName)) {
            Long counterValue = stats.getCounterValue(groupName, counterName);
            counters.findCounter(groupName, counterName).setValue(counterValue);
        }
    }
    setCounterGroupMap(CounterGroup.counterGroupsByName(counters));
}
Also used : Counters(org.apache.hadoop.mapred.Counters) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 27 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project textdb by TextDB.

the class Dictionary method setPatternList.

@JsonIgnore
public void setPatternList() {
    this.patternList = new ArrayList<>();
    for (int i = 0; i < dictionaryEntries.size(); i++) {
        Pattern pattern = Pattern.compile(dictionaryEntries.get(i), Pattern.CASE_INSENSITIVE);
        patternList.add(pattern);
    }
}
Also used : Pattern(java.util.regex.Pattern) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 28 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project cas by apereo.

the class CasEvent method getGeoLocation.

/**
 * Gets geo location.
 *
 * @return the geo location
 */
@JsonIgnore
public GeoLocationRequest getGeoLocation() {
    val request = new GeoLocationRequest();
    request.setAccuracy(get(FIELD_GEO_ACCURACY));
    request.setTimestamp(get(FIELD_GEO_TIMESTAMP));
    request.setLongitude(get(FIELD_GEO_LONGITUDE));
    request.setLatitude(get(FIELD_GEO_LATITUDE));
    return request;
}
Also used : lombok.val(lombok.val) GeoLocationRequest(org.apereo.cas.authentication.adaptive.geo.GeoLocationRequest) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 29 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project cas by apereo.

the class ChainingRegisteredServiceAccessStrategy method getDelegatedAuthenticationPolicy.

@Override
@JsonIgnore
public RegisteredServiceDelegatedAuthenticationPolicy getDelegatedAuthenticationPolicy() {
    val policy = new ChainingRegisteredServiceDelegatedAuthenticationPolicy();
    policy.setOperator(this.operator);
    strategies.stream().map(RegisteredServiceAccessStrategy::getDelegatedAuthenticationPolicy).forEach(policy::addStrategy);
    return policy;
}
Also used : lombok.val(lombok.val) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 30 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project cas by apereo.

the class RegisteredServicePublicKeyImpl method initializePublicKeyFactoryBean.

@JsonIgnore
private PublicKeyFactoryBean initializePublicKeyFactoryBean() throws Exception {
    val resolved = SpringExpressionLanguageValueResolver.getInstance().resolve(this.location);
    val resource = ResourceUtils.getResourceFrom(resolved);
    val factory = new PublicKeyFactoryBean(resource, this.algorithm);
    factory.setSingleton(false);
    return factory;
}
Also used : lombok.val(lombok.val) PublicKeyFactoryBean(org.apereo.cas.util.crypto.PublicKeyFactoryBean) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Aggregations

JsonIgnore (com.fasterxml.jackson.annotation.JsonIgnore)111 lombok.val (lombok.val)14 ArrayList (java.util.ArrayList)11 HashMap (java.util.HashMap)8 Map (java.util.Map)8 HashSet (java.util.HashSet)7 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)5 Date (java.util.Date)5 Field (com.hortonworks.registries.common.Schema.Field)4 Set (java.util.Set)4 Schema (com.hortonworks.registries.common.Schema)3 PrimaryKey (com.hortonworks.registries.storage.PrimaryKey)3 EntitlementException (com.sun.identity.entitlement.EntitlementException)3 PolicyException (com.sun.identity.policy.PolicyException)3 JsonArray (io.vertx.core.json.JsonArray)3 List (java.util.List)3 SequenceFile (ca.corefacility.bioinformatics.irida.model.sequenceFile.SequenceFile)2 TrustAndKeyProvider (com.codingchili.core.security.TrustAndKeyProvider)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)2 TypeReference (com.fasterxml.jackson.core.type.TypeReference)2