Examples of DecoratorProjectTypeNested


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

        for (IContainable cont : box.getMask())
        {

            if (cont instanceof DecoratorProjectTypeNested)
            {
                DecoratorProjectTypeNested decorator = (DecoratorProjectTypeNested) cont;
                ProjectTypeNestedObject real = (ProjectTypeNestedObject)decorator.getReal();
                List<ProjectNestedObject> results = getApplicationService()
                        .getNestedObjectsByParentIDAndTypoID(Integer
                                .parseInt(p.getIdentifyingValue()),
                                (real.getId()), ProjectNestedObject.class);
               
                external: for (ProjectNestedObject object : results)
                {
                    for (ProjectNestedPropertiesDefinition rpp : real
                            .getMask())
                    {                  
                       
                       
                            for (ProjectNestedProperty pp : object.getAnagrafica4view().get(rpp.getShortName()))
                            {
                                if (pp.getVisibility() == 1)
                                {
                                    result++;
                                    break external;
                                }
                            }

                       
                       
                    }
                }

            }

            
            if (cont instanceof DecoratorProjectPropertiesDefinition)
            {
                DecoratorProjectPropertiesDefinition decorator = (DecoratorProjectPropertiesDefinition) cont;
                result += ResearcherTagLibraryFunctions.countDynamicPublicMetadata(
                        p.getDynamicField(), decorator.getShortName(),
                        decorator.getRendering(), decorator.getReal(),
                        false);

            }
            
        
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.