Examples of DynamicObjectType


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

    @Override
    protected Object formBackingObject(HttpServletRequest request)
            throws Exception
    {
        String id_s = request.getParameter("id");
        DynamicObjectType object = null;
        if (id_s != null)
        {
            Integer id = Integer.parseInt(id_s);
            object = applicationService.get(DynamicObjectType.class, id);
        }
        else
        {
            object = new DynamicObjectType();
        }
        return object;
    }
View Full Code Here

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

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

        DynamicObjectType object = (DynamicObjectType) command;

        if (object.getId() == null)
        {
            DynamicPropertiesDefinition fieldDefinition = new DynamicPropertiesDefinition();
            WidgetTesto widget = new WidgetTesto();
            fieldDefinition.setRendering(widget);
            fieldDefinition.setShortName(object.getShortName() + "name");
            DecoratorDynamicPropertiesDefinition decorator = fieldDefinition
                    .getDecoratorClass().newInstance();
            decorator.setReal(fieldDefinition);
            applicationService.saveOrUpdate(
                    DecoratorDynamicPropertiesDefinition.class, decorator);

            object.getMask().add(fieldDefinition);
        }
        applicationService.saveOrUpdate(DynamicObjectType.class, object);
        return new ModelAndView(getSuccessView());
    }
View Full Code Here

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

        }
       
        DynamicAnagraficaObjectDTO object = (DynamicAnagraficaObjectDTO)command;       
        // collection of edit tabs (all edit tabs created on system associate to
        // visibility)
        DynamicObjectType typo = getApplicationService().get(DynamicObjectType.class, object.getTipologiaId());
        List<EditTabDynamicObject> tabs = getApplicationService()
                .<BoxDynamicObject, DynamicObjectType, DynamicPropertiesDefinition, TabDynamicObject, EditTabDynamicObject>getEditTabsByVisibilityAndType(EditTabDynamicObject.class, isAdmin, typo);

        // check if request tab from view is active (check on collection before)
        EditTabDynamicObject editT = getApplicationService().get(
View Full Code Here

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

            request.setAttribute("message", message);
        }
           
        String shortName = Utils.getAdminSpecificPath(request, null);    
       
        DynamicObjectType typo = applicationService.findTypoByShortName(DynamicObjectType.class, shortName);

        String sort = paramSort != null ? paramSort : "id";
        String dir = paramDir != null ? paramDir : "asc";
        int page = paramPage != null ? Integer.parseInt(paramPage) : 1;
        long count = applicationService.countResearchObjectByType(typo);
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.