Fixed API xml doc generation

This commit is contained in:
alena 2011-03-23 12:11:17 -07:00
parent f95d845360
commit 7dce8412e4
2 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import com.cloud.exception.InvalidParameterValueException;
public abstract class BaseListCmd extends BaseCmd {
private static final Long MAX_PAGESIZE = _configService.getDefaultPageSize();
private static Long MAX_PAGESIZE = 500L;
/////////////////////////////////////////////////////
/////////// BaseList API parameters /////////////////
@ -38,6 +38,11 @@ public abstract class BaseListCmd extends BaseCmd {
return pageSize;
}
static void configure() {
MAX_PAGESIZE = _configService.getDefaultPageSize();
}
@Override
public long getEntityOwnerId() {
//no owner is needed for list command

View File

@ -161,6 +161,7 @@ public class ApiServer implements HttpRequestHandler {
public void init(String[] apiConfig) {
try {
BaseCmd.setComponents(new ApiResponseHelper());
BaseListCmd.configure();
_apiCommands = new Properties();
Properties preProcessedCommands = new Properties();
if (apiConfig != null) {