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

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


        for (IContainable cont : containables)
        {

            if (cont instanceof DecoratorRPTypeNested)
            {
                DecoratorRPTypeNested decorator = (DecoratorRPTypeNested) cont;
                RPTypeNestedObject real = (RPTypeNestedObject) decorator
                        .getReal();
                List<RPNestedObject> results = applicationService
                        .getNestedObjectsByParentIDAndTypoID(Integer
                                .parseInt(anagrafica.getIdentifyingValue()),
                                (real.getId()), RPNestedObject.class);

                external: for (RPNestedObject object : results)
                {
                    for (RPNestedPropertiesDefinition rpp : real.getMask())
                    {

                        for (RPNestedProperty p : object.getAnagrafica4view()
                                .get(rpp.getShortName()))
                        {
                            if (p.getVisibility() == 1)
                            {
                                result++;
                                break external;
                            }
                        }

                    }
                }

            }

            if (cont instanceof DecoratorRPPropertiesDefinition)
            {
                DecoratorRPPropertiesDefinition decorator = (DecoratorRPPropertiesDefinition) cont;               
                result += countDynamicPublicMetadata(
                        anagrafica.getDynamicField(), decorator.getShortName(),
                        decorator.getRendering(), decorator.getReal(),
                        onlyComplexValue);
            }

        }

        if (!onlyComplexValue)
        {
            containables = new LinkedList<IContainable>();
            applicationService.findOtherContainablesInBoxByConfiguration(
                    box.getShortName(), containables);
            for (IContainable decorator : containables)
            {
                String shortName = decorator.getShortName();
                Method[] methods = anagrafica.getClass().getMethods();
                Object field = null;
                Method method = null;
                for (Method m : methods)
                {
View Full Code Here

TOP

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

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.