bug 9782: hardcoded default page size to be 500 for listConfigurations

status 9782: resolved fixed
This commit is contained in:
alena 2011-05-09 09:31:04 -07:00
parent a6fac0d768
commit 753cafa472

View File

@ -47,7 +47,6 @@ public class ListCfgsByCmd extends BaseListCmd {
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "lists configuration by name") @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "lists configuration by name")
private String configName; private String configName;
// /////////////////////////////////////////////////// // ///////////////////////////////////////////////////
// ///////////////// Accessors /////////////////////// // ///////////////// Accessors ///////////////////////
// /////////////////////////////////////////////////// // ///////////////////////////////////////////////////
@ -60,6 +59,15 @@ public class ListCfgsByCmd extends BaseListCmd {
return configName; return configName;
} }
@Override
public Long getPageSizeVal() {
Long pageSizeVal = 500L;
Integer pageSize = getPageSize();
if (pageSize != null) {
pageSizeVal = pageSize.longValue();
}
return pageSizeVal;
}
// /////////////////////////////////////////////////// // ///////////////////////////////////////////////////
// ///////////// API Implementation/////////////////// // ///////////// API Implementation///////////////////