Interface IProjectTagDao

    • Method Detail

      • updateTags

        void updateTags​(IEntityContext ec,
                        Projekt project,
                        Iterable<String> tags)
        Updates the given project with the tags. All existing tags are replaced with the given tags. Note that this modifies the project. You should read the project again after this operation.
        Parameters:
        ec - Entity context for accessing the database.
        project - Project to update.
        tags - New tags for the project.
      • getTags

        Map<Long,​List<String>> getTags​(IEntityContext ec,
                                             Iterable<Long> projectIds)
        Fetches all tags for the given projects.
        Parameters:
        ec - Entity context for accessing the database.
        projectIds - IDs of the projects for which to fetch the tags.
        Returns:
        Map with they key being the project ID, mapped to the tags for that project.
      • getProjectIdsHavingTagsStartingWith

        List<Long> getProjectIdsHavingTagsStartingWith​(IEntityContext ec,
                                                       Iterable<String> tags)
        Fetches all IDs of all projects that have at least one tag which starts with one of the given tags.
        Parameters:
        ec - Entity context for accessing the database.
        tags - Tags to search for.
        Returns:
        All project IDs that have at least one tag starting with one of the given tags.