Interface CMSItemFacade
-
- All Known Implementing Classes:
DefaultCMSItemFacade
public interface CMSItemFacadeContent facade interface which deals with CRUD and search operations related to any CMSItem by passing on valued Maps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>createItem(java.util.Map<java.lang.String,java.lang.Object> itemMap)Create CMS Items given the attribute value map.voiddeleteCMSItemByUuid(java.lang.String uuid)Deletes one single CMSItem by its uuid (Universal Unique Identifier)SearchResult<java.util.Map<java.lang.String,java.lang.Object>>findCMSItems(CMSItemSearchData cmsItemSearchData, PageableData pageableData)A paged Search for CMSItems in a given catalogversion.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>findCMSItems(java.util.List<java.lang.String> uuids)A Search for CMSItems by their universally unique identifiersjava.util.Map<java.lang.String,java.lang.Object>getCMSItemByUuid(java.lang.String uuid)Get one single CMSItem by its uuid (Universal Unique Identifier) For more information about Unique Identifiers, seeUniqueItemIdentifierServicejava.util.Map<java.lang.String,java.lang.Object>updateItem(java.lang.String uuid, java.util.Map<java.lang.String,java.lang.Object> itemMap)Updates a CMS Item given the attribute value map and its uuid.java.util.Map<java.lang.String,java.lang.Object>validateItemForCreate(java.util.Map<java.lang.String,java.lang.Object> itemMap)Validates CMS Items given the attribute value map.java.util.Map<java.lang.String,java.lang.Object>validateItemForUpdate(java.lang.String uuid, java.util.Map<java.lang.String,java.lang.Object> itemMap)Validates a CMS Item given the attribute value map and its uuid.
-
-
-
Method Detail
-
findCMSItems
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> findCMSItems(java.util.List<java.lang.String> uuids) throws CMSItemNotFoundExceptionA 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
SearchResult<java.util.Map<java.lang.String,java.lang.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
java.util.Map<java.lang.String,java.lang.Object> getCMSItemByUuid(java.lang.String uuid) throws CMSItemNotFoundExceptionGet 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.
-
createItem
java.util.Map<java.lang.String,java.lang.Object> createItem(java.util.Map<java.lang.String,java.lang.Object> itemMap) throws CMSItemNotFoundExceptionCreate 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
java.util.Map<java.lang.String,java.lang.Object> updateItem(java.lang.String uuid, java.util.Map<java.lang.String,java.lang.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
void deleteCMSItemByUuid(java.lang.String uuid) throws CMSItemNotFoundExceptionDeletes 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
java.util.Map<java.lang.String,java.lang.Object> validateItemForUpdate(java.lang.String uuid, java.util.Map<java.lang.String,java.lang.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
java.util.Map<java.lang.String,java.lang.Object> validateItemForCreate(java.util.Map<java.lang.String,java.lang.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.
-
-