RM-5987 View Audit Log - removed spring default

This commit is contained in:
Sara Aspery
2018-01-30 11:50:06 +00:00
parent 7212ec9b98
commit ed04588a69
2 changed files with 3 additions and 2 deletions

View File

@@ -538,7 +538,7 @@
<property name="capabilityService" ref="CapabilityService" />
<property name="filePlanService" ref="FilePlanService" />
<property name="viewLogMaxSize">
<value>${audit.rm.viewLog.maxSize:100}</value>
<value>${audit.rm.viewLog.maxSize}</value>
</property>
</bean>

View File

@@ -57,6 +57,7 @@ public class AuditLogGet extends BaseAuditRetrievalWebScript
private static final String PARAM_EXPORT = "export";
private static final String ACCESS_AUDIT_CAPABILITY = "AccessAudit";
private static final int DEFAULT_VIEW_LOG_MAX_SIZE = 100;
/** Content Streamer */
protected ContentStreamer contentStreamer;
@@ -102,7 +103,7 @@ public class AuditLogGet extends BaseAuditRetrievalWebScript
*/
public void setViewLogMaxSize(int viewLogMaxSize)
{
this.viewLogMaxSize = viewLogMaxSize;
this.viewLogMaxSize = (viewLogMaxSize <= 0 ? DEFAULT_VIEW_LOG_MAX_SIZE: viewLogMaxSize);
}
@Override