public class CMSItemNameExistsPredicate extends java.lang.Object implements java.util.function.Predicate<CMSItemModel>
Returns TRUE if the cms item exists; FALSE otherwise.
| Constructor and Description |
|---|
CMSItemNameExistsPredicate() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
findAbstractParentTypeCode(CMSItemModel cmsItemModel)
Find the abstract parent typecode for a given item model
|
protected java.util.List<CMSItemModel> |
findCMSItemByTypeCodeAndName(java.lang.String name,
java.lang.String typeCode)
Find all
CMSItemModel having the same name as the provided value. |
protected java.util.function.Predicate<java.lang.Object> |
getCloneContextSameAsActiveCatalogVersionPredicate() |
protected CMSAdminItemService |
getCmsAdminItemService() |
protected CMSAdminSiteService |
getCmsAdminSiteService() |
protected java.util.List<java.util.function.Predicate<CMSItemModel>> |
getFilters() |
protected TypeService |
getTypeService() |
void |
setCloneContextSameAsActiveCatalogVersionPredicate(java.util.function.Predicate<java.lang.Object> cloneContextSameAsActiveCatalogVersionPredicate) |
void |
setCmsAdminItemService(CMSAdminItemService cmsAdminItemService) |
void |
setCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService) |
void |
setFilters(java.util.List<java.util.function.Predicate<CMSItemModel>> filters) |
void |
setTypeService(TypeService typeService) |
boolean |
test(CMSItemModel cmsItemModel)
Suppress sonar warning (squid:S1166 | Exception handlers should preserve the original exception) : The exception
is correctly handled in the catch clause.
|
public boolean test(CMSItemModel cmsItemModel)
test in interface java.util.function.Predicate<CMSItemModel>protected java.util.List<CMSItemModel> findCMSItemByTypeCodeAndName(java.lang.String name, java.lang.String typeCode)
CMSItemModel having the same name as the provided value. The result list is filter by
applying all the predicates specified by #getFilters().name - - the name of the itemtypeCode - - the typecode of the item where the lookup takes placeprotected java.lang.String findAbstractParentTypeCode(CMSItemModel cmsItemModel)
cmsItemModel - - the item model for which to find the abstract parent typecodeprotected CMSAdminItemService getCmsAdminItemService()
public void setCmsAdminItemService(CMSAdminItemService cmsAdminItemService)
protected CMSAdminSiteService getCmsAdminSiteService()
public void setCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService)
protected java.util.function.Predicate<java.lang.Object> getCloneContextSameAsActiveCatalogVersionPredicate()
public void setCloneContextSameAsActiveCatalogVersionPredicate(java.util.function.Predicate<java.lang.Object> cloneContextSameAsActiveCatalogVersionPredicate)
protected TypeService getTypeService()
public void setTypeService(TypeService typeService)
protected java.util.List<java.util.function.Predicate<CMSItemModel>> getFilters()
public void setFilters(java.util.List<java.util.function.Predicate<CMSItemModel>> filters)
Copyright © 2018 SAP SE. All Rights Reserved.