Examples of Collaborator


Examples of domain.Collaborator

       
        WorkReportDTO dto = (WorkReportDTO) command;
        model.put("command", dto);

        //STUB
        Collaborator author = getDao().getById(Collaborator.class, getUserInfo().getCurrentCollaboratorId());
        //ENDSTUB

        Day day = new  Day(dto.getYear(), dto.getMonth(), dto.getDay());

        DetachedCriteria queryCriteria = DetachedCriteria.forClass(SheduleReception.class)
View Full Code Here

Examples of domain.Collaborator

        this.collaborator = reception.getCollaborator();
        this.register =  (reception.getRegister() != null
                ? new SimpleDateFormat("kk:mm").format(reception.getRegister())
                : "");

        Collaborator authorColl = reception.getAuthor();
        if (authorColl != null) {
            author = authorColl.getClient().toString();
        }
        time = reception.getBegin().getTime();
    }
View Full Code Here

Examples of domain.Collaborator

    @Override
    protected void onBind(HttpServletRequest request, Object command, BindException errors) throws Exception {
        CollaboratorDTO dto = (CollaboratorDTO) super.getCommand(request);
        if(dto.getCollaborator() != null) {
            Collaborator collab = dto.getCollaborator();
            dto.setSurname(collab.getClient().getSurname().getTitle());
            dto.setName(collab.getClient().getName().getTitle());
            dto.setPatron(collab.getClient().getPatronymic().getTitle());
        }
    }
View Full Code Here

Examples of domain.Collaborator

    }

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        if (collab == null) {
            return IncomingParamsValidator.redirectTo("/operator/collaborator.htm", client, type, lpu, collab);
        }
View Full Code Here

Examples of domain.Collaborator

    protected ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {

        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));

        if (client == null) {
            return IncomingParamsValidator.redirectTo("/reception/index.htm", client, type, lpu, collab);
        } else if (collab == null) {
            return IncomingParamsValidator.redirectTo("/reception/collaborator.htm", client, type, lpu, collab);
View Full Code Here

Examples of domain.Collaborator

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));

        if (client == null) {
            return IncomingParamsValidator.redirectTo("/reception/index.htm", client, type, lpu, collab);
        } else if (collab == null) {
            return IncomingParamsValidator.redirectTo("/reception/collaborator.htm", client, type, lpu, collab);
View Full Code Here

Examples of org.apache.aries.blueprint.proxy.Collaborator

                Bundle b = FrameworkUtil.getBundle(original.getClass());
                if (b == null) {
                  // we have a class from the framework parent, so use our bundle for proxying.
                  b = blueprintContainer.getBundleContext().getBundle();
                }
                InvocationListener collaborator = new Collaborator(cm, interceptors);

                intercepted = blueprintContainer.getProxyManager().createInterceptingProxy(b,
                        getClassesForProxying(original), original, collaborator);
            } catch (Exception u) {
                Bundle b = blueprintContainer.getBundleContext().getBundle();
View Full Code Here

Examples of org.apache.aries.blueprint.proxy.Collaborator

                if (b == null) {
                  // we have a class from the framework parent, so use our bundle for proxying.
                  b = blueprintContainer.getBundleContext().getBundle();
                }
                Callable<Object> target = ProxyUtils.passThrough(original);
                InvocationHandlerWrapper collaborator = new Collaborator(cm, interceptors);
                try {
                    intercepted = BlueprintExtender.getProxyManager().createProxy(b,
                        ProxyUtils.asList(original.getClass()), target, collaborator);
                } catch (org.apache.aries.proxy.FinalModifierException u) {
                    LOGGER.debug("Error creating asm proxy (final modifier), trying with interfaces");
View Full Code Here

Examples of org.apache.aries.blueprint.proxy.Collaborator

                // we have a class from the framework parent, so use our bundle for proxying.
                b = blueprintContainer.getBundleContext().getBundle();
              }
              intercepted = BlueprintExtender.getProxyManager().createProxy(b,
                  ProxyUtils.asList(original.getClass()), ProxyUtils.passThrough(original),
                  new Collaborator(interceptorLookupKey, interceptors));
            } catch (org.apache.aries.proxy.UnableToProxyException e) {
                  Bundle b = blueprintContainer.getBundleContext().getBundle();
                  throw new ComponentDefinitionException("Unable to create proxy for bean " + name + " in bundle " + b.getSymbolicName() + " version " + b.getVersion(), e);
            }
        } else {
View Full Code Here

Examples of org.apache.aries.blueprint.proxy.Collaborator

                if (b == null) {
                    // we have a class from the framework parent, so use our bundle for proxying.
                    b = blueprintContainer.getBundleContext().getBundle();
                }
                intercepted = blueprintContainer.getProxyManager().createInterceptingProxy(b,
                requiredInterfaces, original, new Collaborator(interceptorLookupKey, interceptors));
            } catch (org.apache.aries.proxy.UnableToProxyException e) {
                Bundle b = blueprintContainer.getBundleContext().getBundle();
                throw new ComponentDefinitionException("Unable to create proxy for bean " + name + " in bundle " + b.getSymbolicName() + " version " + b.getVersion(), e);
            }
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.