Package org.sete.service.common

Examples of org.sete.service.common.SystemTypesService


        checkAuthorization(doAuthorization(request));

        HttpSessionManager.unbindAll(request.getSession());

        SystemTypesService svc = getService(SystemTypesService.class);
        List<TypeClassInfoVo> types = svc.loadClassInfoForAllTypes();

        request.setAttribute(WebConstants.PAGE_VO, types);

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here


                                      HttpServletRequest request,
                                      HttpServletResponse response) throws Exception {

        checkAuthorization(doAuthorization(request));

        SystemTypesService svc = getService(SystemTypesService.class);
        List<TypeDataVo> types = svc.loadAllDataForType(populateTypeDateVo(form));

        TypeDataPageVo pageVo = new TypeDataPageVo();
        pageVo.setTypes(types);
        pageVo.setTypeClassname(((ManageTypeDataForm)form).getClassName());
View Full Code Here

                                      HttpServletRequest request,
                                      HttpServletResponse response) throws Exception {

        checkAuthorization(doAuthorization(request));

        SystemTypesService svc = getService(SystemTypesService.class);
        TypeDataVo typeVo = svc.loadTypeData(populateTypeDateVo(form));
        BeanUtils.copyProperties(form, typeVo);

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

                                      HttpServletRequest request,
                                      HttpServletResponse response) throws Exception {

        checkAuthorization(doAuthorization(request));

        SystemTypesService svc = getService(SystemTypesService.class);
        svc.updateType(populateTypeDateVo(form));
        TypeLoader.initializeSystemTypes(getServletContext());

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

                                         HttpServletRequest request,
                                         HttpServletResponse response) throws Exception {

        checkAuthorization(doAuthorization(request));

        SystemTypesService svc = getService(SystemTypesService.class);
        svc.createType(populateTypeDateVo(form));
        TypeLoader.initializeSystemTypes(getServletContext());

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

                                        HttpServletRequest request,
                                        HttpServletResponse response) throws Exception {

        checkAuthorization(doAuthorization(request));

        SystemTypesService svc = getService(SystemTypesService.class);
        svc.deleteType(populateTypeDateVo(form));
        TypeLoader.initializeSystemTypes(getServletContext());

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

        if(servletContext == null) {
            throw new IllegalArgumentException("ServletContext cannot be null.");
        }

        SystemTypesService service = ApplicationContextUtil.getService(SystemTypesService.class);

        List<AwardType> awardTypes = service.loadType(AwardType.class);
        List<ScienceProjectCategoryType> projectCategoryTypes = service.loadType(ScienceProjectCategoryType.class);
        List<ScienceProjectStatusType> projectStatusTypes = service.loadType(ScienceProjectStatusType.class);
        List<UserPrivilegeType> userPrivTypes = service.loadType(UserPrivilegeType.class);
        List<UserRoleType> userRoleTypes = service.loadType(UserRoleType.class);
        List<PrivilegeActionType> actionTypes = service.loadType(PrivilegeActionType.class);
        List<AttachmentType> attachmentTypes = service.loadType(AttachmentType.class);

        List<AbstractLookupType> lookupTypes = new ArrayList<AbstractLookupType>();
        lookupTypes.addAll(awardTypes);
        lookupTypes.addAll(projectCategoryTypes);
        lookupTypes.addAll(projectStatusTypes);
View Full Code Here

        checkAuthorization(doAuthorization(request));

        HttpSessionManager.unbindAll(request.getSession());

        SystemTypesService svc = getService(SystemTypesService.class);
        List<TypeClassInfoVo> types = svc.loadClassInfoForAllTypes();

        request.setAttribute(WebConstants.PAGE_VO, types);

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

                                      HttpServletRequest request,
                                      HttpServletResponse response) throws Exception {

        checkAuthorization(doAuthorization(request));

        SystemTypesService svc = getService(SystemTypesService.class);
        List<TypeDataVo> types = svc.loadAllDataForType(populateTypeDateVo(form));

        request.setAttribute(WebConstants.PAGE_VO, types);

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

                                      HttpServletRequest request,
                                      HttpServletResponse response) throws Exception {

        checkAuthorization(doAuthorization(request));

        SystemTypesService svc = getService(SystemTypesService.class);
        TypeDataVo typeVo = svc.loadTypeData(populateTypeDateVo(form));
        BeanUtils.copyProperties(form, typeVo);

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

TOP

Related Classes of org.sete.service.common.SystemTypesService

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.