mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-5987 use Spring to hold max entries default
This commit is contained in:
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user