Search in sources :

Example 46 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project kie-wb-common by kiegroup.

the class ContextAwareDockerProvisioningConfig method setContext.

@Override
@JsonIgnore
public void setContext(final Map<String, ?> context) {
    this.context = context;
    this.providerId = (ProviderId) this.context.get("docker-provider");
    try {
        final Object _project = context.get("project");
        if (_project != null && _project instanceof MavenProject) {
            final Collection<PlugIn> plugIns = ((MavenProject) _project).getBuildPlugins();
            for (final PlugIn plugIn : plugIns) {
                if (plugIn.getId().equals("io.fabric8:docker-maven-plugin")) {
                    final Map<String, Object> _config = (Map<String, Object>) plugIn.getConfiguration().get("images");
                    imageName = getValue(_config, "image").get("name").toString();
                    portNumber = getValue(getValue(getValue(_config, "image"), "build"), "ports").get("port").toString();
                    break;
                }
            }
        }
    } catch (final Exception ex) {
        LOG.warn("Error failing to parse Maven configuration for Docker Plugin: " + ex.getMessage(), ex);
    }
}
Also used : MavenProject(org.guvnor.ala.build.maven.model.MavenProject) Map(java.util.Map) PlugIn(org.guvnor.ala.build.maven.model.PlugIn) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 47 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project pentaho-metaverse by pentaho.

the class WebServiceResourceInfo method addParameter.

@JsonIgnore
public void addParameter(String name, Object value) {
    Object parameters = getAttributes().get("parameters");
    if (parameters == null) {
        parameters = new HashMap<String, Object>();
        getAttributes().put("parameters", parameters);
    }
    if (parameters instanceof Map) {
        Map paramMap = (Map) parameters;
        paramMap.put(name, value);
    }
}
Also used : Map(java.util.Map) HashMap(java.util.HashMap) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 48 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project pentaho-metaverse by pentaho.

the class WebServiceResourceInfo method addHeader.

@JsonIgnore
public void addHeader(String name, Object value) {
    Object headers = getAttributes().get("headers");
    if (headers == null) {
        headers = new HashMap<String, Object>();
        getAttributes().put("headers", headers);
    }
    if (headers instanceof Map) {
        Map headerMap = (Map) headers;
        headerMap.put(name, value);
    }
}
Also used : Map(java.util.Map) HashMap(java.util.HashMap) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 49 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project alfresco-remote-api by Alfresco.

the class LockInfoImpl method getRemainingTimeoutSeconds.

/**
 * Remaining time before lock expires, in seconds.
 */
@Override
@JsonIgnore
public long getRemainingTimeoutSeconds() {
    Date expires = getExpires();
    if (expires == null) {
        return WebDAV.TIMEOUT_INFINITY;
    } else {
        Date now = dateNow();
        long timeout = ((expires.getTime() - now.getTime()) / 1000);
        return timeout;
    }
}
Also used : Date(java.util.Date) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 50 with JsonIgnore

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

the class Datasource method setOwner.

@JsonIgnore
public void setOwner(final String owner) {
    final User user = new User();
    user.setSystemName(owner);
    setOwner(user);
}
Also used : User(com.thinkbiganalytics.security.rest.model.User) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Aggregations

JsonIgnore (com.fasterxml.jackson.annotation.JsonIgnore)113 lombok.val (lombok.val)14 ArrayList (java.util.ArrayList)12 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