Examples of WidgetTagImpl


Examples of org.apache.rave.portal.model.impl.WidgetTagImpl

    @Test
    public void saveWidgetTag() {
        try {

            WidgetTagImpl wtag = new WidgetTagImpl();
            TagImpl tag = new TagImpl();
            wtag.setTag(tag);
            expect(widgetTagRepository.save(wtag)).andReturn(wtag);
            replay(widgetTagRepository);

            widgetTagService.createWidgetTag(wtag);
            verify(widgetTagRepository);
View Full Code Here

Examples of org.apache.rave.portal.model.impl.WidgetTagImpl

                                HttpServletResponse response) {
        logger.debug("add tags " + tagText + " to widget " + widgetId);
        if (tagText != null && !tagText.trim().isEmpty()) {
            WidgetTag existed = widgetService.getWidgetTagByWidgetIdAndKeyword(widgetId, tagText);
            if (existed == null) {
                WidgetTag widgetTag = new WidgetTagImpl(userService.getAuthenticatedUser(), new Date(), getTag(tagText));
                widgetService.createWidgetTag(widgetId, widgetTag);
                logger.debug("widget tag is saved.");

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