From 32f0358a1ba810076f5760dfd0bd47c092a24cb0 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Mon, 16 Jun 2008 11:12:11 +0000 Subject: [PATCH] New commands for AVM Console (AVMInterpreter). Version parameter is not longer mandatory for simple commands. setstoreproperty - Set the value of store property. setstoreproperty, storename, qname, value setstorepermission - Set a permission mask on a store. setstorepermission, storename, authority, permission clearstorepermission - Clears a permission mask on a store for a given authority. clearstorepermission, storename, authority setnodepermission - Set a permission mask on a node. setnodepermission, avmpath, authority, permission clearnodepermission - Clears a permission mask on a node for a given authority. clearnodepermission, avmpath, authority git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9482 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/web/jsp/admin/avm-console-help.txt | 50 ++++++++++++++++++++++- source/web/jsp/admin/avm-console.jsp | 2 + 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/source/web/jsp/admin/avm-console-help.txt b/source/web/jsp/admin/avm-console-help.txt index 0a445e5dfe..2f7dfa8f70 100644 --- a/source/web/jsp/admin/avm-console-help.txt +++ b/source/web/jsp/admin/avm-console-help.txt @@ -60,6 +60,36 @@ storename as above. ------ +setstoreproperty - Set the value of store property. + +setstoreproperty, storename, qname, value + +value - the new property value - the type will be auto-detected. At present only TEXT +and INT types are suppored as well as collections of these types. Collections +can be specified using a comma seperated list enclosed in square brackets. + +qname - the property name in the form {namespaceURI}localName + +------ + +setstorepermission - Set a permission mask on a store. + +setstorepermission, storename, authority, permission + +authority - the user or group identifier. + +permission - the permission name to set. + +------ + +clearstorepermission - Clears a permission mask on a store for a given authority. + +clearstorepermission, storename, authority + +authority - the user or group identifier. + +------ + load - Loads content recursively into an avm directory. load, fspath, avmpath @@ -238,7 +268,7 @@ qname - a property name in the form {namespaceURI}localName ------ -setnodeproperty - Set the value of node propery. +setnodeproperty - Set the value of node property. setnodeproperty, avmpath, qname, value @@ -250,6 +280,24 @@ qname - the property name in the form {namespaceURI}localName ------ +setnodepermission - Set a permission mask on a node. + +setnodepermission, avmpath, authority, permission + +authority - the user or group identifier. + +permission - the permission name to set. + +------ + +clearnodepermission - Clears a permission mask on a node for a given authority. + +clearnodepermission, avmpath, authority + +authority - the user or group identifier. + +------ + history - Get a list of the previous versions of a node. diff --git a/source/web/jsp/admin/avm-console.jsp b/source/web/jsp/admin/avm-console.jsp index 93f251c773..49df9be306 100644 --- a/source/web/jsp/admin/avm-console.jsp +++ b/source/web/jsp/admin/avm-console.jsp @@ -41,6 +41,8 @@ (AVMSyncService)RawServices.Instance().getContext().getBean("AVMSyncService")); fgInterpreter.setAvmLockingService( (AVMLockingService)RawServices.Instance().getContext().getBean("AVMLockingService")); + fgInterpreter.setPermissionService( + (PermissionService)RawServices.Instance().getContext().getBean("PermissionService")); fgInterpreter.setBulkLoader(fgLoader); }