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);
}
}
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);
}
}
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);
}
}
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;
}
}
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);
}
Aggregations