use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project hippo by NHS-digital-website.
the class CyberAlert method getFullAccess.
@JsonIgnore
private Boolean getFullAccess() {
Boolean fullAccess = true;
final HstRequestContext context = RequestContextProvider.get();
if (context != null) {
HttpServletRequest request = context.getServletRequest();
String limitedParam = request.getParameter("_limited");
if (limitedParam != null && limitedParam.equals("true")) {
fullAccess = false;
}
}
return fullAccess;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project winery by eclipse.
the class TEntityType method getWinerysPropertiesDefinition.
/**
* This is a special method for Winery. Winery allows to define a property definition by specifying name/type
* values. Instead of parsing the extensible elements returned TDefinitions, this method is a convenience method to
* access this information
*
* @return a WinerysPropertiesDefinition object, which includes a map of name/type-pairs denoting the associated
* property definitions. A default element name and namespace is added if it is not defined in the underlying XML.
* null if no Winery specific KV properties are defined for the given entity type
*/
@XmlTransient
@JsonIgnore
public WinerysPropertiesDefinition getWinerysPropertiesDefinition() {
if (properties == null || !(properties instanceof WinerysPropertiesDefinition)) {
return null;
}
WinerysPropertiesDefinition res = (WinerysPropertiesDefinition) properties;
// we put defaults if element name and namespace have not been set
if (res.getElementName() == null) {
res.setElementName("Properties");
}
if (res.getNamespace() == null) {
// we use the target namespace of the original element
String ns = this.getTargetNamespace();
if (!ns.endsWith("/")) {
ns += "/";
}
ns += NS_SUFFIX_PROPERTIES_DEFINITION_WINERY;
res.setNamespace(ns);
}
return res;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project hono by eclipse.
the class TenantObject method setTrustAnchor.
/**
* Sets the trusted certificate authority to use for authenticating
* devices of this tenant.
* <p>
* This method removes all existing trust anchors.
*
* @param publicKey The CA's public key.
* @param subjectDn The CA's subject DN.
* @return This tenant for command chaining.
* @throws NullPointerException if any of the parameters is {@code null}.
* @see #addTrustAnchor(PublicKey, X500Principal, Boolean)
*/
@JsonIgnore
public TenantObject setTrustAnchor(final PublicKey publicKey, final X500Principal subjectDn) {
Objects.requireNonNull(publicKey);
Objects.requireNonNull(subjectDn);
setProperty(TenantConstants.FIELD_PAYLOAD_TRUSTED_CA, new JsonArray());
return addTrustAnchor(publicKey, subjectDn, false);
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project hono by eclipse.
the class CredentialsDto method assertSecretIdUniqueness.
@JsonIgnore
private void assertSecretIdUniqueness(final List<? extends CommonCredential> credentials) {
credentials.stream().map(CommonCredential::getSecrets).forEach(secrets -> {
final Set<String> secretIds = new HashSet<>();
final AtomicInteger count = new AtomicInteger(0);
secrets.stream().forEach(secret -> {
if (secret.getId() != null) {
requiresMerging = true;
secretIds.add(secret.getId());
count.incrementAndGet();
}
});
if (secretIds.size() < count.get()) {
throw new ClientErrorException(HttpURLConnection.HTTP_BAD_REQUEST, "secret IDs must be unique within each credentials object");
}
});
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project paascloud-master by paascloud.
the class BaseEntity method setUpdateInfo.
/**
* Sets update info.
*
* @param user the user
*/
@Transient
@JsonIgnore
public void setUpdateInfo(LoginAuthDto user) {
if (isNew()) {
this.creatorId = (this.lastOperatorId = user.getUserId());
this.creator = user.getUserName();
this.createdTime = (this.updateTime = new Date());
}
this.lastOperatorId = user.getUserId();
this.lastOperator = user.getUserName() == null ? user.getLoginName() : user.getUserName();
this.updateTime = new Date();
}
Aggregations