logger.warning("[SecurityComponentMO] send user permissions for " +
requestCellID + " to " + clientID);
// get the resource for this cell
CellResourceManagerInternal crmi =
AppContext.getManager(CellResourceManagerInternal.class);
Resource rsrc = crmi.getCellResource(requestCellID);
if (rsrc == null) {
// no resource -- send permission for everything
Set<ActionDTO> send = new LinkedHashSet<ActionDTO>();
for (Action action : crmi.getActions(requestCellID)) {
send.add(new ActionDTO(action));
}
sender.send(clientID, new PermissionsResponseMessage(messageID, send));
return;
}
// construct a request for this user's permissions
ResourceMap rm = new ResourceMap();
Action[] actions = crmi.getActions(requestCellID).toArray(new Action[0]);
ActionMap am = new ActionMap(rsrc, actions);
rm.put(rsrc.getId(), am);
// construct a new task to send the message
SecurityManager sm = AppContext.getManager(SecurityManager.class);