Class DefaultCMSSyncSearchRestrictionService
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSSyncSearchRestrictionService
-
- All Implemented Interfaces:
CMSSyncSearchRestrictionService
public class DefaultCMSSyncSearchRestrictionService extends java.lang.Object implements CMSSyncSearchRestrictionService
Default implementation of SearchRestriction of synchronization service which is used to create SearchRestriction for CMS_SYNC_USER_ID
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSSyncSearchRestrictionService(TypeService typeService, UserService userService, ModelService modelService, FlexibleSearchService flexibleSearchService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchRestrictionModelcreateCmsSyncSearchRestriction(java.lang.String restrictionCode, java.lang.Class<?> restrictedTypeClass, java.lang.String query)Creates and saves a search restriction with the given data.protected FlexibleSearchServicegetFlexibleSearchService()protected ModelServicegetModelService()protected java.util.List<SearchRestrictionModel>getSearchRestrictionByCode(java.lang.String restrictionCode)Gets the SearchRestriction by codeprotected UserModelgetSyncPrincipal()Gets the principal in charge of executing synchronization jobs.protected TypeServicegetTypeService()protected UserServicegetUserService()
-
-
-
Constructor Detail
-
DefaultCMSSyncSearchRestrictionService
public DefaultCMSSyncSearchRestrictionService(TypeService typeService, UserService userService, ModelService modelService, FlexibleSearchService flexibleSearchService)
-
-
Method Detail
-
createCmsSyncSearchRestriction
public SearchRestrictionModel createCmsSyncSearchRestriction(java.lang.String restrictionCode, java.lang.Class<?> restrictedTypeClass, java.lang.String query)
Creates and saves a search restriction with the given data.- Specified by:
createCmsSyncSearchRestrictionin interfaceCMSSyncSearchRestrictionService- Parameters:
restrictionCode- The code used to identify the search restriction to createrestrictedTypeClass- The type that will be restricted by this search restrictionquery- The query used to perform the search restriction- Returns:
- The new created SearchRestrictionModel
-
getSyncPrincipal
protected UserModel getSyncPrincipal()
Gets the principal in charge of executing synchronization jobs. If the user is not found this method creates and saves the principal.- Returns:
- the user in charge of executing synchronization jobs.
-
getSearchRestrictionByCode
protected java.util.List<SearchRestrictionModel> getSearchRestrictionByCode(java.lang.String restrictionCode)
Gets the SearchRestriction by code- Parameters:
restrictionCode- - code of SearchRestriction- Returns:
- the collection of SearchRestriction
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
-
getModelService
protected ModelService getModelService()
-
getUserService
protected UserService getUserService()
-
getTypeService
protected TypeService getTypeService()
-
-