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

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


                        .addAll(getApplicationService()
                                .<BoxOrganizationUnit, it.cilea.osd.jdyna.web.Tab<BoxOrganizationUnit>> findContainableInPropertyHolder(
                                        getClazzBox(), iph.getId()));
            }
        }
        OUAdditionalFieldStorage dynamicObject = grant.getDynamicField();
        OUAnagraficaObjectDTO anagraficaObjectDTO = new OUAnagraficaObjectDTO(
                grant);
        anagraficaObjectDTO.setTabId(areaId);
        anagraficaObjectDTO.setObjectId(grant.getId());
        anagraficaObjectDTO.setParentId(grant.getId());
View Full Code Here


        }
       
       
        OrganizationUnit grant = getApplicationService().get(OrganizationUnit.class,
                anagraficaObjectDTO.getParentId());
        OUAdditionalFieldStorage myObject = grant.getDynamicField();
       
        List<BoxOrganizationUnit> propertyHolders = new LinkedList<BoxOrganizationUnit>();
        if (editT.getDisplayTab() != null)
        {
            for (BoxOrganizationUnit box : editT.getDisplayTab().getMask())
            {
                propertyHolders.add(box);
            }
        }
        else
        {
            propertyHolders = getApplicationService().findPropertyHolderInTab(
                    getClazzTab(), anagraficaObjectDTO.getTabId());
        }

        List<IContainable> tipProprietaInArea = new LinkedList<IContainable>();

        for (BoxOrganizationUnit iph : propertyHolders)
        {

            tipProprietaInArea
                    .addAll(getApplicationService()
                            .<BoxOrganizationUnit, it.cilea.osd.jdyna.web.Tab<BoxOrganizationUnit>> findContainableInPropertyHolder(
                                    getClazzBox(), iph.getId()));

        }

        List<OUPropertiesDefinition> realTPS = new LinkedList<OUPropertiesDefinition>();
        List<IContainable> structuralField = new LinkedList<IContainable>();
        for (IContainable c : tipProprietaInArea)
        {
            OUPropertiesDefinition rpPd = getApplicationService()
                    .findPropertiesDefinitionByShortName(
                            OUPropertiesDefinition.class, c.getShortName());
            if (rpPd != null)
            {
                realTPS.add(rpPd);
            }
            else
            {
                structuralField.add(c);
            }
        }

        AnagraficaUtils.reverseDTO(anagraficaObjectDTO, myObject, realTPS);
       
        myObject.pulisciAnagrafica();
        grant.setSourceID(anagraficaObjectDTO.getSourceID());
        grant.setStatus(anagraficaObjectDTO.getStatus());
       
        getApplicationService().saveOrUpdate(OrganizationUnit.class, grant);
        EditTabOrganizationUnit area = getApplicationService().get(getClazzTab(),
View Full Code Here

    {

        AnagraficaObjectAreaDTO dto = (AnagraficaObjectAreaDTO) command;
        OrganizationUnit researcher = getApplicationService().get(OrganizationUnit.class,
                dto.getParentId());
        OUAdditionalFieldStorage myObject = researcher.getDynamicField();

        EditTabOrganizationUnit editT = getApplicationService().get(
                EditTabOrganizationUnit.class, dto.getTabId());
        List<BoxOrganizationUnit> propertyHolders = new LinkedList<BoxOrganizationUnit>();
        if (editT.getDisplayTab() != null)
View Full Code Here

    @Embedded
    private OUAdditionalFieldStorage dynamicField;

    public OrganizationUnit()
    {
        this.dynamicField = new OUAdditionalFieldStorage();
    }
View Full Code Here

TOP

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

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.