Package org.encuestame.persistence.exception

Examples of org.encuestame.persistence.exception.EnMeGadgetNotFoundException


            } else {
                throw new EnMeNoResultsFoundException("gadget not found");
            }
            return gadget;
        } else {
            throw new EnMeGadgetNotFoundException("gadget invalid");
        }
    }
View Full Code Here


     */
    public List<GadgetProperties> getPropertiesbyGadget(final Long gadgetId) throws EnMeGadgetNotFoundException{
        final Gadget gadget = getDashboardDao().getGadgetbyId(gadgetId);
        List<GadgetProperties> properties = new ArrayList<GadgetProperties>();
        if (gadget == null) {
            throw new EnMeGadgetNotFoundException("gadget not found");
        } else{
            properties = getDashboardDao().retrievePropertiesbyGadget(gadgetId);
        }
        return properties;
    }
View Full Code Here

    private Gadget getGadget(final Long gadgetId, final Dashboard board) throws EnMeNoResultsFoundException{
         Assert.notNull(gadgetId);
         Assert.notNull(board);
         final Gadget gadget = getDashboardDao().getGadgetbyIdandBoard(gadgetId, board);
         if (gadget == null) {
              throw new EnMeGadgetNotFoundException("gadget is missing");
         }
     return gadget;
    }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.exception.EnMeGadgetNotFoundException

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.