Class WidgetStorage

java.lang.Object
io.meeds.ide.storage.WidgetStorage

@Component public class WidgetStorage extends Object
  • Constructor Details

    • WidgetStorage

      public WidgetStorage()
  • Method Details

    • getWidget

      @Cacheable("ide.widget") public Widget getWidget(Long id)
    • createWidget

      @CacheEvict(value="ide.widget", allEntries=true) public Widget createWidget(Widget widget)
    • updateWidget

      @CacheEvict(value="ide.widget", allEntries=true) public Widget updateWidget(Widget widget)
    • deleteWidgetById

      @CacheEvict(value="ide.widget", allEntries=true) public void deleteWidgetById(long widgetId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getWidgetsByProperties

      @Cacheable("ide.widget") public List<Widget> getWidgetsByProperties(Map<String,String> properties)
    • getWidgetByPortletId

      public Widget getWidgetByPortletId(long portletInstanceId)
    • existsByPortletInstanceId

      public boolean existsByPortletInstanceId(Long portletInstanceId)