Package org.libreplan.web.common.entrypoints.EntryPointsHandler

Examples of org.libreplan.web.common.entrypoints.EntryPointsHandler.ICapture


        sendToPersonalTimesheet(personalTimesheetModel.getNext());
    }

    private void sendToPersonalTimesheet(final LocalDate date) {
        String capturePath = EntryPointsHandler.capturePath(new ICapture() {
            @Override
            public void capture() {
                personalTimesheetController.goToCreateOrEditForm(date);
            }
        });
View Full Code Here


    }

    public void initializeMenu() {
        List<CustomMenuItem> planningItems = new ArrayList<CustomMenuItem>();
        if (SecurityUtils.isSuperuserOrRolePlanningOrHasAnyAuthorization()) {
            planningItems.add(subItem(_("Company view"), new ICapture() {
                @Override
                public void capture() {
                    globalView.goToCompanyScheduling();
                }
            }, "01-introducion.html"));
            planningItems.add(subItem(_("Projects"), new ICapture() {
                @Override
                public void capture() {
                    globalView.goToOrdersList();
                }
            }, "01-introducion.html#id2"));
        }
        if (SecurityUtils.isSuperuserOrUserInRoles(UserRole.ROLE_PLANNING)) {
            planningItems.add(subItem(_("Resources Load"), new ICapture() {
                @Override
                public void capture() {
                    globalView.goToCompanyLoad();
                }
            }, "01-introducion.html#id1"));
            planningItems.add(subItem(_("Queue-based Resources"), new ICapture() {
                @Override
                public void capture() {
                    globalView.goToLimitingResources();
                }
            }, "01-introducion.html"));
View Full Code Here

TOP

Related Classes of org.libreplan.web.common.entrypoints.EntryPointsHandler.ICapture

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.