/** * Construct a log message from an Audit annotation and the record that was updated in some way. * @param audit - The annotation containing the type of operation (UPDATE, DELETE, CREATE) * @param record - The modified record * @param changeSpec - Change spec of modified elements (if logging object change). empty otherwise * @throws InvalidSyntaxException if the Audit annotation has invalid syntax. */ public LogMessage(Audit audit, PersistentResource record, Optional<ChangeSpec> changeSpec) throws InvalidSyntaxException { this(audit.logStatement(), record, audit.logExpressions(), audit.operation(), changeSpec); }
@ReadPermission(expression = "deny all") @UpdatePermission(expression = "parentSpecialValue") public String getSpecialAttribute() { return specialAttribute; }
@Audit(action = Audit.Action.UPDATE, logStatement = "Updated value (for id: {0}): {1}", logExpressions = {"${auditEntity.id}", "${auditEntity.value}"}) public String getValue() { return value; }
@Entity @Include(rootLevel = true, type = "noShareBid") @SharePermission(sharable = false) public class NoShareBiDirectional extends BaseId { private NoShareBiDirectional other; @OneToOne(fetch = FetchType.LAZY) public NoShareBiDirectional getOther() { return other; } public void setOther(NoShareBiDirectional other) { this.other = other; } }
@Transient @ComputedAttribute @ReadPermission(expression = "FailCheckOp") public String getComputedFailTest() { return "computed"; }
@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("this") @ReadPermission(expression = "Field path editor check") public Editor getEditor() { return this; }
@Exclude public String getNaturalKey() { return naturalKey; }
@ManyToOne @FilterExpressionPath("editor") @ReadPermission(expression = "Field path editor check") public Editor getEditor() { return editor; }
@ReadPermission(expression = "allow all") public String getField2() { return field2; }
@CreatePermission(expression = "deny all") public String getCannotModify() { return cannotModify; }
@UpdatePermission(expression = "negativeIntegerUser") public String getField4() { return field4; }
/** * Construct a log message from an Audit annotation and the record that was updated in some way. * @param audit - The annotation containing the type of operation (UPDATE, DELETE, CREATE) * @param record - The modified record * @param changeSpec - Change spec of modified elements (if logging object change). empty otherwise * @throws InvalidSyntaxException if the Audit annotation has invalid syntax. */ public LogMessage(Audit audit, PersistentResource record, Optional<ChangeSpec> changeSpec) throws InvalidSyntaxException { this(audit.logStatement(), record, audit.logExpressions(), audit.operation(), changeSpec); }
@ReadPermission(expression = "negativeIntegerUser") @UpdatePermission(expression = "negativeIntegerUser") @OneToMany( targetEntity = Child.class, cascade = { CascadeType.PERSIST, CascadeType.MERGE } ) public Set<Child> getRelation1() { return relation1; }
@ReadPermission(expression = "negativeIntegerUser AND allow all") public String getField6() { return field6; }
@ReadPermission(expression = "allow all OR negativeIntegerUser") public String getField5() { return field5; }
@ReadPermission(expression = "checkRestrictUser") public String getName() { return name; }
@ReadPermission(expression = "negativeIntegerUser") public String getField3() { return field3; }
@ReadPermission(expression = "allow all AND deny all") public String getField7() { return field7; }
@ReadPermission(expression = "deny all OR negativeIntegerUser") public String getField8() { return field8; }