Package com.atlassian.confluence.links
Interface TitleContentMappingManager
- All Known Implementing Classes:
DefaultTitleContentMappingManager
public interface TitleContentMappingManager
Manager interface for handling operations related to
TitleContentMapping.
This interface acts as a service layer, providing business logic and transactional support
for managing title-content mappings.-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(TitleContentMapping titleContentMapping) Creates a newTitleContentMappingentity in the database.voiddeleteByTitle(String title, long contentId) Deletes aTitleContentMappingentity based on the given title.getContentIdByTitle(String title) Gets the content ID associated with a given title.Retrieves a list ofTitleContentMappingentities associated with the oldest content ID group.
-
Method Details
-
getTitlesForOldestContentIdGroup
Retrieves a list ofTitleContentMappingentities associated with the oldest content ID group. This method is marked as read-only since it only fetches data without modifying the database.- Returns:
- A list of
TitleContentMappinginstances belonging to the oldest content ID group.
-
getContentIdByTitle
Gets the content ID associated with a given title. This method is also marked as read-only to ensure it does not modify the database.- Parameters:
title- The title for which the corresponding content ID is to be fetched.- Returns:
- The content ID associated with the given title, or
nullif no mapping exists.
-
deleteByTitle
Deletes aTitleContentMappingentity based on the given title. This method modifies the database by removing the mapping for the specified title.- Parameters:
title- The title of the mapping to be deleted.
-
create
Creates a newTitleContentMappingentity in the database. This method persists a new mapping with the specified title and content ID to the database.- Parameters:
titleContentMapping- TheTitleContentMappingobject to be created.
-