Package org.dspace.app.cris.model.jdyna

Examples of org.dspace.app.cris.model.jdyna.DecoratorDynamicNestedPropertiesDefinition


    @Override
    protected ModelAndView onSubmit(HttpServletRequest request,
            HttpServletResponse response, Object command, BindException errors)
            throws Exception
    {
        DecoratorDynamicNestedPropertiesDefinition object = (DecoratorDynamicNestedPropertiesDefinition)command;
        String shortName = object.getShortName();
       
        String renderingparent = request.getParameter("renderingparent");
                       
        if(renderingparent!=null && !renderingparent.isEmpty()) {
            DecoratorDynamicTypeNested rPd = getApplicationService().get(DecoratorDynamicTypeNested.class, Integer.parseInt(renderingparent));           
            if(!shortName.startsWith(rPd.getShortName())) {
                object.getReal().setShortName(rPd.getShortName() + shortName);  
            }           
        }
        return super.onSubmit(request, response, command, errors);
    }
View Full Code Here


    @Override
    protected ModelAndView onSubmit(HttpServletRequest request,
            HttpServletResponse response, Object command, BindException errors)
            throws Exception
    {
        DecoratorDynamicNestedPropertiesDefinition object = (DecoratorDynamicNestedPropertiesDefinition)command;
        String shortName = object.getShortName();
       
        String renderingparent = request.getParameter("renderingparent");
       
        if(renderingparent!=null && !renderingparent.isEmpty()) {
            DecoratorDynamicTypeNested rPd = getApplicationService().get(DecoratorDynamicTypeNested.class, Integer.parseInt(renderingparent));           
            if(!shortName.startsWith(rPd.getShortName())) {
                object.getReal().setShortName(rPd.getShortName() + shortName);  
            }           
        }
        return super.onSubmit(request, response, command, errors);
    }
View Full Code Here

TOP

Related Classes of org.dspace.app.cris.model.jdyna.DecoratorDynamicNestedPropertiesDefinition

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.