Class JPADAO
- All Implemented Interfaces:
IDAO
JPADAO class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAnnotation(CrowdsourcingAnnotation annotation) addAnnotation.booleanaddBookmarkList(BookmarkList bookmarkList) addBookmarkList.booleanaddCampaign(Campaign campaign) addCampaign.booleanaddCategory(CMSCategory category) addCategory.booleanaddCMSCollection(CMSCollection collection) addCMSCollection.booleanaddCMSComponent(PersistentCMSComponent persistentCMSComponent) booleanaddCMSMediaItem(CMSMediaItem item) addCMSMediaItem.booleanaddCMSNavigationItem.booleanaddCMSPage(CMSPage page) addCMSPage.booleanaddCMSPageTemplate(CMSPageTemplate template) booleanaddComment(Comment comment) addComment.booleanaddCommentGroup(CommentGroup commentGroup) addCommentGroup.booleanaddCustomWidget(CustomSidebarWidget widget) booleanaddDownloadJob(DownloadJob downloadJob) addDownloadJob.booleanAdd the given map to the database if no map of the same id already existsbooleanaddHighlight(HighlightData object) booleanaddIpRange(IpRange ipRange) addIpRange.booleanaddLicenseType(LicenseType licenseType) addLicenseType.booleanaddRecordNote(CMSRecordNote note) Persist a newCMSRecordNote.booleanbooleanaddRole.booleanaddSearch.booleanbooleanaddStaticPage(CMSStaticPage page) addStaticPage.booleanaddTheme(ThemeConfiguration theme) booleanaddTicket(AccessTicket ticket) addTicket.booleanaddTranskribusJob.booleanaddUploadJob(UploadJob uploadJob) addDownloadJob.booleanaddUsageStatistics(DailySessionUsageStatistics statistics) booleanaddUser.booleanaddUserGroup(UserGroup userGroup) addUserGroup.booleanaddUserRole(UserRole userRole) addUserRole.booleanaddViewerMessage(ViewerMessage message) intchangeCampaignStatisticContributors(User fromUser, User toUser) ReplacedfromUserwithtoUserin the lists of annotators and reviewers an all campaign statistics.intchangeCommentsOwner(User fromUser, User toUser) Changes ownership of all comments fromfromUsertotoUser.booleanvoidclear()currently noop since no persistence entity manager is keptvoidclose(jakarta.persistence.EntityManager em) Operation to call after a query or other kind of transaction is completebooleancolumnsExists(String tableName, String columnName) columnsExists.voidcommitTransaction(jakarta.persistence.EntityManager em) CallEntityTransaction.commit()on the current transaction of the given EntityManagervoidcommitTransaction(jakarta.persistence.EntityTransaction et) Commits a persistence context transaction.static StringcreateCMSPageFilter(Map<String, Object> params, String pageParameter, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategoryIds) createCMSPageFilter.booleandeleteAnnotation(CrowdsourcingAnnotation annotation) deleteAnnotation.booleandeleteBookmarkList(BookmarkList bookmarkList) deleteBookmarkList.booleandeleteCampaign(Campaign campaign) deleteCampaign.intDeletes given user from the lists of annotators and reviewers an all campaign statistics.booleandeleteCategory(CMSCategory category) deleteCategory.booleandeleteClientApplication(long id) booleandeleteCMSCollection(CMSCollection collection) deleteCMSCollection.booleandeleteCMSComponent(PersistentCMSComponent component) booleandeleteCMSContent(CMSContent content) booleandeleteCMSMediaItem.booleandeleteCMSNavigationItem.booleandeleteCMSPage(CMSPage page) deleteCMSPage.booleandeleteComment(Comment comment) deleteComment.booleandeleteCommentGroup(CommentGroup commentGroup) deleteCommentGroup.intdeleteComments(String pi, User owner) booleanbooleandeleteDownloadJob(DownloadJob downloadJob) deleteDownloadJob.booleandeleteGeoMap(GeoMap map) Delete the givenGeoMapfrom the databasebooleandeleteHighlight(Long id) booleandeleteIpRange(IpRange ipRange) deleteIpRange.booleandeleteLicenseType(LicenseType licenseType) deleteLicenseType.booleanDeletes an existingCMSRecordNotebooleanbooleandeleteRole(Role role) deleteRole.booleandeleteSearch(Search search) deleteSearch.booleandeleteSlider(CMSSlider slider) booleandeleteStaticPage.booleandeleteTheme(ThemeConfiguration theme) booleandeleteTicket(AccessTicket ticket) deleteTicket.booleandeleteTranskribusJob.booleandeleteUploadJob(UploadJob uploadJob) deleteDownloadJob.booleandeleteUsageStatistics(long id) booleandeleteUser(User user) deleteUser.booleandeleteUserGroup(UserGroup userGroup) deleteUserGroup.booleandeleteUserRole(UserRole userRole) deleteUserRole.booleandeleteViewerMessage(ViewerMessage message) intintexecuteUpdate(String query) longgetActiveTicketCount(Map<String, String> filters) getActiveTicketCount.getActiveTickets(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getActiveRecordAccessTickets.getAllAnnotations(String sortField, boolean descending) getAllAnnotationsByMotivation(String motivation) getAllBookmarkLists.getAllCampaigns.getAllCategories.getAllCMSCollectionItems.getAllCMSMediaItems.getAllCMSPages.getAllComments.getAllDownloadJobs.Get allGeoMaps in databasegetAllIpRanges.getAllLicenses.getAllLicenseTypes.getAllMultiRecordNotes(boolean displayedNotesOnly) Get allCMSMultiRecordNotes.Get all persistedCMSRecordNotesgetAllRoles.getAllSearches.getAllStaticPages.getAllTopCMSNavigationItems.getAllTranskribusJobs.getAllUserGroups.getAllUserRoles.getAllUsers(boolean refresh) getAllUsers.getAnnotation(Long id) Annotations *longgetAnnotationCount(Map<String, String> filters) getAnnotationCount.longgetAnnotationCountForTarget(String pi, Integer page) getAnnotationCountForTarget.longgetAnnotations(int first, int pageSize, String sortField, boolean descending, String filterString, Map<String, Object> params) getAnnotations(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getAnnotations.getAnnotationsForCampaign(Campaign campaign) getAnnotationsForCampaign.getAnnotationsForCampaignAndTarget(Campaign campaign, String pi, Integer page) getAnnotationsForCampaignAndTarget.getAnnotationsForCampaignAndWork(Campaign campaign, String pi) getAnnotationsForCampaignAndWork.getAnnotationsForTarget(String pi, Integer page) getAnnotationsForTarget.getAnnotationsForTarget(String pi, Integer page, String motivation) getAnnotationsForUserId(Long userId, Integer maxResults, String sortField, boolean descending) getAnnotationsForWork.getBookmarkList(long id) getBookmarkList.getBookmarkList(String name, User user) getBookmarkList.getBookmarkListByShareKey(String shareKey) getBookmarkListByShareKey.longgetBookmarkListCount(User user) Get number of bookmark lists owned by the given usergetBookmarkLists(User user) getBookmarkLists.getCampaign(Long id) getCampaign.longgetCampaignCount(Map<String, String> filters) getCampaignCount.getCampaignPageStatisticsForRecord.getCampaigns(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getCampaigns.getCampaignStatisticsForRecord(String pi, CrowdsourcingStatus status) getCampaignStatisticsForRecord.getCategory(Long id) getCategory.getCategoryByName(String name) getCategoryByName.getClientApplication(long id) getClientApplicationByClientId(String clientId) getCMSCollection(String solrField, String solrFieldValue) getCMSCollection.getCMSCollections(String solrField) getCMSCollections.getCMSComponent(Long id) getCMSMediaItem(long id) getCMSMediaItem.getCMSMediaItemByFilename(String filename) getCMSMediaItemByFilename.getCMSMediaItemsByCategory(CMSCategory category) Get a list of allCMSMediaItems which contain the given categorygetCMSNavigationItem(long id) getCMSNavigationItem.getCMSPage(long id) getCMSPage.longgetCMSPageCount(Map<String, String> filters, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategories) getCMSPageCount.longgetCMSPageCountByPropertyValue(String propertyName, String propertyValue) getCmsPageForStaticPage(String pageName) getCmsPageForStaticPage.getCMSPages(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategories) getCMSPages.getCMSPagesByCategory(CMSCategory category) getCMSPagesByCategory.getCMSPagesByPropertyValue(String propertyName, String propertyValue) getCMSPagesForRecord(String pi, CMSCategory category) getCMSPagesForRecord.getCMSPagesForSubtheme(String subtheme) getCMSPagesWithRelatedPi(int first, int pageSize, LocalDateTime fromDate, LocalDateTime toDate) getCMSPagesWithRelatedPi.longgetCMSPageWithRelatedPiCount(LocalDateTime fromDate, LocalDateTime toDate) getCMSPageWithRelatedPiCount.getComment(long id) getComment.longgetCommentCount.getCommentGroup(long id) getCommentGroup.getComments(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, Set<String> targetPIs) getComments.getCommentsForPage(String pi, int page) getCommentsForPage.getCommentsForWork.getCommentsOfUser(User user, int maxResults, String sortField, boolean descending) Get Comments created by a specific userlonggetCoreLicenseTypeCount(Map<String, String> filters) getCoreLicenseTypeCount.getCoreLicenseTypes(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getCoreLicenseTypes.longgetCountMediaItemsUsingCategory(CMSCategory category) longgetCountPagesUsingCategory(CMSCategory category) getCustomWidget(Long id) Get the single storedDisclaimer.getDownloadJob(long id) getDownloadJob.getDownloadJobByIdentifier(String identifier) getDownloadJobByIdentifier.getDownloadJobByMetadata(String type, String pi, String logId) getDownloadJobByMetadata.getDownloadJobsForPi.jakarta.persistence.EntityManagerGet a newEntityManagerfrom thefactoryjakarta.persistence.EntityManagerFactoryGetter for the fieldfactory.getFutureHighlightsForDate(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, LocalDateTime date) Get theGeoMapof the given mapIdgetHighlight(Long id) getHighlights(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getIpRange(long id) getIpRange.getIpRange(String name) getIpRange.longgetIpRangeCount(Map<String, String> filters) getIpRangeCount.getIpRanges(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getIpRanges.getLicense(Long id) getLicense.longgetLicenseCount(LicenseType licenseType) Returns the number of licenses that use the given license type.getLicenses(LicenseType licenseType) getLicenseType(long id) getLicenseType.getLicenseType(String name) getLicenseType.longgetLicenseTypeCount(Map<String, String> filters) getLicenseTypeCount.getLicenseTypes(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getLicenseTypes.getLicenseTypes(List<String> names) Returns all license types that match the given name list.Returns the only existing instance of MaintenanceMode.getNativeQueryResults(String query) getOverridingLicenseType(LicenseType licenseType) getPagesUsingMap(GeoMap map) Return a list of CMS-pages embedding the given mapReturn a list of CMS-pages embedding the given map in a sidebar widgetgetPagesUsingSlider(CMSSlider slider) getPagesWithComments.getPastHighlightsForDate(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, LocalDateTime date) getPublicBookmarkLists.getQuestion(Long id) getQuestion.getRecordLicenseTypes.getRecordNote(Long id) Get aCMSRecordNoteby its id propertygetRecordNotes(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) Get a paginated list ofCMSRecordNotesgetRecordNotesForPi(String pi, boolean displayedNotesOnly) Get allCMSRecordNotes for the given pigetRelatedNavItem(CMSPage page) getRelatedNavItem.getRole(long id) getRole.getRole.longgetRoleCount(Map<String, String> filters) getRoleCount.getRoles.getSearch(long id) getSearch.longgetSearchCount(User owner, Map<String, String> filters) getSearchCount.getSearches(User owner) getSearches.getSearches(User owner, int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getSearches.getStaticPageForCMSPage.getStaticPageForTypeType(PageType pageType) getStaticPageForTypeType.getTicketByPasswordHash(String passwordHash) longgetTranskribusJobs(String pi, String transkribusUserId, JobStatus status) getTranskribusJobs.getUploadJobsForCreatorId(Long creatorId) getUploadJobsWithStatus(JobStatus status) getUsageStatistics(LocalDate date) getUsageStatistics(LocalDate start, LocalDate end) getUser(long id) getUser.getUserByEmail(String email) getUserByEmail.getUserByNickname(String nickname) getUserByNickname.getUserByOpenId(String identifier) getUserByOpenId.longgetUserCount(Map<String, String> filters) getUserCount.getUserGroup(long id) getUserGroup.getUserGroup(String name) getUserGroup.longgetUserGroupCount(Map<String, String> filters) getUserGroupCount.getUserGroups(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getUserGroups.getUserGroups(User owner) getUserGroups.longgetUserRoleCount(UserGroup userGroup, User user, Role role) getUserRoleCount.getUserRoles(UserGroup userGroup, User user, Role role) getUserRoles.getUsers.getUsersByPropertyValue(String propertyName, String propertyValue) getUsersFilterQuery(String param) getViewerMessage(Long id) getViewerMessageByMessageID(String messageId) longgetViewerMessageCount(Map<String, String> filters) getViewerMessageCount.getViewerMessages(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getViewerMessages.voidhandleException(jakarta.persistence.EntityManager em) Handling of exceptions occurred duringIDAO.commitTransaction(EntityManager)Usually callsEntityTransaction.rollback()on the current transaction of the given EntityManagervoidhandleException(jakarta.persistence.EntityTransaction et) Handling of exceptions occurred duringIDAO.commitTransaction(EntityTransaction).booleanisCMSPagesForRecordHaveUpdates(String pi, CMSCategory category, LocalDateTime fromDate, LocalDateTime toDate) isCMSPagesForRecordHaveUpdates.voidpreQuery()Operation to call before getting an entity manager. currently noopbooleanremoveCMSPageTemplate(CMSPageTemplate template) booleanbooleanbooleansaveCookieBanner(CookieBanner banner) booleansaveDisclaimer(Disclaimer disclaimer) booleansaveTermsOfUse(TermsOfUse tou) voidshutdown()shutdown.jakarta.persistence.EntityTransactionstartTransaction(jakarta.persistence.EntityManager em) CallgetTransaction()on the given EntityManager and thenbegin()on the transaction.booleantableExists(String tableName) tableExists.booleanupdateAnnotation(CrowdsourcingAnnotation annotation) updateAnnotation.booleanupdateBookmarkList(BookmarkList bookmarkList) updateBookmarkList.booleanupdateCampaign(Campaign campaign) updateCampaign.booleanupdateCategory(CMSCategory category) updateCategory.booleanupdateCMSCollection(CMSCollection collection) updateCMSCollection.booleanupdateCMSMediaItem.booleanupdateCMSNavigationItem.booleanupdateCMSPage(CMSPage page) updateCMSPage.booleanupdateCMSPageTemplate(CMSPageTemplate template) booleanupdateComment(Comment comment) updateComment.booleanupdateCommentGroup(CommentGroup commentGroup) updateCommentGroup.booleanbooleanupdatedCMSComponent(PersistentCMSComponent persistentCMSComponent) booleanupdateDownloadJob(DownloadJob downloadJob) updateDownloadJob.booleanupdateGeoMap(GeoMap map) Update the givenGeoMapin the databasebooleanupdateHighlight(HighlightData object) booleanupdateIpRange(IpRange ipRange) updateIpRange.booleanupdateLicenseType(LicenseType licenseType) updateLicenseType.booleanupdateMaintenanceMode(MaintenanceMode maintenanceMode) updateMaintenanceMode.booleanUpdates an existingCMSRecordNotebooleanbooleanupdateRole(Role role) updateRole.booleanupdateSearch(Search search) updateSearch.booleanupdateSlider(CMSSlider slider) booleanupdateStaticPage.booleanupdateTheme(ThemeConfiguration theme) booleanupdateTicket(AccessTicket ticket) updateTicket.booleanupdateTranskribusJob.booleanupdateUploadJob(UploadJob uploadJob) updateDownloadJob.booleanupdateUsageStatistics(DailySessionUsageStatistics statistics) booleanupdateUser(User user) updateUser.booleanupdateUserGroup(UserGroup userGroup) updateUserGroup.booleanupdateUserRole(UserRole userRole) updateUserRole.booleanupdateViewerMessage(ViewerMessage message)
-
Constructor Details
-
JPADAO
Constructor for JPADAO.
- Throws:
DAOException- if any.
-
JPADAO
Constructor for JPADAO.
- Parameters:
inPersistenceUnitName- aStringobject.- Throws:
DAOException- if any.
-
-
Method Details
-
getFactory
public jakarta.persistence.EntityManagerFactory getFactory()Getter for the field
factory.- Specified by:
getFactoryin interfaceIDAO- Returns:
- a
EntityManagerFactoryobject.
-
getEntityManager
public jakarta.persistence.EntityManager getEntityManager()Get a new
EntityManagerfrom thefactory- Specified by:
getEntityManagerin interfaceIDAO- Returns:
EntityManagerfor the current thread
-
close
Operation to call after a query or other kind of transaction is complete- Specified by:
closein interfaceIDAO- Parameters:
em-- Throws:
DAOException
-
startTransaction
public jakarta.persistence.EntityTransaction startTransaction(jakarta.persistence.EntityManager em) CallgetTransaction()on the given EntityManager and thenbegin()on the transaction.- Specified by:
startTransactionin interfaceIDAO- Parameters:
em- EntityManager- Returns:
- the transaction gotten from the entity manager
-
commitTransaction
public void commitTransaction(jakarta.persistence.EntityTransaction et) throws jakarta.persistence.PersistenceException Commits a persistence context transaction. Only to be used following astartTransaction(EntityManager)call- Specified by:
commitTransactionin interfaceIDAO- Parameters:
et- EntityTransaction- Throws:
jakarta.persistence.PersistenceException
-
commitTransaction
public void commitTransaction(jakarta.persistence.EntityManager em) throws jakarta.persistence.PersistenceException CallEntityTransaction.commit()on the current transaction of the given EntityManager- Specified by:
commitTransactionin interfaceIDAO- Parameters:
em- EntityManager- Throws:
jakarta.persistence.PersistenceException
-
handleException
public void handleException(jakarta.persistence.EntityTransaction et) throws jakarta.persistence.PersistenceException Handling of exceptions occurred duringIDAO.commitTransaction(EntityTransaction). Usually callsEntityTransaction.rollback()- Specified by:
handleExceptionin interfaceIDAO- Parameters:
et- EntityTransaction- Throws:
jakarta.persistence.PersistenceException
-
handleException
public void handleException(jakarta.persistence.EntityManager em) Handling of exceptions occurred duringIDAO.commitTransaction(EntityManager)Usually callsEntityTransaction.rollback()on the current transaction of the given EntityManager- Specified by:
handleExceptionin interfaceIDAO- Parameters:
em- EntityManager
-
getAllUsers
getAllUsers.
- Specified by:
getAllUsersin interfaceIDAO- Parameters:
refresh- a boolean.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getUserCount
getUserCount.
- Specified by:
getUserCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getUsers
public List<User> getUsers(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetUsers.
-
getUsersByPropertyValue
public List<User> getUsersByPropertyValue(String propertyName, String propertyValue) throws DAOException - Specified by:
getUsersByPropertyValuein interfaceIDAO- Parameters:
propertyName-propertyValue-- Returns:
- List if users with matching property name/value pair
- Throws:
DAOException
-
getAdminUsers
- Specified by:
getAdminUsersin interfaceIDAO- Returns:
- List
where User.superuser == true - Throws:
DAOException
-
getUsersFilterQuery
- Parameters:
param-- Returns:
- Generated query
-
getUser
getUser.
- Specified by:
getUserin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
Userobject. - Throws:
DAOException- if any.
-
getUserByEmail
getUserByEmail.
- Specified by:
getUserByEmailin interfaceIDAO- Parameters:
email- aStringobject.- Returns:
- a
Userobject. - Throws:
DAOException- if any.
-
getUserByOpenId
getUserByOpenId.
- Specified by:
getUserByOpenIdin interfaceIDAO- Parameters:
identifier- aStringobject.- Returns:
- a
Userobject. - Throws:
DAOException- if any.
-
getUserByNickname
Description copied from interface:IDAOgetUserByNickname.
- Specified by:
getUserByNicknamein interfaceIDAO- Parameters:
nickname- aStringobject.- Returns:
- a
Userobject. - Throws:
DAOException- if any.- See Also:
-
addUser
addUser.
- Specified by:
addUserin interfaceIDAO- Parameters:
user- aUserobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateUser
updateUser.
- Specified by:
updateUserin interfaceIDAO- Parameters:
user- aUserobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteUser
deleteUser.
- Specified by:
deleteUserin interfaceIDAO- Parameters:
user- aUserobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllUserGroups
getAllUserGroups.
- Specified by:
getAllUserGroupsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getUserGroups
public List<UserGroup> getUserGroups(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetUserGroups.
- Specified by:
getUserGroupsin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getUserGroups
getUserGroups.
- Specified by:
getUserGroupsin interfaceIDAO- Parameters:
owner- aUserobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getUserGroup
getUserGroup.
- Specified by:
getUserGroupin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
UserGroupobject. - Throws:
DAOException- if any.
-
getUserGroup
getUserGroup.
- Specified by:
getUserGroupin interfaceIDAO- Parameters:
name- aStringobject.- Returns:
- a
UserGroupobject. - Throws:
DAOException- if any.
-
addUserGroup
addUserGroup.
- Specified by:
addUserGroupin interfaceIDAO- Parameters:
userGroup- aUserGroupobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateUserGroup
updateUserGroup.
(non-Javadoc)- Specified by:
updateUserGroupin interfaceIDAO- Parameters:
userGroup- aUserGroupobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.- See Also:
-
deleteUserGroup
deleteUserGroup.
- Specified by:
deleteUserGroupin interfaceIDAO- Parameters:
userGroup- aUserGroupobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllBookmarkLists
getAllBookmarkLists.
- Specified by:
getAllBookmarkListsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getPublicBookmarkLists
getPublicBookmarkLists.
- Specified by:
getPublicBookmarkListsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getBookmarkLists
getBookmarkLists.
- Specified by:
getBookmarkListsin interfaceIDAO- Parameters:
user- aUserobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getBookmarkListCount
Get number of bookmark lists owned by the given user- Specified by:
getBookmarkListCountin interfaceIDAO- Parameters:
user-- Returns:
- number of owned bookmark lists
- Throws:
DAOException
-
getBookmarkList
getBookmarkList.
- Specified by:
getBookmarkListin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
BookmarkListobject. - Throws:
DAOException- if any.
-
getBookmarkList
getBookmarkList.
- Specified by:
getBookmarkListin interfaceIDAO- Parameters:
name- aStringobject.user- aUserobject.- Returns:
- a
BookmarkListobject. - Throws:
DAOException- if any.
-
addBookmarkList
addBookmarkList.
- Specified by:
addBookmarkListin interfaceIDAO- Parameters:
bookmarkList- aBookmarkListobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateBookmarkList
updateBookmarkList.
- Specified by:
updateBookmarkListin interfaceIDAO- Parameters:
bookmarkList- aBookmarkListobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteBookmarkList
deleteBookmarkList.
- Specified by:
deleteBookmarkListin interfaceIDAO- Parameters:
bookmarkList- aBookmarkListobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllRoles
getAllRoles.
- Specified by:
getAllRolesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getRoles
public List<Role> getRoles(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetRoles.
-
getRole
getRole.
- Specified by:
getRolein interfaceIDAO- Parameters:
id- a long.- Returns:
- a
Roleobject. - Throws:
DAOException- if any.
-
getRole
getRole.
- Specified by:
getRolein interfaceIDAO- Parameters:
name- aStringobject.- Returns:
- a
Roleobject. - Throws:
DAOException- if any.
-
addRole
addRole.
- Specified by:
addRolein interfaceIDAO- Parameters:
role- aRoleobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateRole
updateRole.
- Specified by:
updateRolein interfaceIDAO- Parameters:
role- aRoleobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteRole
deleteRole.
- Specified by:
deleteRolein interfaceIDAO- Parameters:
role- aRoleobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllUserRoles
getAllUserRoles.
- Specified by:
getAllUserRolesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getUserRoleCount
Description copied from interface:IDAOgetUserRoleCount.
- Specified by:
getUserRoleCountin interfaceIDAO- Parameters:
userGroup- aUserGroupobject.user- aUserobject.role- aRoleobject.- Returns:
- Row count
- Throws:
DAOException- if any.- See Also:
-
getUserRoles
getUserRoles.
- Specified by:
getUserRolesin interfaceIDAO- Parameters:
userGroup- aUserGroupobject.user- aUserobject.role- aRoleobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
addUserRole
addUserRole.
- Specified by:
addUserRolein interfaceIDAO- Parameters:
userRole- aUserRoleobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateUserRole
updateUserRole.
- Specified by:
updateUserRolein interfaceIDAO- Parameters:
userRole- aUserRoleobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteUserRole
deleteUserRole.
- Specified by:
deleteUserRolein interfaceIDAO- Parameters:
userRole- aUserRoleobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllLicenseTypes
getAllLicenseTypes.
- Specified by:
getAllLicenseTypesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getRecordLicenseTypes
getRecordLicenseTypes.
- Specified by:
getRecordLicenseTypesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getLicenseTypes
public List<LicenseType> getLicenseTypes(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetLicenseTypes.
- Specified by:
getLicenseTypesin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCoreLicenseTypes
public List<LicenseType> getCoreLicenseTypes(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetCoreLicenseTypes.
- Specified by:
getCoreLicenseTypesin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getLicenseType
getLicenseType.
- Specified by:
getLicenseTypein interfaceIDAO- Parameters:
id- a long.- Returns:
- a
LicenseTypeobject. - Throws:
DAOException- if any.
-
getLicenseType
getLicenseType.
- Specified by:
getLicenseTypein interfaceIDAO- Parameters:
name- aStringobject.- Returns:
- a
LicenseTypeobject. - Throws:
DAOException- if any.
-
getLicenseTypes
Description copied from interface:IDAOReturns all license types that match the given name list.- Specified by:
getLicenseTypesin interfaceIDAO- Parameters:
names-- Returns:
- a
LicenseTypeobject. - Throws:
DAOException- in case of errors- See Also:
-
getOverridingLicenseType
- Specified by:
getOverridingLicenseTypein interfaceIDAO- Parameters:
licenseType-- Returns:
- List of license types overriding given licenseType
- Throws:
DAOException- See Also:
-
addLicenseType
addLicenseType.
- Specified by:
addLicenseTypein interfaceIDAO- Parameters:
licenseType- aLicenseTypeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateLicenseType
updateLicenseType.
- Specified by:
updateLicenseTypein interfaceIDAO- Parameters:
licenseType- aLicenseTypeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteLicenseType
deleteLicenseType.
- Specified by:
deleteLicenseTypein interfaceIDAO- Parameters:
licenseType- aLicenseTypeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllLicenses
getAllLicenses.
- Specified by:
getAllLicensesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getLicense
getLicense.
- Specified by:
getLicensein interfaceIDAO- Parameters:
id- a long.- Returns:
- a
Licenseobject. - Throws:
DAOException- if any.
-
getLicenses
- Specified by:
getLicensesin interfaceIDAO- Parameters:
licenseType-- Returns:
- List of
LicenseExceptions of the given licenseType - Throws:
DAOException- See Also:
-
getLicenseCount
Description copied from interface:IDAOReturns the number of licenses that use the given license type.- Specified by:
getLicenseCountin interfaceIDAO- Parameters:
licenseType-- Returns:
- Number of existing
Licenses of the given licenseType - Throws:
DAOException- See Also:
-
getTicket
- Specified by:
getTicketin interfaceIDAO- Parameters:
id-- Returns:
AccessTicketwith the given id- Throws:
DAOException
-
getTicketByPasswordHash
- Specified by:
getTicketByPasswordHashin interfaceIDAO- Parameters:
passwordHash-- Returns:
AccessTicketwith the given passwordHash- Throws:
DAOException
-
getActiveTicketCount
getActiveTicketCount.
- Specified by:
getActiveTicketCountin interfaceIDAO- Parameters:
filters- Selected filters- Returns:
- Number of found rows
- Throws:
DAOException- if any.
-
getActiveTickets
public List<AccessTicket> getActiveTickets(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetActiveRecordAccessTickets.
- Specified by:
getActiveTicketsin interfaceIDAO- Parameters:
first- First row indexpageSize- Number of rowssortField- aStringobject.descending- true if descending order requested; false otherwisefilters- Selected filters- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getTicketRequests
- Specified by:
getTicketRequestsin interfaceIDAO- Returns:
AccessTickets with the requested status- Throws:
DAOException
-
addTicket
addTicket.
- Specified by:
addTicketin interfaceIDAO- Parameters:
ticket- aAccessTicketobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateTicket
updateTicket.
- Specified by:
updateTicketin interfaceIDAO- Parameters:
ticket- aAccessTicketobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteTicket
deleteTicket.
- Specified by:
deleteTicketin interfaceIDAO- Parameters:
ticket- aAccessTicketobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllIpRanges
getAllIpRanges.
- Specified by:
getAllIpRangesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getIpRanges
public List<IpRange> getIpRanges(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetIpRanges.
- Specified by:
getIpRangesin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getIpRange
getIpRange.
- Specified by:
getIpRangein interfaceIDAO- Parameters:
id- a long.- Returns:
- a
IpRangeobject. - Throws:
DAOException- if any.
-
getIpRange
getIpRange.
- Specified by:
getIpRangein interfaceIDAO- Parameters:
name- aStringobject.- Returns:
- a
IpRangeobject. - Throws:
DAOException- if any.
-
addIpRange
addIpRange.
- Specified by:
addIpRangein interfaceIDAO- Parameters:
ipRange- aIpRangeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateIpRange
updateIpRange.
- Specified by:
updateIpRangein interfaceIDAO- Parameters:
ipRange- aIpRangeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteIpRange
deleteIpRange.
- Specified by:
deleteIpRangein interfaceIDAO- Parameters:
ipRange- aIpRangeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllCommentGroups
- Specified by:
getAllCommentGroupsin interfaceIDAO- Returns:
- All existing
CommentGroups - Throws:
DAOException- See Also:
-
getCommentGroupUnfiltered
- Specified by:
getCommentGroupUnfilteredin interfaceIDAO- Returns:
CommentGroup- Throws:
DAOException- See Also:
-
getCommentGroup
Description copied from interface:IDAOgetCommentGroup.
- Specified by:
getCommentGroupin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
CommentGroupobject. - Throws:
DAOException- if any.- See Also:
-
addCommentGroup
Description copied from interface:IDAOaddCommentGroup.
- Specified by:
addCommentGroupin interfaceIDAO- Parameters:
commentGroup- aCommentGroupobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.- See Also:
-
updateCommentGroup
Description copied from interface:IDAOupdateCommentGroup.
- Specified by:
updateCommentGroupin interfaceIDAO- Parameters:
commentGroup- aCommentGroupobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.- See Also:
-
deleteCommentGroup
Description copied from interface:IDAOdeleteCommentGroup.
- Specified by:
deleteCommentGroupin interfaceIDAO- Parameters:
commentGroup- aCommentGroupobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.- See Also:
-
getAllComments
getAllComments.
- Specified by:
getAllCommentsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getComments
public List<Comment> getComments(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, Set<String> targetPIs) throws DAOExceptiongetComments.
- Specified by:
getCommentsin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.targetPIs-- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCommentsOfUser
public List<Comment> getCommentsOfUser(User user, int maxResults, String sortField, boolean descending) throws DAOException Get Comments created by a specific user- Specified by:
getCommentsOfUserin interfaceIDAO- Parameters:
user- the creator/owner of the commentmaxResults- maximum number of results to returnsortField- class field to sort results bydescending- set to "true" to sort descending- Returns:
- A list of at most maxResults comments.
- Throws:
DAOException
-
getCommentsForPage
getCommentsForPage.
- Specified by:
getCommentsForPagein interfaceIDAO- Parameters:
pi- aStringobject.page- a int.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCommentsForWork
getCommentsForWork.
- Specified by:
getCommentsForWorkin interfaceIDAO- Parameters:
pi- aStringobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getComment
getComment.
- Specified by:
getCommentin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
Commentobject. - Throws:
DAOException- if any.
-
addComment
addComment.
- Specified by:
addCommentin interfaceIDAO- Parameters:
comment- aCommentobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateComment
updateComment.
- Specified by:
updateCommentin interfaceIDAO- Parameters:
comment- aCommentobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteComment
deleteComment.
- Specified by:
deleteCommentin interfaceIDAO- Parameters:
comment- aCommentobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
changeCommentsOwner
Changes ownership of all comments fromfromUsertotoUser.- Specified by:
changeCommentsOwnerin interfaceIDAO- Parameters:
fromUser-toUser-- Returns:
- Number of updated
Comments - Throws:
DAOException- if any.
-
deleteComments
- Specified by:
deleteCommentsin interfaceIDAO- Parameters:
pi- Record identifierowner- Comment creator- Returns:
- Number of affected rows
- Throws:
DAOException- if any.- See Also:
-
getPagesWithComments
getPagesWithComments.
Gets all page numbers (order) within a work with the given pi which contain comments- Specified by:
getPagesWithCommentsin interfaceIDAO- Parameters:
pi- aStringobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAllSearches
getAllSearches.
- Specified by:
getAllSearchesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getSearchCount
getSearchCount.
- Specified by:
getSearchCountin interfaceIDAO- Parameters:
owner- aUserobject.filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getSearches
public List<Search> getSearches(User owner, int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetSearches.
- Specified by:
getSearchesin interfaceIDAO- Parameters:
owner- aUserobject.first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getSearches
getSearches.
- Specified by:
getSearchesin interfaceIDAO- Parameters:
owner- aUserobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getSearch
getSearch.
- Specified by:
getSearchin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
Searchobject. - Throws:
DAOException- if any.
-
addSearch
addSearch.
- Specified by:
addSearchin interfaceIDAO- Parameters:
search- aSearchobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateSearch
updateSearch.
- Specified by:
updateSearchin interfaceIDAO- Parameters:
search- aSearchobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteSearch
deleteSearch.
- Specified by:
deleteSearchin interfaceIDAO- Parameters:
search- aSearchobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllDownloadJobs
getAllDownloadJobs.
- Specified by:
getAllDownloadJobsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getDownloadJobsForPi
getDownloadJobsForPi.
- Specified by:
getDownloadJobsForPiin interfaceIDAO- Parameters:
pi- Record identifier- Returns:
- List of
DownloadJobs for given record identfier - Throws:
DAOException
-
getDownloadJob
getDownloadJob.
- Specified by:
getDownloadJobin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
DownloadJobobject. - Throws:
DAOException- if any.
-
getDownloadJobByIdentifier
getDownloadJobByIdentifier.
- Specified by:
getDownloadJobByIdentifierin interfaceIDAO- Parameters:
identifier- aStringobject.- Returns:
- a
DownloadJobobject. - Throws:
DAOException- if any.
-
getDownloadJobByMetadata
public DownloadJob getDownloadJobByMetadata(String type, String pi, String logId) throws DAOException getDownloadJobByMetadata.
- Specified by:
getDownloadJobByMetadatain interfaceIDAO- Parameters:
type- aStringobject.pi- aStringobject.logId- aStringobject.- Returns:
- a
DownloadJobobject. - Throws:
DAOException- if any.
-
addDownloadJob
addDownloadJob.
- Specified by:
addDownloadJobin interfaceIDAO- Parameters:
downloadJob- aDownloadJobobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateDownloadJob
updateDownloadJob.
- Specified by:
updateDownloadJobin interfaceIDAO- Parameters:
downloadJob- aDownloadJobobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteDownloadJob
deleteDownloadJob.
- Specified by:
deleteDownloadJobin interfaceIDAO- Parameters:
downloadJob- aDownloadJobobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getUploadJobsWithStatus
- Specified by:
getUploadJobsWithStatusin interfaceIDAO- Parameters:
status-JobStatus- Returns:
- List of
UploadJobs with given status - Throws:
DAOException
-
getUploadJobsForCreatorId
- Specified by:
getUploadJobsForCreatorIdin interfaceIDAO- Parameters:
creatorId- User id of the creator- Returns:
UploadJobs belonging to user with given ID- Throws:
DAOException- if any.
-
addUploadJob
addDownloadJob.
- Specified by:
addUploadJobin interfaceIDAO- Parameters:
uploadJob- aDownloadJobobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateUploadJob
updateDownloadJob.
- Specified by:
updateUploadJobin interfaceIDAO- Parameters:
uploadJob- aDownloadJobobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteUploadJob
deleteDownloadJob.
- Specified by:
deleteUploadJobin interfaceIDAO- Parameters:
uploadJob- aDownloadJobobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getAllCMSPages
getAllCMSPages.
- Specified by:
getAllCMSPagesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCmsPageForStaticPage
getCmsPageForStaticPage.
- Specified by:
getCmsPageForStaticPagein interfaceIDAO- Parameters:
pageName- aStringobject.- Returns:
- a
CMSPageobject. - Throws:
DAOException- if any.
-
getCMSPages
public List<CMSPage> getCMSPages(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategories) throws DAOExceptiongetCMSPages.
- Specified by:
getCMSPagesin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.allowedTemplates- aListobject.allowedSubthemes- aListobject.allowedCategories- aListobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCMSPagesWithRelatedPi
public List<CMSPage> getCMSPagesWithRelatedPi(int first, int pageSize, LocalDateTime fromDate, LocalDateTime toDate) throws DAOException getCMSPagesWithRelatedPi.
- Specified by:
getCMSPagesWithRelatedPiin interfaceIDAO- Parameters:
first- a int.pageSize- a int.fromDate- aLocalDateTimeobject.toDate- aLocalDateTimeobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
isCMSPagesForRecordHaveUpdates
public boolean isCMSPagesForRecordHaveUpdates(String pi, CMSCategory category, LocalDateTime fromDate, LocalDateTime toDate) throws DAOException isCMSPagesForRecordHaveUpdates.
- Specified by:
isCMSPagesForRecordHaveUpdatesin interfaceIDAO- Parameters:
pi- aStringobject.category- aCMSCategoryobject.fromDate- aLocalDateTimeobject.toDate- aLocalDateTimeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getCMSPageWithRelatedPiCount
public long getCMSPageWithRelatedPiCount(LocalDateTime fromDate, LocalDateTime toDate) throws DAOException getCMSPageWithRelatedPiCount.
- Specified by:
getCMSPageWithRelatedPiCountin interfaceIDAO- Parameters:
fromDate- aLocalDateTimeobject.toDate- aLocalDateTimeobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getCMSPageDefaultViewForRecord
- Specified by:
getCMSPageDefaultViewForRecordin interfaceIDAO- Parameters:
pi- Record identifier- Returns:
CMSPage- Throws:
DAOException
-
getCMSPageAccessConditions
- Specified by:
getCMSPageAccessConditionsin interfaceIDAO- Returns:
- List
- Throws:
DAOException
-
getCMSPage
getCMSPage.
- Specified by:
getCMSPagein interfaceIDAO- Parameters:
id- a long.- Returns:
- a
CMSPageobject. - Throws:
DAOException- if any.
-
addCMSPage
addCMSPage.
- Specified by:
addCMSPagein interfaceIDAO- Parameters:
page- aCMSPageobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateCMSPage
updateCMSPage.
- Specified by:
updateCMSPagein interfaceIDAO- Parameters:
page- aCMSPageobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteCMSPage
deleteCMSPage.
- Specified by:
deleteCMSPagein interfaceIDAO- Parameters:
page- aCMSPageobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteCMSComponent
- Specified by:
deleteCMSComponentin interfaceIDAO- Throws:
DAOException
-
deleteCMSContent
- Specified by:
deleteCMSContentin interfaceIDAO- Throws:
DAOException
-
addCMSComponent
- Specified by:
addCMSComponentin interfaceIDAO- Throws:
DAOException
-
updatedCMSComponent
public boolean updatedCMSComponent(PersistentCMSComponent persistentCMSComponent) throws DAOException - Specified by:
updatedCMSComponentin interfaceIDAO- Throws:
DAOException
-
getCMSComponent
- Specified by:
getCMSComponentin interfaceIDAO- Throws:
DAOException
-
getAllCMSMediaItems
getAllCMSMediaItems.
- Specified by:
getAllCMSMediaItemsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAllCMSCollectionItems
getAllCMSCollectionItems.
- Specified by:
getAllCMSCollectionItemsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCMSMediaItemByFilename
getCMSMediaItemByFilename.
- Specified by:
getCMSMediaItemByFilenamein interfaceIDAO- Parameters:
filename- aStringobject.- Returns:
- a
CMSMediaItemobject. - Throws:
DAOException- if any.
-
getCMSMediaItem
getCMSMediaItem.
- Specified by:
getCMSMediaItemin interfaceIDAO- Parameters:
id- a long.- Returns:
- a
CMSMediaItemobject. - Throws:
DAOException- if any.
-
addCMSMediaItem
addCMSMediaItem.
- Specified by:
addCMSMediaItemin interfaceIDAO- Parameters:
item- aCMSMediaItemobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateCMSMediaItem
updateCMSMediaItem.
- Specified by:
updateCMSMediaItemin interfaceIDAO- Parameters:
item- aCMSMediaItemobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteCMSMediaItem
deleteCMSMediaItem.
- Specified by:
deleteCMSMediaItemin interfaceIDAO- Parameters:
item- aCMSMediaItemobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getCMSMediaItemsByCategory
Get a list of allCMSMediaItems which contain the given category- Specified by:
getCMSMediaItemsByCategoryin interfaceIDAO- Parameters:
category-- Returns:
- all containing cmsPages
- Throws:
DAOException
-
getAllTranskribusJobs
getAllTranskribusJobs.
- Specified by:
getAllTranskribusJobsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getTranskribusJobs
public List<TranskribusJob> getTranskribusJobs(String pi, String transkribusUserId, JobStatus status) throws DAOException getTranskribusJobs.
- Specified by:
getTranskribusJobsin interfaceIDAO- Parameters:
pi- aStringobject.transkribusUserId- aStringobject.status- aJobStatusobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
addTranskribusJob
addTranskribusJob.
- Specified by:
addTranskribusJobin interfaceIDAO- Parameters:
job- aTranskribusJobobject.- Returns:
- true if job added successfully; false otherwise
- Throws:
DAOException- if any.
-
updateTranskribusJob
updateTranskribusJob.
- Specified by:
updateTranskribusJobin interfaceIDAO- Parameters:
job- aTranskribusJobobject.- Returns:
- true if job updated successfully; false otherwise
- Throws:
DAOException- if any.
-
deleteTranskribusJob
deleteTranskribusJob.
- Specified by:
deleteTranskribusJobin interfaceIDAO- Parameters:
job- aTranskribusJobobject.- Returns:
- true if job deleted successfully; false otherwise
- Throws:
DAOException- if any.
-
getAllCampaigns
getAllCampaigns.
- Specified by:
getAllCampaignsin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCampaignCount
getCampaignCount.
- Specified by:
getCampaignCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getCampaigns
public List<Campaign> getCampaigns(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetCampaigns.
- Specified by:
getCampaignsin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCampaign
getCampaign.
- Specified by:
getCampaignin interfaceIDAO- Parameters:
id- aLongobject.- Returns:
- a
Campaignobject. - Throws:
DAOException- if any.
-
getQuestion
getQuestion.
- Specified by:
getQuestionin interfaceIDAO- Parameters:
id- aLongobject.- Returns:
- a
Questionobject. - Throws:
DAOException- if any.
-
getCampaignStatisticsForRecord
public List<CampaignRecordStatistic> getCampaignStatisticsForRecord(String pi, CrowdsourcingStatus status) throws DAOException getCampaignStatisticsForRecord.
- Specified by:
getCampaignStatisticsForRecordin interfaceIDAO- Parameters:
pi- aStringobject.status- aCrowdsourcingStatusobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCampaignPageStatisticsForRecord
public List<CampaignRecordPageStatistic> getCampaignPageStatisticsForRecord(String pi, CrowdsourcingStatus status) throws DAOException getCampaignPageStatisticsForRecord.
- Specified by:
getCampaignPageStatisticsForRecordin interfaceIDAO- Parameters:
pi- aStringobject.status- aCrowdsourcingStatusobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
addCampaign
addCampaign.
- Specified by:
addCampaignin interfaceIDAO- Parameters:
campaign- aCampaignobject.- Returns:
- true if campaign added successfully; false otherwise
- Throws:
DAOException- if any.
-
updateCampaign
updateCampaign.
- Specified by:
updateCampaignin interfaceIDAO- Parameters:
campaign- aCampaignobject.- Returns:
- true if campaign updated successfully; false otherwise
- Throws:
DAOException- if any.
-
deleteCampaign
deleteCampaign.
- Specified by:
deleteCampaignin interfaceIDAO- Parameters:
campaign- aCampaignobject.- Returns:
- true if campaign deleted successfully; false otherwise
- Throws:
DAOException- if any.
-
deleteCampaignStatisticsForUser
Description copied from interface:IDAODeletes given user from the lists of annotators and reviewers an all campaign statistics.- Specified by:
deleteCampaignStatisticsForUserin interfaceIDAO- Parameters:
user-- Returns:
- Number of affected campaigns
- Throws:
DAOException- See Also:
-
changeCampaignStatisticContributors
Description copied from interface:IDAOReplacedfromUserwithtoUserin the lists of annotators and reviewers an all campaign statistics.- Specified by:
changeCampaignStatisticContributorsin interfaceIDAO- Parameters:
fromUser-toUser-- Returns:
- Number of updated rows
- Throws:
DAOException- See Also:
-
checkAvailability
public boolean checkAvailability()- Specified by:
checkAvailabilityin interfaceIDAO- Returns:
- true if accessible; false otherwise
-
clear
public void clear()currently noop since no persistence entity manager is kept -
shutdown
public void shutdown()shutdown.
-
preQuery
Operation to call before getting an entity manager. currently noop
- Throws:
DAOException- if any.
-
getUserGroupCount
getUserGroupCount.
- Specified by:
getUserGroupCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getRoleCount
getRoleCount.
- Specified by:
getRoleCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getLicenseTypeCount
getLicenseTypeCount.
- Specified by:
getLicenseTypeCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getCoreLicenseTypeCount
getCoreLicenseTypeCount.
- Specified by:
getCoreLicenseTypeCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getIpRangeCount
getIpRangeCount.
- Specified by:
getIpRangeCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getCommentCount
public long getCommentCount(Map<String, String> filters, User owner, Set<String> targetPIs) throws DAOExceptiongetCommentCount.
- Specified by:
getCommentCountin interfaceIDAO- Parameters:
filters- aMapobject.owner-targetPIs-- Returns:
- Number of rows that match the criteria
- Throws:
DAOException- if any.
-
getCMSPageCount
public long getCMSPageCount(Map<String, String> filters, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategories) throws DAOExceptiongetCMSPageCount.
- Specified by:
getCMSPageCountin interfaceIDAO- Parameters:
filters- aMapobject.allowedTemplates- aListobject.allowedSubthemes- aListobject.allowedCategories- aListobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getCMSPageCountByPropertyValue
public long getCMSPageCountByPropertyValue(String propertyName, String propertyValue) throws DAOException - Specified by:
getCMSPageCountByPropertyValuein interfaceIDAO- Parameters:
propertyName-propertyValue-- Returns:
- long
- Throws:
DAOException
-
getCMSPagesByPropertyValue
public List<CMSPage> getCMSPagesByPropertyValue(String propertyName, String propertyValue) throws DAOException - Specified by:
getCMSPagesByPropertyValuein interfaceIDAO- Parameters:
propertyName-propertyValue-- Returns:
- List
- Throws:
DAOException
-
getAllStaticPages
getAllStaticPages.
- Specified by:
getAllStaticPagesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
addStaticPage
addStaticPage.
- Specified by:
addStaticPagein interfaceIDAO- Parameters:
page- aCMSStaticPageobject.- Returns:
- Throws:
DAOException- if any.
-
updateStaticPage
updateStaticPage.
- Specified by:
updateStaticPagein interfaceIDAO- Parameters:
page- aCMSStaticPageobject.- Returns:
- true if page updated successfully; false otherwise
- Throws:
DAOException- if any.
-
deleteStaticPage
deleteStaticPage.
- Specified by:
deleteStaticPagein interfaceIDAO- Parameters:
page- aCMSStaticPageobject.- Returns:
- true if page deleted successfully; false otherwise
- Throws:
DAOException- if any.
-
getStaticPageForCMSPage
public List<CMSStaticPage> getStaticPageForCMSPage(CMSPage page) throws DAOException, jakarta.persistence.NonUniqueResultException getStaticPageForCMSPage.
- Specified by:
getStaticPageForCMSPagein interfaceIDAO- Parameters:
page- aCMSPageobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.jakarta.persistence.NonUniqueResultException
-
getStaticPageForTypeType
getStaticPageForTypeType.
- Specified by:
getStaticPageForTypeTypein interfaceIDAO- Parameters:
pageType- aPageTypeobject.- Returns:
- a
Optionalobject. - Throws:
DAOException- if any.
-
getCMSCollections
getCMSCollections.
- Specified by:
getCMSCollectionsin interfaceIDAO- Parameters:
solrField- aStringobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
addCMSCollection
addCMSCollection.
- Specified by:
addCMSCollectionin interfaceIDAO- Parameters:
collection- aCMSCollectionobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateCMSCollection
updateCMSCollection.
- Specified by:
updateCMSCollectionin interfaceIDAO- Parameters:
collection- aCMSCollectionobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getCMSCollection
getCMSCollection.
- Specified by:
getCMSCollectionin interfaceIDAO- Parameters:
solrField- aStringobject.solrFieldValue- aStringobject.- Returns:
- a
CMSCollectionobject. - Throws:
DAOException- if any.
-
deleteCMSCollection
deleteCMSCollection.
- Specified by:
deleteCMSCollectionin interfaceIDAO- Parameters:
collection- aCMSCollectionobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getCMSPagesByCategory
getCMSPagesByCategory.
- Specified by:
getCMSPagesByCategoryin interfaceIDAO- Parameters:
category- aCMSCategoryobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCMSPagesForSubtheme
- Specified by:
getCMSPagesForSubthemein interfaceIDAO- Parameters:
subtheme-- Returns:
- List of
CMSPages that use given subtheme - Throws:
DAOException
-
getCMSPagesForRecord
getCMSPagesForRecord.
- Specified by:
getCMSPagesForRecordin interfaceIDAO- Parameters:
pi- aStringobject.category- aCMSCategoryobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
createCMSPageFilter
public static String createCMSPageFilter(Map<String, Object> params, String pageParameter, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategoryIds) throws AccessDeniedExceptioncreateCMSPageFilter.
-
getAllCategories
getAllCategories.
- Specified by:
getAllCategoriesin interfaceIDAO- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getCountPagesUsingCategory
- Specified by:
getCountPagesUsingCategoryin interfaceIDAO- Parameters:
category-- Returns:
- Number of existing CMS pages having the given category
- Throws:
DAOException
-
getCountMediaItemsUsingCategory
- Specified by:
getCountMediaItemsUsingCategoryin interfaceIDAO- Parameters:
category-- Returns:
- Number of existing CMS media items having the given category
- Throws:
DAOException
-
addCategory
addCategory.
Persist a newCMSCategoryobject- Specified by:
addCategoryin interfaceIDAO- Parameters:
category- aCMSCategoryobject.- Returns:
- true if category added successfully; false otherwise
- Throws:
DAOException- if any.
-
updateCategory
updateCategory.
Update an existingCMSCategoryobject in the persistence context- Specified by:
updateCategoryin interfaceIDAO- Parameters:
category- aCMSCategoryobject.- Returns:
- true if category updated successfully; false otherwise
- Throws:
DAOException- if any.
-
deleteCategory
deleteCategory.
Delete aCMSCategoryobject from the persistence context- Specified by:
deleteCategoryin interfaceIDAO- Parameters:
category- aCMSCategoryobject.- Returns:
- true if category deleted successfully; false otherwise
- Throws:
DAOException- if any.
-
getCategoryByName
getCategoryByName.
Search the persistence context for aCMSCategorywith the given name.- Specified by:
getCategoryByNamein interfaceIDAO- Parameters:
name- aStringobject.- Returns:
- a
CMSCategoryobject. - Throws:
DAOException- if any.
-
getCategory
getCategory.
Search the persistence context for aCMSCategorywith the given unique id.- Specified by:
getCategoryin interfaceIDAO- Parameters:
id- aLongobject.- Returns:
- a
CMSCategoryobject. - Throws:
DAOException- if any.
-
tableExists
tableExists.
Check if the database contains a table of the given name. Used by backward-compatibility routines- Specified by:
tableExistsin interfaceIDAO- Parameters:
tableName- aStringobject.- Returns:
- a boolean.
- Throws:
SQLExceptionDAOException
-
columnsExists
columnsExists.
Check if the database contains a column in a table with the given names. Used by backward-compatibility routines- Specified by:
columnsExistsin interfaceIDAO- Parameters:
tableName- aStringobject.columnName- aStringobject.- Returns:
- a boolean.
- Throws:
SQLException- if any.DAOException
-
getAnnotation
Annotations *- Specified by:
getAnnotationin interfaceIDAO- Parameters:
id- aLongobject.- Returns:
- a
CrowdsourcingAnnotationobject. - Throws:
DAOException- if any.
-
getAnnotationsForCampaign
public List<CrowdsourcingAnnotation> getAnnotationsForCampaign(Campaign campaign) throws DAOException getAnnotationsForCampaign.
- Specified by:
getAnnotationsForCampaignin interfaceIDAO- Parameters:
campaign- aCampaignobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAnnotationsForWork
getAnnotationsForWork.
Get all annotations associated with the work of the given pi- Specified by:
getAnnotationsForWorkin interfaceIDAO- Parameters:
pi- aStringobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAllAnnotations
public List<CrowdsourcingAnnotation> getAllAnnotations(String sortField, boolean descending) throws DAOException - Specified by:
getAllAnnotationsin interfaceIDAO- Parameters:
sortField-descending-- Returns:
- List of all existing
CrowdsourcingAnnotations, optionally sorted by given sortField - Throws:
DAOException
-
getTotalAnnotationCount
- Specified by:
getTotalAnnotationCountin interfaceIDAO- Returns:
- Number of all existing
CrowdsourcingAnnotations - Throws:
DAOException
-
getAllAnnotationsByMotivation
public List<CrowdsourcingAnnotation> getAllAnnotationsByMotivation(String motivation) throws DAOException - Specified by:
getAllAnnotationsByMotivationin interfaceIDAO- Parameters:
motivation-- Returns:
- List of
CrowdsourcingAnnotations matching given commenting - Throws:
DAOException
-
getAnnotationCountForWork
- Specified by:
getAnnotationCountForWorkin interfaceIDAO- Parameters:
pi-- Returns:
- Number of existing annotations for the given pi
- Throws:
DAOException
-
getAnnotationsForTarget
public List<CrowdsourcingAnnotation> getAnnotationsForTarget(String pi, Integer page) throws DAOException getAnnotationsForTarget.
- Specified by:
getAnnotationsForTargetin interfaceIDAO- Parameters:
pi- aStringobject.page- aIntegerobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAnnotationsForTarget
public List<CrowdsourcingAnnotation> getAnnotationsForTarget(String pi, Integer page, String motivation) throws DAOException - Specified by:
getAnnotationsForTargetin interfaceIDAO- Throws:
DAOException
-
getAnnotationCountForTarget
getAnnotationCountForTarget.
- Specified by:
getAnnotationCountForTargetin interfaceIDAO- Parameters:
pi- aStringobject.page- aIntegerobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getAnnotationsForCampaignAndWork
public List<CrowdsourcingAnnotation> getAnnotationsForCampaignAndWork(Campaign campaign, String pi) throws DAOException getAnnotationsForCampaignAndWork.
- Specified by:
getAnnotationsForCampaignAndWorkin interfaceIDAO- Parameters:
campaign- aCampaignobject.pi- aStringobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAnnotationsForCampaignAndTarget
public List<CrowdsourcingAnnotation> getAnnotationsForCampaignAndTarget(Campaign campaign, String pi, Integer page) throws DAOException getAnnotationsForCampaignAndTarget.
- Specified by:
getAnnotationsForCampaignAndTargetin interfaceIDAO- Parameters:
campaign- aCampaignobject.pi- aStringobject.page- aIntegerobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAnnotationsForUserId
public List<CrowdsourcingAnnotation> getAnnotationsForUserId(Long userId, Integer maxResults, String sortField, boolean descending) throws DAOException - Specified by:
getAnnotationsForUserIdin interfaceIDAO- Parameters:
userId-maxResults-sortField-descending-- Returns:
- List of
CrowdsourcingAnnotations for the given userId - Throws:
DAOException
-
getAnnotations
public List<CrowdsourcingAnnotation> getAnnotations(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetAnnotations.
- Specified by:
getAnnotationsin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAnnotations
public List<CrowdsourcingAnnotation> getAnnotations(int first, int pageSize, String sortField, boolean descending, String filterString, Map<String, Object> params) throws DAOException- Specified by:
getAnnotationsin interfaceIDAO- Parameters:
first-pageSize-sortField-descending-filterString-params-- Returns:
- List of
CrowdsourcingAnnotations matching given filters - Throws:
DAOException
-
getAnnotationCount
getAnnotationCount.
- Specified by:
getAnnotationCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
addAnnotation
addAnnotation.
- Specified by:
addAnnotationin interfaceIDAO- Parameters:
annotation- aCrowdsourcingAnnotationobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
updateAnnotation
updateAnnotation.
- Specified by:
updateAnnotationin interfaceIDAO- Parameters:
annotation- aCrowdsourcingAnnotationobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
deleteAnnotation
deleteAnnotation.
- Specified by:
deleteAnnotationin interfaceIDAO- Parameters:
annotation- aCrowdsourcingAnnotationobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getGeoMap
Get theGeoMapof the given mapId- Specified by:
getGeoMapin interfaceIDAO- Parameters:
mapId-- Returns:
- The GeoMap of the given id or else null
- Throws:
DAOException
-
getAllGeoMaps
Get allGeoMaps in database- Specified by:
getAllGeoMapsin interfaceIDAO- Returns:
- A list of all stored GeoMaps
- Throws:
DAOException
-
addGeoMap
Add the given map to the database if no map of the same id already exists- Specified by:
addGeoMapin interfaceIDAO- Parameters:
map-- Returns:
- true if successful
- Throws:
DAOException
-
updateGeoMap
Update the givenGeoMapin the database- Specified by:
updateGeoMapin interfaceIDAO- Parameters:
map-- Returns:
- true if successful
- Throws:
DAOException
-
deleteGeoMap
Delete the givenGeoMapfrom the database- Specified by:
deleteGeoMapin interfaceIDAO- Parameters:
map-- Returns:
- true if successful
- Throws:
DAOException
-
getPagesUsingMap
Return a list of CMS-pages embedding the given map- Specified by:
getPagesUsingMapin interfaceIDAO- Parameters:
map-- Returns:
- List of
CMSPages that use given map - Throws:
DAOException
-
getPagesUsingMapInSidebar
Return a list of CMS-pages embedding the given map in a sidebar widget- Specified by:
getPagesUsingMapInSidebarin interfaceIDAO- Parameters:
map-- Returns:
- List of
CMSPages that use given map in sidebar - Throws:
DAOException
-
saveTermsOfUse
- Specified by:
saveTermsOfUsein interfaceIDAO- Throws:
DAOException
-
getTermsOfUse
- Specified by:
getTermsOfUsein interfaceIDAO- Throws:
DAOException
-
resetUserAgreementsToTermsOfUse
- Specified by:
resetUserAgreementsToTermsOfUsein interfaceIDAO- Throws:
DAOException
-
getRecordNotes
public List<CMSRecordNote> getRecordNotes(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptionGet a paginated list ofCMSRecordNotes- Specified by:
getRecordNotesin interfaceIDAO- Parameters:
first-pageSize-sortField-descending-filters-- Returns:
- List of
CMSPages that match the given filters - Throws:
DAOException
-
getAllRecordNotes
Get all persistedCMSRecordNotes- Specified by:
getAllRecordNotesin interfaceIDAO- Returns:
- List of all existing
CMSSingleRecordNotes - Throws:
DAOException
-
getRecordNotesForPi
public List<CMSSingleRecordNote> getRecordNotesForPi(String pi, boolean displayedNotesOnly) throws DAOException Get allCMSRecordNotes for the given pi- Specified by:
getRecordNotesForPiin interfaceIDAO- Parameters:
pi- The pi of the record.displayedNotesOnly- set to true to only return notes withCMSRecordNote.isDisplayNote()set to true- Returns:
- List of
CMSSingleRecordNotes for the given pi - Throws:
DAOException
-
getAllMultiRecordNotes
public List<CMSMultiRecordNote> getAllMultiRecordNotes(boolean displayedNotesOnly) throws DAOException Get allCMSMultiRecordNotes. To find notes relating to record, all notes must be check for matching query- Specified by:
getAllMultiRecordNotesin interfaceIDAO- Parameters:
displayedNotesOnly-- Returns:
- List of all existing
CMSSingleRecordNotes, optionaly filtered by displayed only - Throws:
DAOException
-
getRecordNote
Get aCMSRecordNoteby its id property- Specified by:
getRecordNotein interfaceIDAO- Parameters:
id-- Returns:
CMSSingleRecordNotewith the given id- Throws:
DAOException
-
addRecordNote
Persist a newCMSRecordNote.- Specified by:
addRecordNotein interfaceIDAO- Parameters:
note-- Returns:
- true if note added successfully; false otherwise
- Throws:
DAOException
-
updateRecordNote
Updates an existingCMSRecordNote- Specified by:
updateRecordNotein interfaceIDAO- Parameters:
note-- Returns:
- true if note updated successfully; false otherwise
- Throws:
DAOException
-
deleteRecordNote
Deletes an existingCMSRecordNote- Specified by:
deleteRecordNotein interfaceIDAO- Parameters:
note-- Returns:
- true if note deleted successfully; false otherwise
- Throws:
DAOException
-
getAllSliders
- Specified by:
getAllSlidersin interfaceIDAO- Throws:
DAOException
-
getSlider
- Specified by:
getSliderin interfaceIDAO- Throws:
DAOException
-
addSlider
- Specified by:
addSliderin interfaceIDAO- Throws:
DAOException
-
updateSlider
- Specified by:
updateSliderin interfaceIDAO- Throws:
DAOException
-
deleteSlider
- Specified by:
deleteSliderin interfaceIDAO- Throws:
DAOException
-
getPagesUsingSlider
- Specified by:
getPagesUsingSliderin interfaceIDAO- Throws:
DAOException
-
getConfiguredThemes
- Specified by:
getConfiguredThemesin interfaceIDAO- Throws:
DAOException
-
getTheme
- Specified by:
getThemein interfaceIDAO- Throws:
DAOException
-
addTheme
- Specified by:
addThemein interfaceIDAO- Throws:
DAOException
-
updateTheme
- Specified by:
updateThemein interfaceIDAO- Throws:
DAOException
-
deleteTheme
- Specified by:
deleteThemein interfaceIDAO- Throws:
DAOException
-
getAllCustomWidgets
- Specified by:
getAllCustomWidgetsin interfaceIDAO- Throws:
DAOException
-
getCustomWidget
- Specified by:
getCustomWidgetin interfaceIDAO- Throws:
DAOException
-
addCustomWidget
- Specified by:
addCustomWidgetin interfaceIDAO- Throws:
DAOException
-
updateCustomWidget
- Specified by:
updateCustomWidgetin interfaceIDAO- Throws:
DAOException
-
deleteCustomWidget
- Specified by:
deleteCustomWidgetin interfaceIDAO- Throws:
DAOException
-
getPagesUsingWidget
- Specified by:
getPagesUsingWidgetin interfaceIDAO- Throws:
DAOException
-
getCookieBanner
- Specified by:
getCookieBannerin interfaceIDAO- Throws:
DAOException
-
saveCookieBanner
- Specified by:
saveCookieBannerin interfaceIDAO- Throws:
DAOException
-
saveDisclaimer
- Specified by:
saveDisclaimerin interfaceIDAO- Throws:
DAOException
-
getDisclaimer
Get the single storedDisclaimer. May return null if no disclaimer has been persisted yet- Specified by:
getDisclaimerin interfaceIDAO- Returns:
- the disclaimer or null
- Throws:
DAOException
-
getNumRecordsWithComments
- Specified by:
getNumRecordsWithCommentsin interfaceIDAO- Throws:
DAOException
-
getNativeQueryResults
- Specified by:
getNativeQueryResultsin interfaceIDAO- Throws:
DAOException
-
executeUpdate
- Specified by:
executeUpdatein interfaceIDAO- Throws:
DAOException
-
getAllClientApplications
- Specified by:
getAllClientApplicationsin interfaceIDAO- Throws:
DAOException
-
getClientApplication
- Specified by:
getClientApplicationin interfaceIDAO- Throws:
DAOException
-
getClientApplicationByClientId
- Specified by:
getClientApplicationByClientIdin interfaceIDAO- Throws:
DAOException
-
saveClientApplication
- Specified by:
saveClientApplicationin interfaceIDAO- Throws:
DAOException
-
deleteClientApplication
- Specified by:
deleteClientApplicationin interfaceIDAO- Throws:
DAOException
-
getAllUsageStatistics
- Specified by:
getAllUsageStatisticsin interfaceIDAO- Throws:
DAOException
-
getUsageStatistics
- Specified by:
getUsageStatisticsin interfaceIDAO- Throws:
DAOException
-
getUsageStatistics
public List<DailySessionUsageStatistics> getUsageStatistics(LocalDate start, LocalDate end) throws DAOException - Specified by:
getUsageStatisticsin interfaceIDAO- Throws:
DAOException
-
addUsageStatistics
- Specified by:
addUsageStatisticsin interfaceIDAO- Throws:
DAOException
-
updateUsageStatistics
- Specified by:
updateUsageStatisticsin interfaceIDAO- Throws:
DAOException
-
deleteUsageStatistics
- Specified by:
deleteUsageStatisticsin interfaceIDAO- Throws:
DAOException
-
getAllCMSPageTemplates
- Specified by:
getAllCMSPageTemplatesin interfaceIDAO- Throws:
DAOException
-
getCMSPageTemplate
- Specified by:
getCMSPageTemplatein interfaceIDAO- Throws:
DAOException
-
addCMSPageTemplate
- Specified by:
addCMSPageTemplatein interfaceIDAO- Throws:
DAOException
-
updateCMSPageTemplate
- Specified by:
updateCMSPageTemplatein interfaceIDAO- Throws:
DAOException
-
removeCMSPageTemplate
- Specified by:
removeCMSPageTemplatein interfaceIDAO- Throws:
DAOException
-
addViewerMessage
- Specified by:
addViewerMessagein interfaceIDAO- Throws:
DAOException
-
deleteViewerMessage
- Specified by:
deleteViewerMessagein interfaceIDAO- Throws:
DAOException
-
getViewerMessage
- Specified by:
getViewerMessagein interfaceIDAO- Throws:
DAOException
-
updateViewerMessage
- Specified by:
updateViewerMessagein interfaceIDAO- Throws:
DAOException
-
getViewerMessageByMessageID
- Specified by:
getViewerMessageByMessageIDin interfaceIDAO- Throws:
DAOException
-
deleteViewerMessagesBefore
- Specified by:
deleteViewerMessagesBeforein interfaceIDAO- Throws:
DAOException
-
getViewerMessages
public List<ViewerMessage> getViewerMessages(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptionDescription copied from interface:IDAOgetViewerMessages.
- Specified by:
getViewerMessagesin interfaceIDAO- Parameters:
first- a int.pageSize- a int.sortField- aStringobject.descending- a boolean.filters- aMapobject.- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getViewerMessageCount
getViewerMessageCount.
- Specified by:
getViewerMessageCountin interfaceIDAO- Parameters:
filters- aMapobject.- Returns:
- a long.
- Throws:
DAOException- if any.
-
getRecurringTaskTriggers
- Specified by:
getRecurringTaskTriggersin interfaceIDAO- Throws:
DAOException
-
getRecurringTaskTrigger
- Specified by:
getRecurringTaskTriggerin interfaceIDAO- Throws:
DAOException
-
getRecurringTaskTriggerForTask
- Specified by:
getRecurringTaskTriggerForTaskin interfaceIDAO- Throws:
DAOException
-
addRecurringTaskTrigger
- Specified by:
addRecurringTaskTriggerin interfaceIDAO- Throws:
DAOException
-
updateRecurringTaskTrigger
- Specified by:
updateRecurringTaskTriggerin interfaceIDAO- Throws:
DAOException
-
deleteRecurringTaskTrigger
- Specified by:
deleteRecurringTaskTriggerin interfaceIDAO- Throws:
DAOException
-
addHighlight
- Specified by:
addHighlightin interfaceIDAO- Throws:
DAOException
-
updateHighlight
- Specified by:
updateHighlightin interfaceIDAO- Throws:
DAOException
-
deleteHighlight
- Specified by:
deleteHighlightin interfaceIDAO- Throws:
DAOException
-
getHighlight
- Specified by:
getHighlightin interfaceIDAO- Throws:
DAOException
-
getAllHighlights
- Specified by:
getAllHighlightsin interfaceIDAO- Throws:
DAOException
-
getHighlightsForDate
- Specified by:
getHighlightsForDatein interfaceIDAO- Throws:
DAOException
-
getPastHighlightsForDate
public List<HighlightData> getPastHighlightsForDate(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, LocalDateTime date) throws DAOException- Specified by:
getPastHighlightsForDatein interfaceIDAO- Throws:
DAOException
-
getFutureHighlightsForDate
public List<HighlightData> getFutureHighlightsForDate(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, LocalDateTime date) throws DAOException- Specified by:
getFutureHighlightsForDatein interfaceIDAO- Throws:
DAOException
-
getHighlights
public List<HighlightData> getHighlights(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOException- Specified by:
getHighlightsin interfaceIDAO- Throws:
DAOException
-
getMaintenanceMode
Returns the only existing instance of MaintenanceMode.- Specified by:
getMaintenanceModein interfaceIDAO- Returns:
- a
IpRangeobject. - Throws:
DAOException- if any.
-
updateMaintenanceMode
updateMaintenanceMode.
- Specified by:
updateMaintenanceModein interfaceIDAO- Parameters:
maintenanceMode- aIpRangeobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-