Couple of RepoAdmin fixes

- reload models syntax error
- get models not being listed with correct details

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6687 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2007-09-06 11:35:06 +00:00
parent 4e94c52813
commit 4ba6200dd3
2 changed files with 2 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ public class RepoAdminInterpreter extends BaseInterpreter
else if (command[0].equals("reload")) else if (command[0].equals("reload"))
{ {
if (command.length != 2) if (command.length != 3)
{ {
return "Syntax Error.\n"; return "Syntax Error.\n";
} }

View File

@@ -163,7 +163,7 @@ public class RepoAdminServiceImpl implements RepoAdminService
try try
{ {
ContentReader cr = contentService.getReader(nodeRefs.get(0), ContentModel.TYPE_CONTENT); ContentReader cr = contentService.getReader(nodeRef, ContentModel.TYPE_CONTENT);
InputStream is = cr.getContentInputStream(); InputStream is = cr.getContentInputStream();
M2Model model = M2Model.createModel(is); M2Model model = M2Model.createModel(is);