Package org.cyclos.impl.marketplace
Interface AdCategoryServiceLocal
-
- All Superinterfaces:
AdCategoryService,CRUDService<AdCategoryDTO,AdCategoryData,AdCategoryVO>,CRUDServiceLocal<AdCategory,AdCategoryDTO,AdCategoryData,AdCategoryVO>,Service
public interface AdCategoryServiceLocal extends AdCategoryService, CRUDServiceLocal<AdCategory,AdCategoryDTO,AdCategoryData,AdCategoryVO>
Local interface forAdCategoryService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearAdCategoriesCache(Long languageId)Evicts all keys matching the current network and for the given language.AdCategoryVOfindByParentAndInternalName(AdCategoryVO parent, String internalName)Finds a category with the given parent and internal name.List<AdCategory>listRoot(boolean onlyActive)Returns a list of root categories, optionally only the activeList<AdCategoryDetailedVO>listVisible(User user)Returns the visible ad categories for the given user or the logged user if null-
Methods inherited from interface org.cyclos.services.marketplace.AdCategoryService
saveCategories, saveOrder, search, sortAlphabetically
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Method Detail
-
clearAdCategoriesCache
void clearAdCategoriesCache(Long languageId)
Evicts all keys matching the current network and for the given language. If the languageId is null then will evict for all languages.
-
findByParentAndInternalName
AdCategoryVO findByParentAndInternalName(AdCategoryVO parent, String internalName)
Finds a category with the given parent and internal name. In case parent is null it will look for root categories
-
listRoot
List<AdCategory> listRoot(boolean onlyActive)
Returns a list of root categories, optionally only the active
-
listVisible
List<AdCategoryDetailedVO> listVisible(User user)
Returns the visible ad categories for the given user or the logged user if null
-
-