You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2010/11/13 13:33:00 UTC
svn commit: r1034746 - in /ofbiz/trunk/applications/party:
config/PartyUiLabels.xml data/PartyPortletData.xml
webapp/partymgr/WEB-INF/controller.xml widget/partymgr/PartyMenus.xml
widget/partymgr/PartyVisitForms.xml widget/partymgr/VisitScreens.xml
Author: buscob
Date: Sat Nov 13 12:33:00 2010
New Revision: 1034746
URL: http://svn.apache.org/viewvc?rev=1034746&view=rev
Log:
Added a new screen and related portlet to list all actually logged-in users.
Modified:
ofbiz/trunk/applications/party/config/PartyUiLabels.xml
ofbiz/trunk/applications/party/data/PartyPortletData.xml
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml
ofbiz/trunk/applications/party/widget/partymgr/PartyVisitForms.xml
ofbiz/trunk/applications/party/widget/partymgr/VisitScreens.xml
Modified: ofbiz/trunk/applications/party/config/PartyUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/config/PartyUiLabels.xml?rev=1034746&r1=1034745&r2=1034746&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/trunk/applications/party/config/PartyUiLabels.xml Sat Nov 13 12:33:00 2010
@@ -2142,6 +2142,10 @@
<value xml:lang="it">Lista comunicazioni dei soggetti relazionati</value>
<value xml:lang="pt_BR">Lista de comunicações de participantes relacionados</value>
</property>
+ <property key="PageTitleListLoggedInUsers">
+ <value xml:lang="en">Logged-in Users List</value>
+ <value xml:lang="it">Lista utenti loggati</value>
+ </property>
<property key="PageTitleListPartyIdentifications">
<value xml:lang="en">List Identification Number</value>
<value xml:lang="fr">Liste des numéros d'identification</value>
@@ -6408,6 +6412,10 @@
<value xml:lang="th">รายà¸à¸²à¸£à¸à¸£à¸°à¹à¸ à¸</value>
<value xml:lang="zh">ç±»åå表</value>
</property>
+ <property key="PartyLoggedInUsers">
+ <value xml:lang="en">Logged-in Users</value>
+ <value xml:lang="it">Utenti loggati</value>
+ </property>
<property key="PartyLookupAccount">
<value xml:lang="en">Lookup Party with the role Account</value>
<value xml:lang="fr">Consultation de l'acteur ayant le role "compte"</value>
Modified: ofbiz/trunk/applications/party/data/PartyPortletData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/data/PartyPortletData.xml?rev=1034746&r1=1034745&r2=1034746&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/data/PartyPortletData.xml (original)
+++ ofbiz/trunk/applications/party/data/PartyPortletData.xml Sat Nov 13 12:33:00 2010
@@ -131,6 +131,12 @@
description="Related accounts of an contact"/>
<PortletPortletCategory portalPortletId="partyRelAccounts" portletCategoryId="PARTY_PROFILE"/>
+ <PortalPortlet portalPortletId="partyLoggedIn" portletName="List all logged in users"
+ screenName="LoggedInUsersScreen"
+ screenLocation="component://party/widget/partymgr/VisitScreens.xml"
+ description="A list of all logged in users"/>
+ <PortletPortletCategory portalPortletId="partyLoggedIn" portletCategoryId="PARTY_PROFILE"/>
+
<!-- communications -->
<PortletCategory portletCategoryId="COMMUNICATIONS" description="Communication(s)"/>
<PortalPortlet portalPortletId="MyCommunications" portletName="My Communications" description="IN and outgoing Communication list of a party"
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=1034746&r1=1034745&r2=1034746&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml Sat Nov 13 12:33:00 2010
@@ -719,6 +719,7 @@ under the License.
<request-map uri="findVisits"><security https="true" auth="true"/><response name="success" type="view" value="findVisits"/></request-map>
<request-map uri="visitdetail"><security https="true" auth="true"/><response name="success" type="view" value="visitdetail"/></request-map>
+ <request-map uri="listLoggedInUsers"><security https="true" auth="true"/><response name="success" type="view" value="listLoggedInUsers"/></request-map>
<request-map uri="pushPage">
<security https="true" auth="true"/>
@@ -1372,6 +1373,7 @@ under the License.
<view-map name="findVisits" type="screen" page="component://party/widget/partymgr/VisitScreens.xml#FindVisits"/>
<view-map name="visitdetail" type="screen" page="component://party/widget/partymgr/VisitScreens.xml#visitdetail"/>
+ <view-map name="listLoggedInUsers" type="screen" page="component://party/widget/partymgr/VisitScreens.xml#ListLoggedInUsers"/>
<view-map name="LookupPartyName" type="screen" page="component://party/widget/partymgr/LookupScreens.xml#LookupPartyName"/>
<view-map name="LookupPartyEmail" type="screen" page="component://party/widget/partymgr/LookupScreens.xml#LookupPartyEmail"/>
Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml?rev=1034746&r1=1034745&r2=1034746&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml Sat Nov 13 12:33:00 2010
@@ -25,6 +25,7 @@
<menu-item name="mycomm" title="${uiLabelMap.PartyMyCommunications}"><link target="MyCommunicationEvents"/></menu-item>
<menu-item name="comm" title="${uiLabelMap.PartyCommunications}"><link target="FindCommunicationEvents"/></menu-item>
<menu-item name="visits" title="${uiLabelMap.PartyVisits}"><link target="findVisits"/></menu-item>
+ <menu-item name="loggedinusers" title="${uiLabelMap.PartyLoggedInUsers}"><link target="listLoggedInUsers"/></menu-item>
<menu-item name="classification" title="${uiLabelMap.PartyClassifications}"><link target="showclassgroups"/></menu-item>
<menu-item name="security" title="${uiLabelMap.CommonSecurity}">
<condition>
Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyVisitForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyVisitForms.xml?rev=1034746&r1=1034745&r2=1034746&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyVisitForms.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyVisitForms.xml Sat Nov 13 12:33:00 2010
@@ -71,4 +71,24 @@ under the License.
<field name="thruDate" title="${uiLabelMap.CommonThruDate}" sort-field="true"><display/></field>
</form>
+ <form name="ListLoggedInUsers" type="list" separate-columns="true" title="Visits List" list-name="listIt" target="" default-entity-name="Visit" paginate-target="listLoggedInUsers"
+ odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
+ <actions>
+ <set field="parameters.sortField" from-field="parameters.sortField" default-value="-userLoginId"/>
+ <entity-condition entity-name="Visit" list="listIt" distinct="true" filter-by-date="true">
+ <select-field field-name="partyId"/>
+ <select-field field-name="userLoginId"/>
+ <select-field field-name="clientIpAddress"/>
+ <order-by field-name="${parameters.sortField}"/>
+ </entity-condition>
+ </actions>
+
+ <field name="userLoginId" title="${uiLabelMap.PartyUserLoginId}" sort-field="true"><display/></field>
+ <field name="partyId" widget-style="buttontext" sort-field="true">
+ <hyperlink description="${partyId}" target="viewprofile">
+ <parameter param-name="partyId"/>
+ </hyperlink>
+ </field>
+ <field name="clientIpAddress" title="${uiLabelMap.PartyClientIP}" sort-field="true"><display/></field>
+ </form>
</forms>
Modified: ofbiz/trunk/applications/party/widget/partymgr/VisitScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/VisitScreens.xml?rev=1034746&r1=1034745&r2=1034746&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/VisitScreens.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/VisitScreens.xml Sat Nov 13 12:33:00 2010
@@ -56,6 +56,38 @@ under the License.
</section>
</screen>
+ <screen name="ListLoggedInUsers">
+ <section>
+ <actions>
+ <set field="headerItem" value="loggedinusers"/>
+ <set field="titleProperty" value="PageTitleListLoggedInUsers"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <include-screen name="LoggedInUsersScreen" />
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="LoggedInUsersScreen">
+ <section>
+ <condition>
+ <if-service-permission service-name="partyBasePermissionCheck" main-action="VIEW"/>
+ </condition>
+ <widgets>
+ <screenlet title="${uiLabelMap.PageTitleListLoggedInUsers}">
+ <include-form name="ListLoggedInUsers" location="component://party/widget/partymgr/PartyVisitForms.xml"/>
+ </screenlet>
+ </widgets>
+ <fail-widgets>
+ <label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
+ </fail-widgets>
+ </section>
+ </screen>
+
<screen name="visitdetail">
<section>
<actions>