Cleanup of JavaScript code formatting in Groups REST API.

Also fix up nonsense tags in related WebScript description fields.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14764 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2009-06-17 12:40:49 +00:00
parent 423da7eb22
commit ad05edcbe9
14 changed files with 230 additions and 227 deletions

View File

@@ -4,7 +4,7 @@
Remove an authority (USER or GROUP) from a group. A user will not be deleted by this method. Remove an authority (USER or GROUP) from a group. A user will not be deleted by this method.
<br /> <br />
You must have "administrator" privileges to alter a group. You must have "administrator" privileges to alter a group.
</br /> <br />
]]> ]]>
</description> </description>
<url>/api/groups/{shortGroupName}/children/{fullAuthorityName}</url> <url>/api/groups/{shortGroupName}/children/{fullAuthorityName}</url>

View File

@@ -1,5 +1,5 @@
/** /**
* remove authority from group * Remove authority from group
*/ */
function main () function main ()

View File

@@ -1,7 +1,9 @@
// get children /**
* Get children
*/
function main() function main()
{ {
var urlElements = url.extension.split("/"); var urlElements = url.extension.split("/");
var shortName = urlElements[0]; var shortName = urlElements[0];

View File

@@ -40,7 +40,6 @@ function main ()
group.addAuthority(fullAuthorityName); group.addAuthority(fullAuthorityName);
status.code = status.STATUS_OK; status.code = status.STATUS_OK;
model.group model.group
} }
main(); main();

View File

@@ -1,4 +1,6 @@
// update group /**
* Update group
*/
function main() function main()
{ {
@@ -22,5 +24,3 @@ function main ()
} }
main(); main();

View File

@@ -4,7 +4,7 @@
Delete a group and all its dependents. Delete a group and all its dependents.
<br /> <br />
You must have "administrator" privileges to delete a group. You must have "administrator" privileges to delete a group.
</br /> <br />
]]> ]]>
</description> </description>
<url>/api/groups/{shortName}</url> <url>/api/groups/{shortName}</url>

View File

@@ -1,4 +1,6 @@
// delete group /**
* Delete group
*/
function main() function main()
{ {
@@ -13,9 +15,7 @@ function main ()
return; return;
} }
group.deleteGroup(); group.deleteGroup();
} }
main(); main();

View File

@@ -1,4 +1,7 @@
// get parents /**
* Get parent groups
*/
function main () function main ()
{ {
var urlElements = url.extension.split("/"); var urlElements = url.extension.split("/");

View File

@@ -4,7 +4,7 @@
Delete a root group and all its dependents. Delete a root group and all its dependents.
<br /> <br />
You must have "administrator" privileges to delete a group. You must have "administrator" privileges to delete a group.
</br /> <br />
]]> ]]>
</description> </description>
<url>/api/rootgroups/{shortName}</url> <url>/api/rootgroups/{shortName}</url>

View File

@@ -1,4 +1,6 @@
// delete group /**
* Delete group
*/
function main() function main()
{ {
@@ -13,9 +15,7 @@ function main ()
return; return;
} }
group.deleteGroup(); group.deleteGroup();
} }
main(); main();

View File

@@ -20,6 +20,3 @@ function main ()
} }
main(); main();

View File

@@ -1,4 +1,6 @@
// Create new rootgroup. /**
* Create new root group.
*/
function main() function main()
{ {