In a custom jsp portlet I wrote I'm doing the following:
String filePath = "/default/main/Internal/Intranet";
// get the cs client
CSClient client = (CSClient)request.getAttribute("iw.csclient");
CSBranch branch = client.getBranch(new CSVPath(filePath), false);
// get the current user and then get their workareas
CSUser user = client.getCurrentUser();
CSWorkarea[] workareas = branch.getWorkareasForUser(user, true);
The problem is, this is retrieving all workareas in all branches for the user, not just the ones in the "Internal/Intranet" branch. Does anyone know why this is happening? Thanks.