Interface CMSItemFacade
- All Known Implementing Classes:
DefaultCMSItemFacade
public interface CMSItemFacade
Content facade interface which deals with CRUD and search operations related to any CMSItem by passing on valued
Maps.
-
Method Summary
Modifier and TypeMethodDescriptioncreateItem(Map<String, Object> itemMap) Create CMS Items given the attribute value map.voiddeleteCMSItemByUuid(String uuid) Deletes one single CMSItem by its uuid (Universal Unique Identifier)findCMSItems(CMSItemSearchData cmsItemSearchData, PageableData pageableData) A paged Search for CMSItems in a given catalogversion.findCMSItems(List<String> uuids) A Search for CMSItems by their universally unique identifiersfindCMSItems(List<String> uuids, String mode) A Search for CMSItems by their universally unique identifiers.getCMSItemByUuid(String uuid) Get one single CMSItem by its uuid (Universal Unique Identifier) For more information about Unique Identifiers, seeUniqueItemIdentifierServicegetCMSItemByUuid(String uuid, String mode) Get one single CMSItem by its uuid (Universal Unique Identifier) For more information about Unique Identifiers, seeUniqueItemIdentifierServiceupdateItem(String uuid, Map<String, Object> itemMap) Updates a CMS Item given the attribute value map and its uuid.validateItemForCreate(Map<String, Object> itemMap) Validates CMS Items given the attribute value map.validateItemForUpdate(String uuid, Map<String, Object> itemMap) Validates a CMS Item given the attribute value map and its uuid.
-
Method Details
-
findCMSItems
A Search for CMSItems by their universally unique identifiers- Parameters:
uuids- The list of uuids of the CMSItems to look for- Returns:
- A list of the corresponding CMSItems
- Throws:
CMSItemNotFoundException- if the item is not found
-
findCMSItems
default List<Map<String,Object>> findCMSItems(List<String> uuids, String mode) throws CMSItemNotFoundException A Search for CMSItems by their universally unique identifiers.- Parameters:
uuids- - the list of uuids of the CMSItems to look formode- - list of fields, which should be returned in response- Returns:
- A list of the corresponding CMSItems
- Throws:
CMSItemNotFoundException- if the item is not found
-
findCMSItems
SearchResult<Map<String,Object>> findCMSItems(CMSItemSearchData cmsItemSearchData, PageableData pageableData) A paged Search for CMSItems in a given catalogversion. Optionally filter by name/uid or typeCode- Parameters:
cmsItemSearchData- The catalog and filter informationpageableData- The paging information- Returns:
- A SearchResult containing the paging information and the results
- Throws:
ValidationException- When catalog or paging information is missing
-
getCMSItemByUuid
Get one single CMSItem by its uuid (Universal Unique Identifier) For more information about Unique Identifiers, seeUniqueItemIdentifierService- Parameters:
uuid- - the universal unique identifier- Returns:
- the
Map<String, Object>representation of the CMS Item - Throws:
CMSItemNotFoundException- when a CMS Item can not be found for a givenuuid.
-
getCMSItemByUuid
default Map<String,Object> getCMSItemByUuid(String uuid, String mode) throws CMSItemNotFoundException Get one single CMSItem by its uuid (Universal Unique Identifier) For more information about Unique Identifiers, seeUniqueItemIdentifierService- Parameters:
uuid- - the universal unique identifiermode- - list of fields, which should be returned in response- Returns:
- the
Map<String, Object>representation of the CMS Item - Throws:
CMSItemNotFoundException- when a CMS Item can not be found for a givenuuid.
-
createItem
Create CMS Items given the attribute value map.- Parameters:
itemMap- - theMap<String, Object>that contains the attributes values for the new CMSItem.- Returns:
- the Map tha represents the newly created CMS Item.
- Throws:
CMSItemNotFoundException- when a CMS Item can not be found for a givenuuid.
-
updateItem
Map<String,Object> updateItem(String uuid, Map<String, Object> itemMap) throws CMSItemNotFoundExceptionUpdates a CMS Item given the attribute value map and its uuid. For more information about Unique Identifiers, seeUniqueItemIdentifierService- Parameters:
uuid- - the universal unique identifieritemMap- - theMap<String, Object>that contains the attributes values for the new CMSItem.- Returns:
- the Map tha represents the newly created CMS Item.
- Throws:
CMSItemNotFoundException- when a CMS Item can not be found for a givenuuid.
-
deleteCMSItemByUuid
Deletes one single CMSItem by its uuid (Universal Unique Identifier)- Parameters:
uuid- - the universal unique identifier- Throws:
CMSItemNotFoundException- when a CMS Item can not be found for a givenuuid.
-
validateItemForUpdate
Map<String,Object> validateItemForUpdate(String uuid, Map<String, Object> itemMap) throws CMSItemNotFoundExceptionValidates a CMS Item given the attribute value map and its uuid. For more information about Unique Identifiers, seeUniqueItemIdentifierService- Parameters:
uuid- - the universal unique identifieritemMap- - theMap<String, Object>that contains the attributes values for the new CMSItem.- Returns:
- the Map that represents the CMS Item.
- Throws:
CMSItemNotFoundException- when a CMS Item can not be found for a givenuuid.
-
validateItemForCreate
Map<String,Object> validateItemForCreate(Map<String, Object> itemMap) throws CMSItemNotFoundExceptionValidates CMS Items given the attribute value map.- Parameters:
itemMap- - theMap<String, Object>that contains the attributes values for the new CMSItem.- Returns:
- the Map that represents the newly created CMS Item.
- Throws:
CMSItemNotFoundException- when a CMS Item can not be found for a givenuuid.
-