You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by Susheel Jalali <Su...@CoscendCommunications.com> on 2015/03/03 21:13:28 UTC
Removing Calendar Items from HOME Dashboard and Menu
Dear Maxim and OpenMeetings Developers,
In the HOME (Dashboard) Web page, we want to remove:
(1) Calendar menu-point from the HOME Drop-down Menu of Home page, and
(2) Calendar Button from the 'How to Conference' widget
We have made the following changes:
In
<someprefix>/src/install/java/org/apache/openmeetings/installation/ImportInitvalues.java
Changed out the following lines (148-149):
-----------------
navimanagement.addMainStructure("dashboardModuleCalendar", null, 2,
291, true, false, 1, "Module Calendar", 1, false, 1451L);
----------------
What else should we do to accomplish the task?
For example, we investigated the following, but are missing some dots to
connect on them:
a) Do we need to call the deleteWidget(widgetId); on the instance of
UserDashboard class?
In that case, how should we get the widgetId on the Calendar item
Widget, since we could not find a relevant getWidgetId() method.
OR
b) Can we set the 'deleted' flag in DB Table 'navimain', WHERE id=2
for the dashboardModuleCalendar. Will that have this result, without
other side-effects?
Will action (b) cause the getModelObject() to return FALSE for the
Calendar widget, in WidgetsPanel.java, which has a method,
protected void populateItem( ListItem<WidgetDescriptor> item ).
In this method, that FALSE value will cause deleteWidget() to be called
for such Widgets.
----
Thank you.
Sincerely,
---
Susheel Jalali
Customer Operations Leader,
Coscend Communications Solutions
Cell +91-9011000233
_Susheel.Jalali@CoscendCommunications.com_
Web site:www.CoscendCommunications.com
<http://www.coscendcommunications.com/>
------------------------------------------------------------------
*Coscend’s**Software Service Factory*
"*Coscend Communications* is ... *pioneering a new approach*to ...
software applications development, and systems integration."
*Light Reading Network, *December, 2007
"*Coscend*is at the*vanguard of a new evolution*in telco OSS/BSS systems
integration."
*Caroline Chappell*
A leading authority in the communications services software industry
"There are *innovative*…*tools*from ... *Coscend *bubbling up, which
will help accelerate the data consolidation process and reduce its cost."
*Dennis Mendyk, */Editor,/Building a *Telco Service Factory*
------------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
Messages from Coscend Communications Solutions' posted at:
http://www.CoscendCommunications.com/Terms_and_Conditions.html
<http://www.coscendcommunications.com/Terms_and_Conditions.html>
Re: Removing Calendar Items from HOME Dashboard and Menu
Posted by Maxim Solodovnik <so...@gmail.com>.
Actually you can delete menu item by
>>>>>Can we set the 'deleted' flag in DB Table 'navimain', WHERE id=2 for
the dashboardModuleCalendar. Will that have this result, without other
side-effects?
This change:
navimanagement.addMainStructure("dashboardModuleCalendar", null, 2, 291,
true, false, 1, "Module Calendar", 1, false, 1451L);
will affect fresh DB only
BUT
1) the calendar will still be available via URL:
http://...../openmeetings/#user/calendar
(to remove it you need to comment correspondent section in /Openmeetings
3.0.x/src/web/java/org/apache/openmeetings/web/util/OmUrlFragment.java)
2) to remove Calendar button on the widget you can modify /Openmeetings
3.0.x/src/web/java/org/apache/openmeetings/web/user/dashboard/StartWidgetView.java
(add setVisible(false) to the button) or modify correspondent html file and
add style="display: none" to the correspondent button)
On Wed, Mar 4, 2015 at 2:13 AM, Susheel Jalali <
Susheel.Jalali@coscendcommunications.com> wrote:
> Dear Maxim and OpenMeetings Developers,
>
> In the HOME (Dashboard) Web page, we want to remove:
>
> (1) Calendar menu-point from the HOME Drop-down Menu of Home page, and
>
> (2) Calendar Button from the 'How to Conference' widget
>
>
> We have made the following changes:
>
> In <someprefix>/src/install/java/org/apache/openmeetings/
> installation/ImportInitvalues.java
>
> Changed out the following lines (148-149):
> -----------------
> navimanagement.addMainStructure("dashboardModuleCalendar", null, 2,
> 291, true, false, 1, "Module Calendar", 1, false, 1451L);
> ----------------
>
> What else should we do to accomplish the task?
>
> For example, we investigated the following, but are missing some dots to
> connect on them:
>
> a) Do we need to call the deleteWidget(widgetId); on the instance of
> UserDashboard class?
> In that case, how should we get the widgetId on the Calendar item
> Widget, since we could not find a relevant getWidgetId() method.
>
> OR
> b) Can we set the 'deleted' flag in DB Table 'navimain', WHERE id=2 for
> the dashboardModuleCalendar. Will that have this result, without other
> side-effects?
>
> Will action (b) cause the getModelObject() to return FALSE for the
> Calendar widget, in WidgetsPanel.java, which has a method,
> protected void populateItem( ListItem<WidgetDescriptor> item ).
> In this method, that FALSE value will cause deleteWidget() to be called
> for such Widgets.
>
>
> ----
>
> Thank you.
>
>
>
> Sincerely,
>
> ---
>
> Susheel Jalali
>
> Customer Operations Leader,
>
> Coscend Communications Solutions
>
> Cell +91-9011000233
>
> _Susheel.Jalali@CoscendCommunications.com_
>
> Web site:www.CoscendCommunications.com <http://www.
> coscendcommunications.com/>
>
> ------------------------------------------------------------------
>
> *Coscend’s**Software Service Factory*
>
> "*Coscend Communications* is ... *pioneering a new approach*to ...
> software applications development, and systems integration."
>
> *Light Reading Network, *December, 2007
>
> "*Coscend*is at the*vanguard of a new evolution*in telco OSS/BSS systems
> integration."
>
> *Caroline Chappell*
> A leading authority in the communications services software industry
>
> "There are *innovative*…*tools*from ... *Coscend *bubbling up, which will
> help accelerate the data consolidation process and reduce its cost."
>
> *Dennis Mendyk, */Editor,/Building a *Telco Service Factory*
>
> ------------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
> Messages from Coscend Communications Solutions' posted at: http://www.
> CoscendCommunications.com/Terms_and_Conditions.html <http://www.
> coscendcommunications.com/Terms_and_Conditions.html>
>
>
--
WBR
Maxim aka solomax