1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

reverted checkin 1944 and removed XEP-0078 reference

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2589 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2008-12-19 22:14:20 +00:00
parent ca6a98cf60
commit d7af7570b9

View File

@ -21,71 +21,65 @@
<supersededby/>
<shortname>admin</shortname>
&stpeter;
<revision>
<version>1.2pre1</version>
<date>in progress, last updated 2008-06-10</date>
<initials>psa</initials>
<remark><p>Added use cases for deleting logs and emptying cache.</p></remark>
</revision>
<revision>
<version>1.1</version>
<date>2005-08-19</date>
<initials>psa</initials>
<remark><p>Added use cases for getting list of idle users and of active users (where online = active + idle), getting number (rather than list) of registered/disabled/online/active/idle users, getting list of disabled users, getting user statistics.</p></remark>
<remark>Added use cases for getting list of idle users and of active users (where online = active + idle), getting number (rather than list) of registered/disabled/online/active/idle users, getting list of disabled users, getting user statistics.</remark>
</revision>
<revision>
<version>1.0</version>
<date>2004-12-09</date>
<initials>psa</initials>
<remark><p>Per a vote of the Jabber Council, advanced status to Active.</p></remark>
<remark>Per a vote of the Jabber Council, advanced status to Active.</remark>
</revision>
<revision>
<version>0.8</version>
<date>2004-12-06</date>
<initials>psa</initials>
<remark><p>Addressed Council feedback: folded add blacklist use case into edit blacklist use case; folded add whitelist use case into edit whitelist use case; changed jid-single to jid-multi in many of the use cases; added accountjid field to change password use case; removed grant administrative privileges and revoke administrative privileges use cases (need edit admin list use case only); added max_items field to get active users and get registered users use case.</p></remark>
<remark>Addressed Council feedback: folded add blacklist use case into edit blacklist use case; folded add whitelist use case into edit whitelist use case; changed jid-single to jid-multi in many of the use cases; added accountjid field to change password use case; removed grant administrative privileges and revoke administrative privileges use cases (need edit admin list use case only); added max_items field to get active users and get registered users use case.</remark>
</revision>
<revision>
<version>0.7</version>
<date>2004-12-02</date>
<initials>psa</initials>
<remark><p>Added use case for editing message of the day.</p></remark>
<remark>Added use case for editing message of the day.</remark>
</revision>
<revision>
<version>0.6</version>
<date>2004-11-19</date>
<initials>psa</initials>
<remark><p>Further clarified message of the day per list discussion.</p></remark>
<remark>Further clarified message of the day per list discussion.</remark>
</revision>
<revision>
<version>0.5</version>
<date>2004-11-17</date>
<initials>psa</initials>
<remark><p>Changed firstname to given_name.</p></remark>
<remark>Changed firstname to given_name.</remark>
</revision>
<revision>
<version>0.4</version>
<date>2004-11-02</date>
<initials>psa</initials>
<remark><p>Added note clarifying concept of message of the day.</p></remark>
<remark>Added note clarifying concept of message of the day.</remark>
</revision>
<revision>
<version>0.3</version>
<date>2004-09-30</date>
<initials>psa</initials>
<remark><p>Changed command naming requirement from MUST to SHOULD.</p></remark>
<remark>Changed command naming requirement from MUST to SHOULD.</remark>
</revision>
<revision>
<version>0.2</version>
<date>2004-07-22</date>
<initials>psa</initials>
<remark><p>Added several more use cases; defined complete protocol flows; specified XMPP Registrar considerations.</p></remark>
<remark>Added several more use cases; defined complete protocol flows; specified XMPP Registrar considerations.</remark>
</revision>
<revision>
<version>0.1</version>
<date>2004-04-25</date>
<initials>psa</initials>
<remark><p>Initial version.</p></remark>
<remark>Initial version.</remark>
</revision>
</header>
<section1 topic='Introduction' anchor='intro'>
@ -1229,7 +1223,7 @@
]]></example>
</section2>
<section2 topic='Get Number of Online Users' anchor='get-online-users-num'>
<p>It may be helpful to enable an administrator to retrieve the number of registered users who are online at any one moment. By "online user" is meant any user or account that currently has at least one active or connected resource as defined in &rfc3920bis; and &rfc3921bis; (whether that user is actively sending XML stanzas or is idle). The command node for this use case SHOULD be "http://jabber.org/protocol/admin#get-online-users-num".</p>
<p>It may be helpful to enable an administrator to retrieve the number of registered users who are online at any one moment. By "online user" is meant any user or account that currently has at least one connected or available resource as specified in <cite>RFC 3920</cite> and <cite>RFC 3921</cite>, whether that user is actively sending XML stanzas or is idle. The command node for this use case SHOULD be "http://jabber.org/protocol/admin#get-online-users-num".</p>
<p>A sample protocol flow for this use case is shown below.</p>
<example caption='Admin Requests Number of Online Users'><![CDATA[
<iq from='bard@shakespeare.lit/globe'
@ -2501,160 +2495,6 @@
node='http://jabber.org/protocol/admin#shutdown'
sessionid='shutdown:20040408T0337Z'
status='completed'/>
</iq>
]]></example>
</section2>
<section2 topic='Delete Log' anchor='deletelog'>
<p>A service may allow an administrator to delete a log related to the service (e.g., a server log, a personal conversation log, or a discussion log from a multi-user chat room). The command node for this use case SHOULD be "http://jabber.org/protocol/admin#deletelog".</p>
<p>A sample protocol flow for this use case is shown below.</p>
<example caption='Admin Requests Log Deletion'><![CDATA[
<iq from='bard@shakespeare.lit/globe'
id='deletelog-1'
to='chat.shakespeare.lit'
type='set'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
action='execute'
node='http://jabber.org/protocol/admin#deletelog'/>
</iq>
]]></example>
<p>Unless an error occurs (see the <link url='#errors'>Error Handling</link> section below), the service SHOULD return the appropriate form.</p>
<example caption='Service Returns Log Deletion Form to Admin'><![CDATA[
<iq from='chat.shakespeare.lit'
id='deletelog-1'
to='bard@shakespeare.lit/globe'
type='result'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
node='http://jabber.org/protocol/admin#deletelog'
sessionid='deletelog:20080610T2112Z'
status='executing'>
<x xmlns='jabber:x:data' type='form'>
<title>Deleting a Log</title>
<instructions>Fill out this form to delete logs.</instructions>
<field type='hidden' var='FORM_TYPE'>
<value>http://jabber.org/protocol/admin</value>
</field>
<field label='Log(s) to remove'
type='list-multi'
var='logs'>
<option label='2008-06-10'><value>2008-06-10</value></option>
<option label='2008-06-09'><value>2008-06-09</value></option>
<option label='2008-06-08'><value>2008-06-08</value></option>
<option label='2008-06-07'><value>2008-06-07</value></option>
<option label='2008-06-06'><value>2008-06-06</value></option>
<option label='2008-06-05'><value>2008-06-05</value></option>
<option label='2008-06-04'><value>2008-06-04</value></option>
<option label='2008-06-03'><value>2008-06-03</value></option>
</field>
</x>
</command>
</iq>
]]></example>
<example caption='Admin Submits Log Deletion Form to Service'><![CDATA[
<iq from='bard@shakespeare.lit/globe'
id='deletelog-2'
to='chat.shakespeare.lit'
type='set'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
node='http://jabber.org/protocol/admin#deletelog'
sessionid='deletelog:20080610T2112Z'>
<x xmlns='jabber:x:data' type='submit'>
<field type='hidden' var='FORM_TYPE'>
<value>http://jabber.org/protocol/admin</value>
</field>
<field var='logs'>
<value>20080610</value>
</field>
</x>
</command>
</iq>
]]></example>
<example caption='Service Informs Admin of Completion'><![CDATA[
<iq from='chat.shakespeare.lit'
id='deletelog-2'
to='bard@shakespeare.lit/globe'
type='result'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
node='http://jabber.org/protocol/admin#deletelog'
sessionid='deletelog:20080610T2112Z'
status='completed'/>
</iq>
]]></example>
</section2>
<section2 topic='Empty Cache' anchor='emptycache'>
<p>A service may allow an administrator to empty cached information related to a service (e.g., the history of a chat room). The command node for this use case SHOULD be "http://jabber.org/protocol/admin#emptycache".</p>
<p>A sample protocol flow for this use case is shown below.</p>
<example caption='Admin Requests Emptying the Cache'><![CDATA[
<iq from='bard@shakespeare.lit/globe'
id='emptycache-1'
to='someroom@chat.shakespeare.lit'
type='set'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
action='execute'
node='http://jabber.org/protocol/admin#deletelog'/>
</iq>
]]></example>
<p>Unless an error occurs (see the <link url='#errors'>Error Handling</link> section below), the service SHOULD return the appropriate form.</p>
<example caption='Service Returns Empty Cache Form to Admin'><![CDATA[
<iq from='chat.shakespeare.lit'
id='emptycache-1'
to='bard@shakespeare.lit/globe'
type='result'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
node='http://jabber.org/protocol/admin#emptycache'
sessionid='emptycache:20080610T2247Z'
status='executing'>
<x xmlns='jabber:x:data' type='form'>
<title>Emptying the Cache</title>
<instructions>Fill out this form to empty the cache.</instructions>
<field type='hidden' var='FORM_TYPE'>
<value>http://jabber.org/protocol/admin</value>
</field>
<field label='Cache to empty'
type='list-multi'
var='cache'>
<option label='someroom'><value>someroom</value></option>
<option label='anotherroom'><value>anotherroom</value></option>
</field>
</x>
</command>
</iq>
]]></example>
<example caption='Admin Submits Empty Cache Form to Service'><![CDATA[
<iq from='bard@shakespeare.lit/globe'
id='emptycache-2'
to='chat.shakespeare.lit'
type='set'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
node='http://jabber.org/protocol/admin#emptycache'
sessionid='emptycache:20080610T2247Z'>
<x xmlns='jabber:x:data' type='submit'>
<field type='hidden' var='FORM_TYPE'>
<value>http://jabber.org/protocol/admin</value>
</field>
<field var='cache'>
<value>someroom</value>
</field>
</x>
</command>
</iq>
]]></example>
<example caption='Service Informs Admin of Completion'><![CDATA[
<iq from='chat.shakespeare.lit'
id='emptycache-2'
to='bard@shakespeare.lit/globe'
type='result'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
node='http://jabber.org/protocol/admin#deletelog'
sessionid='emptycache:20080610T2247Z'
status='completed'/>
</iq>
]]></example>
</section2>
@ -2687,7 +2527,7 @@
<td>The ad-hoc commands protocol is not supported.</td>
</tr>
</table>
<p>For the syntax of these errors, see &xmppcore;. Naturally, other errors may be returned as well (e.g., &internalserver; if the service cannot be shut down).</p>
<p>For the syntax of these errors, see &xep0086;. Naturally, other errors may be returned as well (e.g., &internalserver; if the service cannot be shut down).</p>
</section1>
<section1 topic='Security Considerations' anchor='security'>
<p>The ability to complete the administrative tasks specified herein MUST NOT be granted to users who lack service-level administrative privileges.</p>
@ -2755,9 +2595,6 @@
<field var='loginsperminute'
type='text-single'
label='The number of logins per minute for an account'/>
<field var='logs'
type='list-multi'
label='Particular logs to manage'/>
<field var='max_items'
type='list-single'
label='The maximum number of items associated with a search or list'/>