implemented the "floating" menu properly, and the transitions between the
different menus; also debugged the ACL permission testing
This commit is contained in:
@@ -53,7 +53,7 @@ sidebox_list = sideboxes.getSideboxes(req,VeniceNamespaces.SIDEBOX_CONTEXT_NAMES
|
||||
|
||||
// Create the master view and return it.
|
||||
rc = new SideboxView(page_content,sidebox_list);
|
||||
//rc.menuSelector = "community";
|
||||
rc.menuSelector = "community";
|
||||
rc.pageTitle = comm.getName() + ": Home";
|
||||
rc.pageQID = "community/" + comm.getAlias();
|
||||
if (!(user.isAnonymous()))
|
||||
|
||||
@@ -14,9 +14,11 @@
|
||||
//
|
||||
// Contributor(s):
|
||||
|
||||
importClass(Packages.com.silverwrist.dynamo.Namespaces);
|
||||
importPackage(Packages.com.silverwrist.dynamo.iface);
|
||||
importPackage(Packages.com.silverwrist.dynamo.util);
|
||||
importClass(Packages.com.silverwrist.venice.VeniceNamespaces);
|
||||
importPackage(Packages.com.silverwrist.venice.iface);
|
||||
importPackage(Packages.com.silverwrist.venice.session);
|
||||
|
||||
req = bsf.lookupBean("request"); // get request
|
||||
@@ -65,6 +67,13 @@ if (rhelp.isRequestType("_SESSION") && rhelp.isVerb("PUT"))
|
||||
// Configure other session attributes.
|
||||
session = rhelp.getSession();
|
||||
session.setObject("/find.js.vs","last.visited","find_communities.js.vs");
|
||||
session.setObject(SessionInfoParams.NAMESPACE,SessionInfoParams.ATTR_MENU_SELECTOR,"top");
|
||||
mprov = vcast.queryMenuProvider(rhelp.getRequestObject(Namespaces.DYNAMO_OBJECT_NAMESPACE,"venice-menus"));
|
||||
srm = cast.querySecurityReferenceMonitor(rhelp.getRequestObject(Namespaces.DYNAMO_OBJECT_NAMESPACE,"srm"));
|
||||
aclids = cast.newIntArray(1);
|
||||
aclids[0] = srm.getGlobalAcl().getAclID();
|
||||
menu = mprov.getLeftMenu(user,VeniceNamespaces.FRAME_LAF_NAMESPACE,"top.menu",aclids);
|
||||
session.setObject(SessionInfoParams.NAMESPACE,SessionInfoParams.ATTR_MENU,menu);
|
||||
|
||||
} // end if (session is HTTP)
|
||||
|
||||
|
||||
@@ -43,3 +43,6 @@ session.setObject(DateFormatterTopHalf.NAMESPACE,DateFormatterTopHalf.PROPERTY,d
|
||||
|
||||
// clear any password-recovery authentication data for this user
|
||||
user.clearAuthenticationData(user,VeniceNamespaces.SESSION_CONTROL_NAMESPACE,"password.recovery");
|
||||
|
||||
// Force the menu to be reloaded.
|
||||
vlib.forceReloadMenu(session);
|
||||
|
||||
Reference in New Issue
Block a user