use of org.apereo.portal.tenants.ITenantManagementAction in project uPortal by Jasig.
the class TenantManagerController method doListenerAction.
/** @since 4.3 */
@ActionMapping(params = "action=doListenerAction")
public void doListenerAction(ActionRequest req, ActionResponse res, @RequestParam("fname") String fname, final PortletSession session) {
final ITenantManagementAction action = tenantService.getAction(fname);
final ITenant tenant = (ITenant) session.getAttribute(CURRENT_TENANT_SESSION_ATTRIBUTE);
if (tenant == null) {
throw new IllegalStateException("No current tenant");
}
TenantOperationResponse response = action.invoke(tenant);
forwardToReportScreen(req, res, action.getMessageCode(), Collections.singletonList(response));
}
Aggregations