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

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


            RPPropertiesDefinition fN = applicationService
                    .findPropertiesDefinitionByShortName(
                            RPPropertiesDefinition.class, "fullName");
            TextValue val = new TextValue();
            val.setOggetto(getCurrentUser(request).getFullName());
            RPProperty prop = rp.createProprieta(fN);
            prop.setValue(val);
            prop.setVisibility(1);
            applicationService.saveOrUpdate(ResearcherPage.class, rp);
        }
        returnStatusJSON(response, rp);
        return null;
    }
View Full Code Here


            if (!value.equalsIgnoreCase("0"))
            {
                RPPropertiesDefinition propDef = applicationService
                        .findPropertiesDefinitionByShortName(
                                RPPropertiesDefinition.class, propDefName);
                RPProperty rpItemsCited = rp.getDynamicField().createProprieta(
                        propDef);
                TextValue valore = new TextValue();
                valore.setOggetto(value);
                rpItemsCited.setValue(valore);
                rpItemsCited.setVisibility(VisibilityConstants.PUBLIC);
                updated = true;
            }
        }
        else
        {
            RPProperty rpProperty = currProps.get(0);

            if (!value.equalsIgnoreCase("0"))
            {
                if (!value.equalsIgnoreCase((String) rpProperty.getObject()))
                {
                    rpProperty.getValue().setOggetto(value);
                    updated = true;
                }
            }
            else
            {
                rpProperty.getParent().removeProprieta(rpProperty);
                updated = true;
            }
        }
        return updated;
    }
View Full Code Here

    {
        List<RPProperty> nListConnectionRPP = anagraficaObject
                .getAnagrafica4view().get(
                        shortName);

        RPProperty nConnectionRPP = null;
        if (nListConnectionRPP != null && nListConnectionRPP.size() > 0)
        {
            List<RPProperty> toRemove = new LinkedList<RPProperty>();
            for (RPProperty p : nListConnectionRPP)
            {
                toRemove.add(p);
            }  
           
            for(RPProperty to : toRemove) {
                anagraficaObject.removeProprieta(to);
            }
            //            nConnectionRPP = nListConnectionRPP.get(0);
        }
//        else
//        {
            nConnectionRPP = anagraficaObject
                    .createProprieta(applicationService
                            .findPropertiesDefinitionByShortName(
                                    RPPropertiesDefinition.class,
                                    shortName));
//        }

        TextValue nConnectionValue = new TextValue();
        nConnectionValue.setOggetto(value);
        nConnectionRPP.setValue(nConnectionValue);
        nConnectionRPP.setVisibility(VisibilityConstants.PUBLIC);
    }
View Full Code Here

TOP

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

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.