Class DefaultSearchRestrictionDao

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<SearchRestrictionModel>
de.hybris.platform.search.restriction.dao.impl.DefaultSearchRestrictionDao
All Implemented Interfaces:
SearchRestrictionDao, GenericDao<SearchRestrictionModel>

public class DefaultSearchRestrictionDao extends DefaultGenericDao<SearchRestrictionModel> implements SearchRestrictionDao
Default implementation of SearchRestrictionDao interface.
  • Constructor Details

    • DefaultSearchRestrictionDao

      public DefaultSearchRestrictionDao()
  • Method Details

    • findActiveSearchRestrictionsByPrincipalAndType

      public List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types)
      Description copied from interface: SearchRestrictionDao
      Finds active SearchRestrictionModel objects for PrincipalModel and ComposedTypeModel. If includePrincipalGroups is true then also all user groups for PrincipalModel will be used in the search.
      Specified by:
      findActiveSearchRestrictionsByPrincipalAndType in interface SearchRestrictionDao
      Parameters:
      principal - the principal for which restrictions will be searched.
      includePrincipalGroups - determines whether include principal groups in search.
      types - the collection of ComposedTypeModel objects for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.
    • findInactiveSearchRestrictionsByPrincipalAndType

      public List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types)
      Description copied from interface: SearchRestrictionDao
      Finds all SearchRestrictionModel objects for PrincipalModel and ComposedTypeModel. If includePrincipalGroups is true then also all user groups for PrincipalModel will be used in the search.
      Specified by:
      findInactiveSearchRestrictionsByPrincipalAndType in interface SearchRestrictionDao
      Parameters:
      principal - the principal for which restrictions will be searched.
      includePrincipalGroups - determines whether include principal groups in search.
      types - the collection of ComposedTypeModel objects for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.
    • findSearchRestrictionsByPrincipalAndType

      public List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types)
      Description copied from interface: SearchRestrictionDao
      Finds all SearchRestrictionModel objects for PrincipalModel and ComposedTypeModel. If includePrincipalGroups is true then also all user groups for PrincipalModel will be used in the search.
      Specified by:
      findSearchRestrictionsByPrincipalAndType in interface SearchRestrictionDao
      Parameters:
      principal - the principal for which restrictions will be searched.
      includePrincipalGroups - determines whether include principal groups in search.
      types - the collection of ComposedTypeModel objects for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.
    • findSearchRestrictionsByType

      public List<SearchRestrictionModel> findSearchRestrictionsByType(ComposedTypeModel type)
      Finds all SearchRestrictionModel objects for ComposedTypeModel
      Specified by:
      findSearchRestrictionsByType in interface SearchRestrictionDao
      Parameters:
      type - the ComposedTypeModel object for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.