Added Optional Message to support AccessLogger library fields for PortletUsageRecord
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@115292 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3a2792d7d5
commit
405903f952
|
@ -33,6 +33,9 @@ public class PortletUsageRecord extends RawUsageRecord implements SingleUsageRec
|
||||||
@RequiredField @NotEmpty
|
@RequiredField @NotEmpty
|
||||||
public static final String OPERATION_ID = "operationId";
|
public static final String OPERATION_ID = "operationId";
|
||||||
// TODO check ASL for more field
|
// TODO check ASL for more field
|
||||||
|
@NotEmptyIfNotNull
|
||||||
|
public static final String MESSAGE = "message";
|
||||||
|
|
||||||
|
|
||||||
public PortletUsageRecord(){
|
public PortletUsageRecord(){
|
||||||
super();
|
super();
|
||||||
|
@ -68,4 +71,11 @@ public class PortletUsageRecord extends RawUsageRecord implements SingleUsageRec
|
||||||
setResourceProperty(OPERATION_ID, operationId);
|
setResourceProperty(OPERATION_ID, operationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMessage() {
|
||||||
|
return (String) this.resourceProperties.get(MESSAGE);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMessage(String message) throws InvalidValueException {
|
||||||
|
setResourceProperty(MESSAGE, message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue