throws IOException, PortletException {
WindowState state = req.getWindowState();
if (!state.equals(WindowState.MINIMIZED)) {
PortletMode mode = req.getPortletMode();
if (mode.equals(PortletMode.VIEW)) {
doView(req, res);
}
else if (mode.equals(LiferayPortletMode.ABOUT)) {
doAbout(req, res);
}
else if (mode.equals(LiferayPortletMode.CONFIG)) {
doConfig(req, res);
}
else if (mode.equals(PortletMode.EDIT)) {
doEdit(req, res);
}
else if (mode.equals(LiferayPortletMode.EDIT_DEFAULTS)) {
doEditDefaults(req, res);
}
else if (mode.equals(PortletMode.HELP)) {
doHelp(req, res);
}
else if (mode.equals(LiferayPortletMode.PREVIEW)) {
doPreview(req, res);
}
else if (mode.equals(LiferayPortletMode.PRINT)) {
doPrint(req, res);
}
else {
throw new PortletException(mode.toString());
}
}
}