Dear OpenMeetings Developers,

We have added 5 CUSTOM toolbars to conference rooms.  We would like to hide a 
few of them in specific conference rooms.  Upon entering the room, hiding of 
the toolbars work perfectly.  However, after a few clicks on the toolbar items, 
all the hidden toolbars in a conference room appear.  We are seeking guidance 
to solve this issue of not being able to hide a toolbar during the entire 
session.

As Maxim suggested last week, we added the following [DETAILS] sample snippet 
in:
1. Room.java
2. RoomDTO.java
3. RoomForm.java
4. RoomsPanel.html

Thank you.
=============
DETAILS
=============

===========
Room.java
===========
  @Column(name = "hide_SAMPLE_ABCToolbar")
        @Element(data = true, required = false)
        private boolean hideSAMPLE_ABCToolbar;

...
        public boolean getHideSAMPLE_ABCToolbar () {
                return hideSAMPLE_ABCToolbar ;
        }
        public void setHideGeoWorldToolbar(boolean hideGeoWorldToolbar ) {
                this.hideSAMPLE_ABCToolbar  = hideSAMPLE_ABCToolbar ;
        }

===========
RoomDTO.java
===========
public class RoomDTO implements Serializable {
            ...
            
        private boolean SAMPLE_ABCToolbarHidden;   

===========
RoomForm.java
===========
public class RoomForm extends AdminBaseForm<Room> {
...
        public RoomForm(String id, WebMarkupContainer roomList, final Room 
room) {
...

                add(new CheckBox("hideSAMPLE_ABCToolbar"));

===========
RoomsPanel.html
===========
         <div class="formelement">
                 <label><wicket:message key="1710" /></label><input 
type="checkbox" class="formcheckbox" wicket:id="hideSAMPLE_ABCToolbar" />
          </div>           

Sincerely,

Hemant K. Sabat

Coscend Communications Solutions
Web site: www.Coscend.com 
------------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages 
from Coscend Communications Solutions' posted at: 
http://www.Coscend.com/Terms_and_Conditions.html 

-----Original Message-----
From: Maxim Solodovnik [mailto:solomax...@gmail.com] 
Sent: Wednesday, August 24, 2016 12:07 AM
To: dev <dev@openmeetings.apache.org>; om.insig...@coscend.com
Subject: Re: Hiding a Menu Item in Conference Room

hideTopBar works as expected (you can check it here
https://om.alteametasoft.com/openmeetings/#room/42263)

RoomWebService is still available via both REST and SOAP you can use this 
method [1] to add Room and need to set 'topBarHidden' property for RoomDTO 
object to true while adding

[1]
http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/RoomWebService.html#add(java.lang.String,%20org.apache.openmeetings.db.dto.room.RoomDTO)
[2]
http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/room/RoomDTO.html#setTopBarHidden(boolean)



Reply via email to