Class FavoriteItemService

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.service.AbstractPaginationService<DB_TYPE,String>
systems.dennis.shared.mongo.service.PaginationService<FavoriteItemModel>
systems.dennis.shared.favorite.service.FavoriteItemService
All Implemented Interfaces:
systems.dennis.shared.service.AbstractService<FavoriteItemModel,String>, systems.dennis.shared.service.DeleteObject<FavoriteItemModel,String>

@Service public class FavoriteItemService extends systems.dennis.shared.mongo.service.PaginationService<FavoriteItemModel>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class systems.dennis.shared.utils.ApplicationContext

    CREATED_FIELDS_MAP
  • Constructor Summary

    Constructors
    Constructor
    Description
    FavoriteItemService(systems.dennis.shared.config.WebContext holder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
    boolean
     
    boolean
    isFavoriteForObject(systems.dennis.shared.mongo.service.StringIdEntity entity)
     
    boolean
     
     

    Methods inherited from class systems.dennis.shared.mongo.service.PaginationService

    getFilterImpl

    Methods inherited from class systems.dennis.shared.service.AbstractPaginationService

    afterEdit, deleteItems, edit, editField, exists, find, find, getAdditionalCases, getLogger, getRepository, getUtils, isIdSet, preFetchOriginal, save

    Methods inherited from class systems.dennis.shared.utils.ApplicationContext

    canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface systems.dennis.shared.service.AbstractService

    afterAdd, afterDelete, checkMy, count, count, createFromRequest, delete, download, exists, find, find, findById, findById, findById, findByIdClone, findByIdOrThrow, getAdditionalSpecification, getByIdAndUserDataId, getContext, getFieldOrder, getForm, getInterNalResource, getItemFavoriteType, getModel, getSearchRequestAbstractDataFilter, getSelfCreatedItems, getSelfCreatedItems, getSelfCreatedItemsQuery, getSelfCreatedItemsQuery, isEmpty, isEmpty, isIdSet, isObjectDeleted, isPublicSearchEnabled, modifyQuery, preDelete, preEdit, prepareAbstractDataFilter, preSearch, saveVersionIfRequired, search, search, updateId, updateIds

    Methods inherited from interface systems.dennis.shared.service.DeleteObject

    delete, getDeleteField, getDeleteStrategy, getNotDeletedQuery, getSelfOnly, getStoreHistoryRequired, saveDeleteHistoryIfRequired
  • Field Details

  • Constructor Details

    • FavoriteItemService

      public FavoriteItemService(systems.dennis.shared.config.WebContext holder)
  • Method Details

    • preAdd

      public FavoriteItemModel preAdd(FavoriteItemModel object) throws systems.dennis.shared.exceptions.ItemForAddContainsIdException
      Throws:
      systems.dennis.shared.exceptions.ItemForAddContainsIdException
    • findBySearchName

      public String findBySearchName(String name)
    • delete

      public void delete(FavoriteItemForm id) throws systems.dennis.shared.exceptions.ItemNotUserException, systems.dennis.shared.exceptions.ItemNotFoundException
      Throws:
      systems.dennis.shared.exceptions.ItemNotUserException
      systems.dennis.shared.exceptions.ItemNotFoundException
    • getIsFavoriteEnabled

      public Boolean getIsFavoriteEnabled()
    • isFavoriteForObject

      public boolean isFavoriteForObject(FavoriteItemForm form)
    • isFavoriteForObject

      public boolean isFavoriteForObject(systems.dennis.shared.mongo.service.StringIdEntity entity)
    • isFavoriteLimitNotExceeded

      public boolean isFavoriteLimitNotExceeded(FavoriteItemForm form)