Class DefaultBackofficeBookmarkHandler

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.controller.bookmark.BookmarkHandler

    public class DefaultBackofficeBookmarkHandler
    extends com.hybris.cockpitng.widgets.controller.bookmark.DefaultBookmarkHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String QUERY
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2005
      • Fields inherited from class com.hybris.cockpitng.widgets.controller.bookmark.DefaultBookmarkHandler

        BOOKMARK_OBJECT_ACCESS, OUTPUT_SOCKET_DEFAULT_ENTITY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FlexibleSearchService getFlexibleSearchService()  
      <T> T loadObject​(java.lang.String id)
      This implementation is based on Flexible Search in order to get search restrictions applied to the entity.
      • Methods inherited from class com.hybris.cockpitng.widgets.controller.bookmark.DefaultBookmarkHandler

        getCockpitUserService, getNotificationService, getObjectFacade, getPermissionFacade, handleBookmark, setCockpitUserService, setNotificationService, setObjectFacade, setPermissionFacade
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • QUERY

        @Deprecated(since="2005",
                    forRemoval=true)
        public static final java.lang.String QUERY
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 2005
        The field is not used anymore.
    • Constructor Detail

      • DefaultBackofficeBookmarkHandler

        public DefaultBackofficeBookmarkHandler​(FlexibleSearchService flexibleSearchService)
    • Method Detail

      • loadObject

        public <T> T loadObject​(java.lang.String id)
                         throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException
        This implementation is based on Flexible Search in order to get search restrictions applied to the entity. Simply loading the entity via Model Service would lead to omitting the restrictions.
        Overrides:
        loadObject in class com.hybris.cockpitng.widgets.controller.bookmark.DefaultBookmarkHandler
        Type Parameters:
        T - the type of the entity to be loaded
        Parameters:
        id - identifier of the entity to load
        Returns:
        the entity (ItemModel) denoted by the type or the result of calling super-type's loadObject(String) method if the id does not denote an ItemModel
        Throws:
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException - in case the id does not denote a valid entity (entity can't be found)