use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project cas by apereo.
the class DefaultAttributeDefinition method resolveAttributeValues.
@JsonIgnore
@Override
public List<Object> resolveAttributeValues(final List<Object> attributeValues, final String scope, final RegisteredService registeredService, final Map<String, List<Object>> attributes) {
List<Object> currentValues = new ArrayList<>(attributeValues);
if (StringUtils.isNotBlank(getScript())) {
currentValues = getScriptedAttributeValue(key, currentValues, registeredService, attributes);
}
if (isScoped()) {
currentValues = formatValuesWithScope(scope, currentValues);
}
if (StringUtils.isNotBlank(getPatternFormat())) {
currentValues = formatValuesWithPattern(currentValues);
}
if (isEncrypted()) {
currentValues = encryptValues(currentValues, registeredService);
}
if (StringUtils.isNotBlank(this.canonicalizationMode)) {
val mode = CaseCanonicalizationMode.valueOf(this.canonicalizationMode.toUpperCase());
currentValues = currentValues.stream().map(value -> mode.canonicalize(value.toString())).collect(Collectors.toList());
}
LOGGER.trace("Resolved values [{}] for attribute definition [{}]", currentValues, this);
return currentValues;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project topcom-cloud by 545314690.
the class Role method getPermissionNames.
@JsonIgnore
public Set<String> getPermissionNames() {
Set<String> permissionNames = new HashSet();
Set<Resource> resources = this.getResources();
if (resources != null) {
Iterator var3 = resources.iterator();
while (var3.hasNext()) {
Resource resource = (Resource) var3.next();
permissionNames.add(resource.getName());
}
}
return permissionNames;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project kylo by Teradata.
the class TableSetup method getFieldStructure.
@JsonIgnore
public String getFieldStructure(String type, TableSchema schema) {
StringBuffer sb = new StringBuffer();
if (schema != null && schema.getFields() != null) {
for (Field field : schema.getFields()) {
if (StringUtils.isNotBlank(sb.toString())) {
sb.append("\n");
}
String otherName = "";
if (type.equalsIgnoreCase("FEED")) {
otherName = getSourceTargetFieldMap().getOrDefault(field.getName(), "");
} else {
otherName = getTargetSourceFieldMap().getOrDefault(field.getName(), "");
}
sb.append(field.asFieldStructure(otherName));
}
}
return sb.toString();
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project kylo by Teradata.
the class TableSetup method updateFieldPolicyJson.
@JsonIgnore
private void updateFieldPolicyJson() {
ObjectMapper mapper = new ObjectMapper();
String json = "[]";
try {
simplifyFieldPoliciesForSerialization();
json = mapper.writeValueAsString(getFieldPolicies());
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
fieldPoliciesJson = json;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project kylo by Teradata.
the class TableSetup method updateFieldPolicyNames.
@JsonIgnore
public void updateFieldPolicyNames() {
if (tableSchema != null && tableSchema.getFields() != null && fieldPolicies != null && fieldPolicies.size() == tableSchema.getFields().size()) {
if (sourceTargetFieldMap == null) {
sourceTargetFieldMap = new HashMap<>();
}
if (targetSourceFieldMap == null) {
targetSourceFieldMap = new HashMap<>();
}
int idx = 0;
for (FieldPolicy field : fieldPolicies) {
field.setFieldName(tableSchema.getFields().get(idx).getName());
sourceTargetFieldMap.put(field.getFeedFieldName(), field.getFieldName());
targetSourceFieldMap.put(field.getFieldName(), field.getFeedFieldName());
idx++;
}
}
}
Aggregations