@ReadPermission(expression = "allow all OR negativeIntegerUser") public String getField5() { return field5; }
@ReadPermission(expression = "allow all") public String getField2() { return field2; }
@ReadPermission(expression = "negativeIntegerUser AND allow all") public String getField6() { return field6; }
@ReadPermission(expression = "deny all") public String getField1() { return field1; }
@ReadPermission(expression = "allow all") public String getYouShouldBeAbleToRead() { return youShouldBeAbleToRead; }
@ReadPermission(expression = "checkRestrictUser") public String getName() { return name; }
@ReadPermission(expression = "negativeIntegerUser") public String getField3() { return field3; }
@ReadPermission(expression = "deny all OR negativeIntegerUser") public String getField8() { return field8; }
@ManyToOne() @ReadPermission(expression = "allow all") public CreateButNoRead getOtherObject() { return otherObject; }
@ReadPermission(expression = "negativeIntegerUser") @OneToMany( targetEntity = Child.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE } ) public Set<Child> getRelation2() { return relation2; }
@OneToOne(targetEntity = Child.class, fetch = FetchType.LAZY) @ReadPermission(expression = "deny all") public Child getNoReadAccess() { return noReadAccess; }
@OneToMany(fetch = FetchType.LAZY) @ReadPermission(expression = "noRead") public Set<CreateButNoReadChild> getOtherObjects() { return otherObjects; }
@ReadPermission(expression = "negativeIntegerUser") @UpdatePermission(expression = "negativeIntegerUser") @OneToOne (cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinColumn(name = "child_id") public Child getRelation3() { return relation3; }
@ReadPermission(expression = "deny all") @UpdatePermission(expression = "parentSpecialValue") public String getSpecialAttribute() { return specialAttribute; }
@ManyToOne @FilterExpressionPath("editor") @ReadPermission(expression = "Field path editor check") public Editor getEditor() { return editor; }
@ReadPermission(expression = "negativeIntegerUser") @UpdatePermission(expression = "negativeIntegerUser") @OneToMany( targetEntity = Child.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE } ) public Set<Child> getRelation1() { return relation1; }
@Transient @ComputedAttribute @ReadPermission(expression = "FailCheckOp") public String getComputedFailTest() { return "computed"; }
@Transient @ComputedRelationship @OneToOne @FilterExpressionPath("this") @ReadPermission(expression = "Field path editor check") public Editor getEditor() { return this; }
@ReadPermission(expression = "allow all") @CreatePermission(expression = "allow all") @UpdatePermission(expression = "allow all") @Entity public class NotIncludedResource extends BaseId { private String someParams; public String getSomeParams() { return someParams; } public void setSomeParams(String someParams) { this.someParams = someParams; } }
@Transient @ComputedRelationship @OneToOne @FilterExpressionPath("publisher.editor") @ReadPermission(expression = "Field path editor check") public Editor getEditor() { return getPublisher().getEditor(); } }