Purpose
This widget allows you to restrict all widgets on a portal to a specific product. This allows you to not restrict the portal initially, but later focus in on only one particular product or to move from product to product in a review meeting.
Note: This portlet will only work with Bugs Dashboard v3 and later.
Screenshots

Installation
Note: This version will only work with Bugs Dashboard v3.0 and up due to the use of the parameter to restrict this portlet to a specific product if desired.
To use the RestrictPortal Widget do the following:
- Copy the restrictPortal.class file at com/wmpnj/bugz/portlets into the deployed web application directory; i.e. /webapps/bugs/WEB-INF/classes/com/wmpnj/bugz/portlets. This may require that you also copy the directory “portlets” if this is the first portlet you are deploying.
- Copy the restrictPortal.js file to the deployed web application javascript directory; i.e. /webapps/bugs/WEB-INF/javascript.
- Update the dwr.xml file in the deployed web application WEB-INF directory; i.e. /webapps/bugs/WEB-INF. Edit the file with a text editor and add the following after the last </create> statement:
<create creator="new" javascript="RestrictPortal"> <param name="class" value="com.wmpnj.bugz.portlets.RestrictPortal" /> </create>
- Update the portlets.properties file in the deployed web application classes directory; i.e. /webapps/bugs/WEB-INF/classes:
- Update the first line by incrementing the count of portlets by 1
- Add the following in the position that you want the portlet to appear within your desired column. For example, if you want the RestrictPortal to appear at the top of the right-most column, you must insert this ahead of any other portlet whose column is “2″ on a 3-column portal. After adding the following block, you MUST then renumber the portlets appropriately, beginning with 0, i.e. “portlet0″, “portlet1″.
portlet5.title=Restrict Portal portlet5.column=1 portlet5.package=com.wmpnj.bugz.portlets.RestrictPortal portlet5.className=RestrictPortal portlet5.method=getText portlet5.stylesheet= portlet5.javascript=restrictPortal.js portlet5.desc=This portlet presents a dropdown list of all products. Selecting one will cause all portlets to restrict themselves to the chosen product. portlet5.call= portlet5.restrictTo=
You may change the title and column, but do NOT change the package, className, or method!
