Package org.jtalks.common.model.entity

Examples of org.jtalks.common.model.entity.Component


        permissionService.changeRestrictions(group, changes);
    }

    @Test
    public void testGetPermissionsMapFor() {
        Component component = mock(Component.class);
        doReturn(new GroupsPermissions()).when(permissionManager).getPermissionsMapFor(component);
        assertNotNull(permissionService.getPermissionsMapFor(component));
    }
View Full Code Here


     * @param uploadedBanner uploaded banner
     * @return url of requested page, so it will be re-displayed to user
     */
    @RequestMapping(value = "/banners/upload", method = RequestMethod.POST)
    public String upload(@ModelAttribute Banner uploadedBanner, HttpServletRequest request) {
        Component component = componentService.getComponentOfForum();
        bannerService.uploadBanner(uploadedBanner, component);
        return "redirect:" + getSourcePageUrl(request);
    }
View Full Code Here

TOP

Related Classes of org.jtalks.common.model.entity.Component

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.