• R/O
  • SSH
  • HTTPS

jetspeed-japan: 提交


Commit MetaInfo

修订版112 (tree)
时间2010-10-05 18:49:18
作者karma

Log Message

Update translate sections of Move, Permission (subsection of API section)

更改概述

差异

--- jetspeed-2-trans/trunk/ja/xdocs/guides/guide-ajax-api.xml (revision 111)
+++ jetspeed-2-trans/trunk/ja/xdocs/guides/guide-ajax-api.xml (revision 112)
@@ -1,11 +1,12 @@
11 <?xml version="1.0"?>
22 <!--
3-Copyright 2004 The Apache Software Foundation
3+Licensed to the Apache Software Foundation (ASF) under one or more
4+contributor license agreements. See the NOTICE file distributed with
5+this work for additional information regarding copyright ownership.
6+The ASF licenses this file to You under the Apache License, Version 2.0
7+(the "License"); you may not use this file except in compliance with
8+the License. You may obtain a copy of the License at
49
5-Licensed under the Apache License, Version 2.0 (the "License");
6-you may not use this file except in compliance with the License.
7-You may obtain a copy of the License at
8-
910 http://www.apache.org/licenses/LICENSE-2.0
1011
1112 Unless required by applicable law or agreed to in writing, software
@@ -429,7 +430,7 @@
429430 </tr>
430431 </table>
431432 </subsection>
432-<subsection name='[Move] 移動'>
433+<subsection name='[Move Relative] 相対位置で移動'>
433434 <div class="original">
434435 <table>
435436 <tr>
@@ -555,6 +556,168 @@
555556
556557 </table>
557558 </subsection>
559+<subsection name='[Move] 移動'>
560+<div class="original">
561+<table>
562+ <tr>
563+ <td>API:</td>
564+ <td>move</td>
565+ </tr>
566+ <tr>
567+ <td>Component:</td>
568+ <td>AjaxMovePortlet</td>
569+ </tr>
570+ <tr>
571+ <td>Description:</td>
572+ <td>Move a portlet on a page to a cartesian position (x,y,z,width,height) from request parameters.</td>
573+ </tr>
574+ <tr>
575+ <td>Parameters:</td>
576+ <table>
577+ <tr>
578+ <td>page</td>
579+ <td>implied in the URL</td>
580+ </tr>
581+ <tr>
582+ <td>action</td>
583+ <td>move</td>
584+ </tr>
585+ <tr>
586+ <td>id</td>
587+ <td>the portlet PSML fragment id of the portlet to be moved</td>
588+ </tr>
589+ <tr>
590+ <td>x</td>
591+ <td>the portlet cartesian X position</td>
592+ </tr>
593+ <tr>
594+ <td>y</td>
595+ <td>the portlet cartesian Y position</td>
596+ </tr>
597+ <tr>
598+ <td>z</td>
599+ <td>the portlte cartesian Z position</td>
600+ </tr>
601+ <tr>
602+ <td>width</td>
603+ <td>the width of the portlet</td>
604+ </tr>
605+ <tr>
606+ <td>height</td>
607+ <td>the height cartesian Y position</td>
608+ </tr>
609+ </table>
610+ </tr>
611+ <tr>
612+ <td>API example:</td>
613+ <td>
614+<source><![CDATA[
615+http://localhost:8080/jetspeed/ajaxapi/Public/public.psml?action=move&id=ps-1003&x=100&y=250&width=200&height=300
616+]]></source>
617+ </td>
618+ </tr>
619+ <tr>
620+ <td>XML Response:</td>
621+ <td>
622+<source><![CDATA[
623+<js>
624+ <status>success</status>
625+ <action>move</action>
626+ <id>ps-1003</id>
627+ <old_position>
628+ <x>50</x>
629+ <y>155</row>
630+ </old_position>
631+ <new_position>
632+ <x>100</x>
633+ <y>250</y>
634+ </new_position>
635+</js>
636+]]></source>
637+ </td>
638+ </tr>
639+</table>
640+</div>
641+<table>
642+ <tr>
643+ <td>API:</td>
644+ <td>move</td>
645+ </tr>
646+ <tr>
647+ <td>コンポーネント:</td>
648+ <td>AjaxMovePortlet</td>
649+ </tr>
650+ <tr>
651+ <td>説明:</td>
652+ <td>ページ上のポートレットの位置をリクエストパラメータで指定した直交座標系の位置 (x,y,z,幅,高さ) へ移動する.</td>
653+ </tr>
654+ <tr>
655+ <td>パラメータ:</td>
656+ <table>
657+ <tr>
658+ <td>page</td>
659+ <td>URL に含まれます</td>
660+ </tr>
661+ <tr>
662+ <td>action</td>
663+ <td>move</td>
664+ </tr>
665+ <tr>
666+ <td>id</td>
667+ <td>移動させたいポートレット PSML フラグメント ID</td>
668+ </tr>
669+ <tr>
670+ <td>x</td>
671+ <td>ポートレットの直交座標での X 軸の位置</td>
672+ </tr>
673+ <tr>
674+ <td>y</td>
675+ <td>ポートレットの直交座標での Y 軸の位置</td>
676+ </tr>
677+ <tr>
678+ <td>z</td>
679+ <td>ポートレットの直交座標での Z 軸の位置</td>
680+ </tr>
681+ <tr>
682+ <td>width</td>
683+ <td>ポートレットの幅</td>
684+ </tr>
685+ <tr>
686+ <td>height</td>
687+ <td>ポートレットの高さ</td>
688+ </tr>
689+ </table>
690+ </tr>
691+ <tr>
692+ <td>API の例:</td>
693+ <td>
694+<source><![CDATA[
695+http://localhost:8080/jetspeed/ajaxapi/Public/public.psml?action=move&id=ps-1003&x=100&y=250&width=200&height=300
696+]]></source>
697+ </td>
698+ </tr>
699+ <tr>
700+ <td>XML レスポンス:</td>
701+ <td>
702+<source><![CDATA[
703+<js>
704+ <status>success</status>
705+ <action>move</action>
706+ <id>ps-1003</id>
707+ <old_position>
708+ <x>50</x>
709+ <y>155</row>
710+ </old_position>
711+ <new_position>
712+ <x>100</x>
713+ <y>250</y>
714+ </new_position>
715+</js>
716+]]></source>
717+ </td>
718+ </tr>
719+</table>
720+</subsection>
558721 <subsection name='[Add Portlet] ポートレットの追加'>
559722 <div class="original">
560723 <table>
@@ -949,6 +1112,495 @@
9491112 </tr>
9501113 </table>
9511114 </subsection>
1115+
1116+<subsection name='[Permissions] パーミッション'>
1117+<div class="original">
1118+<table>
1119+
1120+ <tr>
1121+ <td>API:</td>
1122+ <td>permissions</td>
1123+ </tr>
1124+ <tr>
1125+ <td>Component:</td>
1126+ <td>AjaxSecurityPermissions</td>
1127+ </tr>
1128+ <tr>
1129+ <td>Description:</td>
1130+ <td>Security Permissions Maintenance to add, update, and remove permissions from the Jetspeed security policy</td>
1131+ </tr>
1132+ <tr>
1133+ <td>Parameters:</td>
1134+ <table>
1135+ <tr>
1136+ <td>action</td>
1137+ <td>permissions</td>
1138+ </tr>
1139+ <tr>
1140+ <td>method</td>
1141+ <td>the method to execute: must be of value: add | update | remove</td>
1142+ </tr>
1143+ <tr>
1144+ <td>type</td>
1145+ <td>the type of permission being manipulated: portlet | folder | page</td>
1146+ </tr>
1147+ <tr>
1148+ <td>resource</td>
1149+ <td>the name of the portal resource being manipulated</td>
1150+ </tr>
1151+ <tr>
1152+ <td>roles</td>
1153+ <td>comma-separated list of roles, only valid for methods: add, update</td>
1154+ </tr>
1155+ <tr>
1156+ <td>actions</td>
1157+ <td>comma-separated list of actions, only valid for methods: add, update</td>
1158+ </tr>
1159+ <tr>
1160+ <td>oldactions</td>
1161+ <td>comma-separated list of previous actions, only valid for methods: update</td>
1162+ </tr>
1163+ </table>
1164+ </tr>
1165+ <tr>
1166+ <td>API example:</td>
1167+ <td>
1168+<source><![CDATA[
1169+http://localhost:8080/jetspeed/ajaxapi?action=permissions&method=add&type=portlet&resource=demo::*&roles=role1,role2,role3&actions=view,edit
1170+]]></source>
1171+ </td>
1172+ </tr>
1173+ <tr>
1174+ <td>XML Response:</td>
1175+ <td>
1176+<source><![CDATA[
1177+<js>
1178+ <status>success</status>
1179+ <action>permissions</action>
1180+ <resource>demo::*</resource>
1181+ <type>portlet</type>
1182+ <actions>view,edit</actions>
1183+ <actions>role1,role2,role3</actions>
1184+</js>
1185+]]></source>
1186+ </td>
1187+ </tr>
1188+</table>
1189+</div>
1190+<table>
1191+
1192+ <tr>
1193+ <td>API:</td>
1194+ <td>permissions</td>
1195+ </tr>
1196+ <tr>
1197+ <td>コンポーネント:</td>
1198+ <td>AjaxSecurityPermissions</td>
1199+ </tr>
1200+ <tr>
1201+ <td>説明:</td>
1202+ <td>Jetspeed のセキュリティポリシーからパーミッションを追加,更新,削除するためのセキュリティパーミッションのメンテナンス.</td>
1203+ </tr>
1204+ <tr>
1205+ <td>パラメータ:</td>
1206+ <table>
1207+ <tr>
1208+ <td>action</td>
1209+ <td>permissions</td>
1210+ </tr>
1211+ <tr>
1212+ <td>method</td>
1213+ <td>実行するメソッド: 以下のいずれかの値である必要がある: add | update | remove</td>
1214+ </tr>
1215+ <tr>
1216+ <td>type</td>
1217+ <td>操作するパーミッションのタイプ: portlet | folder | page</td>
1218+ </tr>
1219+ <tr>
1220+ <td>resource</td>
1221+ <td>操作するポータルリソースの名前</td>
1222+ </tr>
1223+ <tr>
1224+ <td>roles</td>
1225+ <td>カンマ区切りのロールのリスト.以下のメソッドのみ有効: add, update</td>
1226+ </tr>
1227+ <tr>
1228+ <td>actions</td>
1229+ <td>カンマ区切りのアクションのリスト.以下のメソッドのみ有効: add, update</td>
1230+ </tr>
1231+ <tr>
1232+ <td>oldactions</td>
1233+ <td>カンマ区切りの前回のアクションのリスト.以下のメソッドのみ有効: update</td>
1234+ </tr>
1235+ </table>
1236+ </tr>
1237+ <tr>
1238+ <td>API の例:</td>
1239+ <td>
1240+<source><![CDATA[
1241+http://localhost:8080/jetspeed/ajaxapi?action=permissions&method=add&type=portlet&resource=demo::*&roles=role1,role2,role3&actions=view,edit
1242+]]></source>
1243+ </td>
1244+ </tr>
1245+ <tr>
1246+ <td>XML レスポンス:</td>
1247+ <td>
1248+<source><![CDATA[
1249+<js>
1250+ <status>success</status>
1251+ <action>permissions</action>
1252+ <resource>demo::*</resource>
1253+ <type>portlet</type>
1254+ <actions>view,edit</actions>
1255+ <actions>role1,role2,role3</actions>
1256+</js>
1257+]]></source>
1258+ </td>
1259+ </tr>
1260+</table>
1261+</subsection>
1262+
1263+<subsection name='getmenus'>
1264+<table>
1265+
1266+ <tr>
1267+ <td>API:</td>
1268+ <td>getmenus</td>
1269+ </tr>
1270+ <tr>
1271+ <td>Component:</td>
1272+ <td>AjaxGetMenus</td>
1273+ </tr>
1274+ <tr>
1275+ <td>Description:</td>
1276+ <td>Retrieves all menus for the current page (implied in URL)</td>
1277+ </tr>
1278+ <tr>
1279+ <td>Parameters:</td>
1280+ <table>
1281+ <tr>
1282+ <td>action</td>
1283+ <td>getmenus</td>
1284+ </tr>
1285+ <tr>
1286+ <td>page</td>
1287+ <td>(implied in URL)</td>
1288+ </tr>
1289+ </table>
1290+ </tr>
1291+ <tr>
1292+ <td>API example:</td>
1293+ <td>
1294+<source><![CDATA[
1295+http://localhost:8080/jetspeed/ajaxapi/default-page.psml?action=getmenus
1296+]]></source>
1297+ </td>
1298+ </tr>
1299+ <tr>
1300+ <td>XML Response:</td>
1301+ <td>
1302+<source><![CDATA[
1303+<js>
1304+ <status>success</status>
1305+ <action>getmenus</action>
1306+ <menus>
1307+ <menu type="standard">navigations</menu>
1308+ <menu type="standard">back</menu>
1309+ <menu type="standard">pages</menu>
1310+ <menu type="standard">breadcrumbs</menu>
1311+ <menu type="custom">site-navigations</menu>
1312+ <menu type="custom">additional-links</menu>
1313+ <menu type="custom">page-navigations</menu>
1314+ </menus>
1315+</js>
1316+]]></source>
1317+ </td>
1318+ </tr>
1319+</table>
1320+</subsection>
1321+
1322+<subsection name='getmenu'>
1323+<table>
1324+
1325+ <tr>
1326+ <td>API:</td>
1327+ <td>getmenu</td>
1328+ </tr>
1329+ <tr>
1330+ <td>Component:</td>
1331+ <td>AjaxGetMenu</td>
1332+ </tr>
1333+ <tr>
1334+ <td>Description:</td>
1335+ <td>Retrieves the menu definition for a given menu</td>
1336+ </tr>
1337+ <tr>
1338+ <td>Parameters:</td>
1339+ <table>
1340+ <tr>
1341+ <td>action</td>
1342+ <td>getmenu</td>
1343+ </tr>
1344+ <tr>
1345+ <td>menu</td>
1346+ <td>name of the menu to retrieve (menu definition may change per page)</td>
1347+ </tr>
1348+ </table>
1349+ </tr>
1350+ <tr>
1351+ <td>API example:</td>
1352+ <td>
1353+<source><![CDATA[
1354+http://localhost:8080/jetspeed/ajaxapi?action=getmenu&name=breadcrumbs
1355+]]></source>
1356+ </td>
1357+ </tr>
1358+ <tr>
1359+ <td>XML Response:</td>
1360+ <td>
1361+<source><![CDATA[
1362+<js>
1363+<status>success</status>
1364+<action>getmenu</action>
1365+<menu>
1366+ <name>breadcrumbs</name>
1367+ <title>You are here:</title>
1368+ <short-title>You are here:</short-title>
1369+ <skin>breadcrumbs</skin>
1370+ <url>/default-page.psml</url>
1371+ <hidden>false</hidden>
1372+ <selected>true</selected>
1373+ <option>
1374+ <type>folder</type>
1375+ <title>Root Folder</title>
1376+ <short-title>Root Folder</short-title>
1377+ <skin>breadcrumbs</skin>
1378+ <url>/</url>
1379+ <hidden>false</hidden>
1380+ <selected>true</selected>
1381+ </option>
1382+ <option>
1383+ <type>page</type>
1384+ <title>Welcome to Jetspeed 2</title>
1385+ <short-title>Welcome to Jetspeed 2</short-title>
1386+ <skin>blue</skin>
1387+ <url>/default-page.psml</url>
1388+ <hidden>false</hidden>
1389+ <selected>true</selected>
1390+ </option>
1391+</menu>
1392+</js>
1393+]]></source>
1394+ </td>
1395+ </tr>
1396+</table>
1397+</subsection>
1398+
1399+<subsection name='window'>
1400+<table>
1401+
1402+ <tr>
1403+ <td>API:</td>
1404+ <td>getmenus</td>
1405+ </tr>
1406+ <tr>
1407+ <td>Component:</td>
1408+ <td>AjaxChangeWindow</td>
1409+ </tr>
1410+ <tr>
1411+ <td>Description:</td>
1412+ <td>Changes a portlet window's Window State or Portlet Mode</td>
1413+ </tr>
1414+ <tr>
1415+ <td>Parameters:</td>
1416+ <table>
1417+ <tr>
1418+ <td>action</td>
1419+ <td>window</td>
1420+ </tr>
1421+ <tr>
1422+ <td>id</td>
1423+ <td>window id of the portlet to be modified</td>
1424+ </tr>
1425+ <tr>
1426+ <td>state</td>
1427+ <td>A portlet api valid window state or extended window state (normal | maximized | minimized)</td>
1428+ </tr>
1429+ <tr>
1430+ <td>mode</td>
1431+ <td>A portlet api valid portlet mode or extended portlet mode (view | edit | help | print)</td>
1432+ </tr>
1433+ <tr>
1434+ <td>page</td>
1435+ <td>Implied in URL</td>
1436+ </tr>
1437+ </table>
1438+ </tr>
1439+ <tr>
1440+ <td>API example:</td>
1441+ <td>
1442+<source><![CDATA[
1443+http://localhost:8080/jetspeed/ajaxapi?action=window&state=maximized&mode=edit&id=um-2
1444+]]></source>
1445+ </td>
1446+ </tr>
1447+ <tr>
1448+ <td>XML Response:</td>
1449+ <td>
1450+<source><![CDATA[
1451+<js>
1452+ <status>success</status>
1453+ <action>window</action>
1454+ <id>um-2</id>
1455+ <state>maximized</state>
1456+ <mode>edit</mode>
1457+</js>
1458+]]></source>
1459+ </td>
1460+ </tr>
1461+</table>
1462+</subsection>
1463+
1464+<subsection name='getuseinfo'>
1465+<table>
1466+
1467+ <tr>
1468+ <td>API:</td>
1469+ <td>getuseinfo</td>
1470+ </tr>
1471+ <tr>
1472+ <td>Component:</td>
1473+ <td>AjaxGetUserInformation</td>
1474+ </tr>
1475+ <tr>
1476+ <td>Description:</td>
1477+ <td>Returns information about the currently logged in user. Can be used for example in AJAX based portlets to retrieve the userinfo in a more robust way. Will return success only if a user is currenly logged in, otherwise will return false.</td>
1478+ </tr>
1479+ <tr>
1480+ <td>Parameters:</td>
1481+ <table>
1482+ <tr>
1483+ <td>action</td>
1484+ <td>getuserinfo</td>
1485+ </tr>
1486+ </table>
1487+ </tr>
1488+ <tr>
1489+ <td>API example:</td>
1490+ <td>
1491+<source><![CDATA[
1492+http://localhost:8080/jetspeed/ajaxapi?action=getuserinfo
1493+]]></source>
1494+ </td>
1495+ </tr>
1496+ <tr>
1497+ <td>XML Response:</td>
1498+ <td>
1499+<source><![CDATA[
1500+<js>
1501+ <status>success</status>
1502+ <action>userinformation</action>
1503+ <username>admin</username>
1504+ <type>org.apache.jetspeed.security.impl.UserPrincipalImpl</type>
1505+ <userinfo>
1506+ <user.name.given>Test Dude</user.name.given>
1507+ <user.name.family>Dudley</user.name.family>
1508+ </userinfo>
1509+</js>
1510+]]></source>
1511+ </td>
1512+ </tr>
1513+</table>
1514+</subsection>
1515+
1516+<subsection name='getuserlist'>
1517+<table>
1518+
1519+ <tr>
1520+ <td>API:</td>
1521+ <td>getuseinfo</td>
1522+ </tr>
1523+ <tr>
1524+ <td>Component:</td>
1525+ <td>AjaxGetUserList</td>
1526+ </tr>
1527+ <tr>
1528+ <td>Description:</td>
1529+ <td>Provides basic information (username, ip-address, number of sessions and status) about currently logged in users in xml-format. Optionally it can also provide more detailed userinformation, number of guest sessions and include offline users as well.</td>
1530+ </tr>
1531+ <tr>
1532+ <td>Parameters:</td>
1533+ <table>
1534+ <tr>
1535+ <td>action</td>
1536+ <td>getuserinfo</td>
1537+ </tr>
1538+ <tr>
1539+ <td>userinfo</td>
1540+ <td>Whether we should include also userinfo (true | false [default])</td>
1541+ </tr>
1542+ <tr>
1543+ <td>offline</td>
1544+ <td>Whether we should include offline users (true | false [default])</td>
1545+ </tr>
1546+ <tr>
1547+ <td>guest</td>
1548+ <td>Whether we should return also the guest sessions (true | false [default])</td>
1549+ </tr>
1550+ <tr>
1551+ <td>all</td>
1552+ <td>If set to true, will return every bits and piece there is (true | false [default])</td>
1553+ </tr>
1554+ </table>
1555+ </tr>
1556+ <tr>
1557+ <td>
1558+ <p>
1559+ By default the private information (emails, etc..) is protected with
1560+ RolesSecurityBehavior security, but can be changed in <a href="http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/ajax-layout.xml?view=markup">AJAX configuration</a>
1561+ by altering the protectionScope constructor value to either "all" to protect
1562+ even the basic information or to "none" when everything will be shown for everyone (not wise on production).
1563+ The default value "private" will show just the basic information of online/offline users and number of guest sessions,
1564+ as the "private-offline" will not show even the offline users. Possible protectionScope values are "all",
1565+ "private-offline", "private" and "none".
1566+ </p>
1567+ </td>
1568+ </tr>
1569+ <tr>
1570+ <td>API example:</td>
1571+ <td>
1572+<source><![CDATA[
1573+http://localhost:8080/jetspeed/ajaxapi?action=getuserlist&userinfo=true&guest=true
1574+]]></source>
1575+ </td>
1576+ </tr>
1577+ <tr>
1578+ <td>XML Response:</td>
1579+ <td>
1580+<source><![CDATA[
1581+<js>
1582+ <status>success</status>
1583+ <action>getuserlist</action>
1584+ <users>
1585+ <user>
1586+ <username>admin</username>
1587+ <sessions>1</sessions>
1588+ <status>online</status>
1589+ <ipaddress>127.0.0.1</ipaddress>
1590+ <userinfo>
1591+ <user.name.given>Test Dude</user.name.given>
1592+ <user.name.family>Dudley</user.name.family>
1593+ </userinfo>
1594+ </user>
1595+ <guests>0</guests>
1596+ </users>
1597+</js>
1598+]]></source>
1599+ </td>
1600+ </tr>
1601+</table>
1602+</subsection>
1603+
9521604 </section>
9531605
9541606 <section name='[Spring Assembly] Spring アセンブリ'>
Show on old repository browser