Package org.encuestame.persistence.domain.dashboard

Examples of org.encuestame.persistence.domain.dashboard.GadgetProperties


    }

    public GadgetProperties createGadgetProperties(final String name, final String value,
            final Gadget gadget,
            final UserAccount user){
        final GadgetProperties properties = new GadgetProperties();
        properties.setGadgetPropName(name);
        properties.setGadgetPropValue(value);
        properties.setUserAccount(user);
        properties.setGadget(gadget);
        getDashboardDao().saveOrUpdate(properties);
        return properties;
    }
View Full Code Here


     */
    public GadgetProperties createProperty(
            final Gadget gadget,
            final String gadgetPropName,
            final String gadgetPropValue) throws EnMeNoResultsFoundException{
        final GadgetProperties gadgetProperties = new GadgetProperties();
        gadgetProperties.setGadget(gadget);
        gadgetProperties.setGadgetPropName(gadgetPropName);
        gadgetProperties.setGadgetPropValue(gadgetPropValue);
        gadgetProperties.setUserAccount(getUserAccount(getUserPrincipalUsername()));
        getDashboardDao().saveOrUpdate(gadgetProperties);
        return gadgetProperties;
    }
View Full Code Here

     /** Gadget Properties **/
     @Test
     public void testGadgetProperties(){
         final UserAccount user = createUserAccount("diana paola", createAccount());
         final Dashboard board = createDashboardDefault(user);
         final GadgetProperties gadgetProp = new GadgetProperties();
         gadgetProp.setGadgetPropName("maxResults");
         gadgetProp.setGadgetPropValue("10");
         gadgetProp.setUserAccount(user);
         gadgetProp.setGadget(createGadgetDefault(board));
         getDashboardDao().saveOrUpdate(gadgetProp);
     }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.domain.dashboard.GadgetProperties

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.