Class ReportManagerPresenter
- All Implemented Interfaces:
Presenter<ReportManagerView>,PresenterLifeCicleAware<ReportManagerView>,ContextProvider,Action.Handler,SerializableEventListener,ItemClickEvent.ItemClickListener,Serializable,EventListener
@Component
@Scope("prototype")
@MenuContext(@Entry(target="new-window",menu="MAIN_MENU",displayName="Relat\u00f3rios",singleton=true,closable=true,resizeable=true,width="90%",height="90%"))
@Role({REPORT_MANAGER,REPORT_VIEWER})
public class ReportManagerPresenter
extends AbstractPresenter<ReportManagerView>
implements Action.Handler, ItemClickEvent.ItemClickListener, ContextProvider
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandisplayReport(int reportId) booleandisplayReport(int reportId, boolean showNavigationMenu) Action[]getActions(Object target, Object sender) getView()voidhandleAction(Action action, Object sender, Object target) voiditemClick(ItemClickEvent event) voidsetConfigService(ConfigService configService) voidsetFormFactory(FormFactory formFactory) voidsetFormService(FormService formService) voidsetMenuService(MenuSuperiorService menuService) voidsetReportExecutor(TaskExecutor reportExecutor) voidsetReportService(ReportService reportService) voidsetRoleService(RoleService roleService) voidsetTokenUtil(JWTTokenUtil tokenUtil) voidsetView(ReportManagerView view) Methods inherited from class AbstractPresenter
closeAllowed, getEventBus, handlePresenterAttach, handlePresenterClose, handlePresenterDetach, setEventBus
-
Field Details
-
SPLIT_CONFIG_ID
- See Also:
-
-
Constructor Details
-
ReportManagerPresenter
public ReportManagerPresenter()
-
-
Method Details
-
setReportService
-
setRoleService
-
setConfigService
-
setFormService
-
setMenuService
-
setFormFactory
-
setView
-
getView
- Specified by:
getViewin interfacePresenter<ReportManagerView>
-
setTokenUtil
-
setReportExecutor
@Autowired @Qualifier("applicationExecutor") public void setReportExecutor(TaskExecutor reportExecutor) -
getActions
- Specified by:
getActionsin interfaceAction.Handler
-
handleAction
- Specified by:
handleActionin interfaceAction.Handler
-
itemClick
public void itemClick(ItemClickEvent event) - Specified by:
itemClickin interfaceItemClickEvent.ItemClickListener
-
displayReport
public boolean displayReport(int reportId) -
displayReport
public boolean displayReport(int reportId, boolean showNavigationMenu) -
getContextName
- Specified by:
getContextNamein interfaceContextProvider
-
getContextDescriptions
- Specified by:
getContextDescriptionsin interfaceContextProvider
-