Refine search
@JsonView(ContentPackView.HttpView.class) @JsonProperty(FIELD_PARAMETERS) public abstract ImmutableSet<Parameter> parameters();
private Class<?> extractViewClass(JsonView annotation, Object conversionHint) { Class<?>[] classes = annotation.value(); if (classes.length != 1) { throw new IllegalArgumentException( "@JsonView only supported for handler methods with exactly 1 class argument: " + conversionHint); } return classes[0]; }
@JsonView(Object.class) @JsonProperty @Column(nullable = true) public Boolean getDefaultTrending() { return defaultTrending == null ? false : defaultTrending; }
@JsonView(AllViews.RestCweView.class) @JsonProperty("CweId") @Transient public Integer getDisplayIdForRestRequest() { return getDisplayId(); } }
@ManyToOne @JoinColumn(name = "wafRuleDirectiveId") @JsonView(AllViews.RestViewWafs2_1.class) public WafRuleDirective getLastWafRuleDirective() { return lastWafRuleDirective; }
@CollectionOfElements // for sonar @ElementCollection @Column(name = "emailAddress", length = EMAIL_LENGTH) @CollectionTable(name = "PolicyEmailAddress", joinColumns = @JoinColumn(name = "PolicyId")) @JsonView(AllViews.PolicyPageView.class) public List<String> getEmailAddresses() { return emailAddresses; }
@PostMapping("/request/mono") public Mono<JacksonViewBean> monoRequest(@JsonView(MyJacksonView1.class) @RequestBody Mono<JacksonViewBean> mono) { return mono; }
@JsonProperty @JsonView(Object.class) @Column(length = 2048) public String getName() { return name; }
@Transient @JsonView({ AllViews.RestViewApplication2_1.class, AllViews.RestViewTeams2_1.class, AllViews.RestCreateApplication2_1.class, AllViews.RestViewWafs2_1.class }) @JsonProperty("organization") public Map<String, Object> getOrganizationRest() { Organization team = getOrganization(); Map<String, Object> map = new HashMap<String, Object>(); map.put("id", team.getId()); map.put("name", team.getName()); return map; }
@ManyToOne @JoinColumn(name = "mainDefaultDefectProfileId") @JsonView({ AllViews.TableRow.class, AllViews.FormInfo.class}) public DefaultDefectProfile getMainDefaultDefectProfile() { return mainDefaultDefectProfile; }
@CollectionOfElements // for sonar @ElementCollection @Column(name = "emailAddress", length = 128) @CollectionTable(name = "PolicyStatusEmailAddress", joinColumns = @JoinColumn(name = "PolicyStatusId")) @JsonView(AllViews.PolicyPageView.class) public List<String> getEmailAddresses() { return emailAddresses; }
@PostMapping("/request/raw") public JacksonViewBean rawRequest(@JsonView(MyJacksonView1.class) @RequestBody JacksonViewBean bean) { return bean; }
@JsonView(ContentPackView.HttpView.class) @JsonProperty(FIELD_SUMMARY) public abstract String summary();
@JsonView(Object.class) @Column(length = 102400) @JsonProperty public String getJson() { return json; }
@Transient @JsonProperty("humanTimes") @JsonView(AllViews.VulnerabilityDetail.class) public Map<String, String> getHumanTimes(){ return map("openTime", formatTime(openTime), "closeTime", formatTime(closeTime), "wafRuleGeneratedTime", formatTime(wafRuleGeneratedTime), "defectSubmittedTime", formatTime(defectSubmittedTime), "defectClosedTime", formatTime(defectClosedTime)); }
@ManyToOne @JoinColumn(name = "defectTrackerTypeId") @JsonView(Object.class) public DefectTrackerType getDefectTrackerType() { return defectTrackerType; }