RM-5987 use Spring to hold max entries default

This commit is contained in:
Sara Aspery
2018-01-24 09:08:09 +00:00
parent c748b65cd9
commit d466e29dbc
2 changed files with 2 additions and 3 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}</value>
<value>${audit.rm.viewLog.maxSize:100}</value>
</property>
</bean>

View File

@@ -57,7 +57,6 @@ 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;
@@ -103,7 +102,7 @@ public class AuditLogGet extends BaseAuditRetrievalWebScript
*/
public void setViewLogMaxSize(int viewLogMaxSize)
{
this.viewLogMaxSize = (viewLogMaxSize <= 0 ? DEFAULT_VIEW_LOG_MAX_SIZE: viewLogMaxSize);
this.viewLogMaxSize = viewLogMaxSize;
}
@Override