Class JPADAO
- All Implemented Interfaces:
IDAO
JPADAO class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAnnotation
(CrowdsourcingAnnotation annotation) addAnnotation.boolean
addBookmarkList
(BookmarkList bookmarkList) addBookmarkList.boolean
addCampaign
(Campaign campaign) addCampaign.boolean
addCategory
(CMSCategory category) addCategory.boolean
addCMSCollection
(CMSCollection collection) addCMSCollection.boolean
addCMSComponent
(PersistentCMSComponent persistentCMSComponent) boolean
addCMSMediaItem
(CMSMediaItem item) addCMSMediaItem.boolean
addCMSNavigationItem.boolean
addCMSPage
(CMSPage page) addCMSPage.boolean
addCMSPageTemplate
(CMSPageTemplate template) boolean
addComment
(Comment comment) addComment.boolean
addCommentGroup
(CommentGroup commentGroup) addCommentGroup.boolean
addCustomWidget
(CustomSidebarWidget widget) boolean
addDownloadJob
(DownloadJob downloadJob) addDownloadJob.boolean
addDownloadTicket
(DownloadTicket downloadTicket) addDownloadTicket.boolean
Add the given map to the database if no map of the same id already existsboolean
addHighlight
(HighlightData object) boolean
addIpRange
(IpRange ipRange) addIpRange.boolean
addLicenseType
(LicenseType licenseType) addLicenseType.boolean
addRecordNote
(CMSRecordNote note) Persist a newCMSRecordNote
.boolean
boolean
addRole.boolean
addSearch.boolean
boolean
addStaticPage
(CMSStaticPage page) addStaticPage.boolean
addTheme
(ThemeConfiguration theme) boolean
addTranskribusJob.boolean
addUploadJob
(UploadJob uploadJob) addDownloadJob.boolean
addUsageStatistics
(DailySessionUsageStatistics statistics) boolean
addUser.boolean
addUserGroup
(UserGroup userGroup) addUserGroup.boolean
addUserRole
(UserRole userRole) addUserRole.boolean
addViewerMessage
(ViewerMessage message) int
changeCampaignStatisticContributors
(User fromUser, User toUser) ReplacedfromUser
withtoUser
in the lists of annotators and reviewers an all campaign statistics.int
changeCommentsOwner
(User fromUser, User toUser) Changes ownership of all comments fromfromUser
totoUser
.boolean
void
clear()
currently noop since no persistence entity manager is keptvoid
close
(jakarta.persistence.EntityManager em) Operation to call after a query or other kind of transaction is completeboolean
columnsExists
(String tableName, String columnName) columnsExists.void
commitTransaction
(jakarta.persistence.EntityManager em) CallEntityTransaction.commit()
on the current transaction of the given EntityManagervoid
commitTransaction
(jakarta.persistence.EntityTransaction et) Commits a persistence context transaction.static String
createCMSPageFilter
(Map<String, Object> params, String pageParameter, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategoryIds) createCMSPageFilter.boolean
deleteAnnotation
(CrowdsourcingAnnotation annotation) deleteAnnotation.boolean
deleteBookmarkList
(BookmarkList bookmarkList) deleteBookmarkList.boolean
deleteCampaign
(Campaign campaign) deleteCampaign.int
Deletes given user from the lists of annotators and reviewers an all campaign statistics.boolean
deleteCategory
(CMSCategory category) deleteCategory.boolean
deleteClientApplication
(long id) boolean
deleteCMSCollection
(CMSCollection collection) deleteCMSCollection.boolean
deleteCMSComponent
(PersistentCMSComponent component) boolean
deleteCMSContent
(CMSContent content) boolean
deleteCMSMediaItem.boolean
deleteCMSNavigationItem.boolean
deleteCMSPage
(CMSPage page) deleteCMSPage.boolean
deleteComment
(Comment comment) deleteComment.boolean
deleteCommentGroup
(CommentGroup commentGroup) deleteCommentGroup.int
deleteComments
(String pi, User owner) boolean
boolean
deleteDownloadJob
(DownloadJob downloadJob) deleteDownloadJob.boolean
deleteDownloadTicket
(DownloadTicket downloadTicket) deleteDownloadTicket.boolean
deleteGeoMap
(GeoMap map) Delete the givenGeoMap
from the databaseboolean
deleteHighlight
(Long id) boolean
deleteIpRange
(IpRange ipRange) deleteIpRange.boolean
deleteLicenseType
(LicenseType licenseType) deleteLicenseType.boolean
Deletes an existingCMSRecordNote
boolean
boolean
deleteRole
(Role role) deleteRole.boolean
deleteSearch
(Search search) deleteSearch.boolean
deleteSlider
(CMSSlider slider) boolean
deleteStaticPage.boolean
deleteTheme
(ThemeConfiguration theme) boolean
deleteTranskribusJob.boolean
deleteUploadJob
(UploadJob uploadJob) deleteDownloadJob.boolean
deleteUsageStatistics
(long id) boolean
deleteUser
(User user) deleteUser.boolean
deleteUserGroup
(UserGroup userGroup) deleteUserGroup.boolean
deleteUserRole
(UserRole userRole) deleteUserRole.boolean
deleteViewerMessage
(ViewerMessage message) int
int
executeUpdate
(String query) long
getActiveDownloadTicketCount
(Map<String, String> filters) getActiveDownloadTicketCount.getActiveDownloadTickets
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getActiveDownloadTickets.getAllAnnotations
(String sortField, boolean descending) getAllAnnotationsByMotivation
(String motivation) getAllBookmarkLists.getAllCampaigns.getAllCategories.getAllCMSCollectionItems.getAllCMSMediaItems.getAllCMSPages.getAllComments.getAllDownloadJobs.Get allGeoMap
s in databasegetAllIpRanges.getAllLicenses.getAllLicenseTypes.getAllMultiRecordNotes
(boolean displayedNotesOnly) Get allCMSMultiRecordNote
s.Get all persistedCMSRecordNote
sgetAllRoles.getAllSearches.getAllStaticPages.getAllTopCMSNavigationItems.getAllTranskribusJobs.getAllUserGroups.getAllUserRoles.getAllUsers
(boolean refresh) getAllUsers.getAnnotation
(Long id) Annotations *long
getAnnotationCount
(Map<String, String> filters) getAnnotationCount.long
getAnnotationCountForTarget
(String pi, Integer page) getAnnotationCountForTarget.long
getAnnotations
(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.long
getBookmarkListCount
(User user) Get number of bookmark lists owned by the given usergetBookmarkLists
(User user) getBookmarkLists.getCampaign
(Long id) getCampaign.long
getCampaignCount
(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 allCMSMediaItem
s which contain the given categorygetCMSNavigationItem
(long id) getCMSNavigationItem.getCMSPage
(long id) getCMSPage.long
getCMSPageCount
(Map<String, String> filters, List<Long> allowedTemplates, List<String> allowedSubthemes, List<String> allowedCategories) getCMSPageCount.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.getCMSPagesForRecord
(String pi, CMSCategory category) getCMSPagesForRecord.getCMSPagesForSubtheme
(String subtheme) getCMSPagesWithRelatedPi
(int first, int pageSize, LocalDateTime fromDate, LocalDateTime toDate) getCMSPagesWithRelatedPi.long
getCMSPageWithRelatedPiCount
(LocalDateTime fromDate, LocalDateTime toDate) getCMSPageWithRelatedPiCount.getComment
(long id) getComment.long
getCommentCount.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 userlong
getCoreLicenseTypeCount
(Map<String, String> filters) getCoreLicenseTypeCount.getCoreLicenseTypes
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getCoreLicenseTypes.long
getCountMediaItemsUsingCategory
(CMSCategory category) long
getCountPagesUsingCategory
(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.getDownloadTicketByPasswordHash
(String passwordHash) jakarta.persistence.EntityManager
Get a newEntityManager
from thefactory
jakarta.persistence.EntityManagerFactory
Getter for the fieldfactory
.getFutureHighlightsForDate
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters, LocalDateTime date) Get theGeoMap
of 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.long
getIpRangeCount
(Map<String, String> filters) getIpRangeCount.getIpRanges
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getIpRanges.getLicense
(Long id) getLicense.long
getLicenseCount
(LicenseType licenseType) Returns the number of licenses that use the given license type.getLicenses
(LicenseType licenseType) getLicenseType
(long id) getLicenseType.getLicenseType
(String name) getLicenseType.long
getLicenseTypeCount
(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.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 aCMSRecordNote
by its id propertygetRecordNotes
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) Get a paginated list ofCMSRecordNote
sgetRecordNotesForPi
(String pi, boolean displayedNotesOnly) Get allCMSRecordNote
s for the given pigetRelatedNavItem
(CMSPage page) getRelatedNavItem.getRole
(long id) getRole.getRole.long
getRoleCount
(Map<String, String> filters) getRoleCount.getRoles.getSearch
(long id) getSearch.long
getSearchCount
(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.long
getTranskribusJobs
(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.long
getUserCount
(Map<String, String> filters) getUserCount.getUserGroup
(long id) getUserGroup.getUserGroup
(String name) getUserGroup.long
getUserGroupCount
(Map<String, String> filters) getUserGroupCount.getUserGroups
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getUserGroups.getUserGroups
(User owner) getUserGroups.long
getUserRoleCount
(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) long
getViewerMessageCount
(Map<String, String> filters) getViewerMessageCount.getViewerMessages
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getViewerMessages.void
handleException
(jakarta.persistence.EntityManager em) Handling of exceptions occurred duringIDAO.commitTransaction(EntityManager)
Usually callsEntityTransaction.rollback()
on the current transaction of the given EntityManagervoid
handleException
(jakarta.persistence.EntityTransaction et) Handling of exceptions occurred duringIDAO.commitTransaction(EntityTransaction)
.boolean
isCMSPagesForRecordHaveUpdates
(String pi, CMSCategory category, LocalDateTime fromDate, LocalDateTime toDate) isCMSPagesForRecordHaveUpdates.void
preQuery()
Operation to call before getting an entity manager. currently noopboolean
removeCMSPageTemplate
(CMSPageTemplate template) boolean
boolean
boolean
saveCookieBanner
(CookieBanner banner) boolean
saveDisclaimer
(Disclaimer disclaimer) boolean
saveTermsOfUse
(TermsOfUse tou) void
shutdown()
shutdown.jakarta.persistence.EntityTransaction
startTransaction
(jakarta.persistence.EntityManager em) CallgetTransaction()
on the given EntityManager and thenbegin()
on the transaction.boolean
tableExists
(String tableName) tableExists.boolean
updateAnnotation
(CrowdsourcingAnnotation annotation) updateAnnotation.boolean
updateBookmarkList
(BookmarkList bookmarkList) updateBookmarkList.boolean
updateCampaign
(Campaign campaign) updateCampaign.boolean
updateCategory
(CMSCategory category) updateCategory.boolean
updateCMSCollection
(CMSCollection collection) updateCMSCollection.boolean
updateCMSMediaItem.boolean
updateCMSNavigationItem.boolean
updateCMSPage
(CMSPage page) updateCMSPage.boolean
updateCMSPageTemplate
(CMSPageTemplate template) boolean
updateComment
(Comment comment) updateComment.boolean
updateCommentGroup
(CommentGroup commentGroup) updateCommentGroup.boolean
boolean
updatedCMSComponent
(PersistentCMSComponent persistentCMSComponent) boolean
updateDownloadJob
(DownloadJob downloadJob) updateDownloadJob.boolean
updateDownloadTicket
(DownloadTicket downloadTicket) updateDownloadTicket.boolean
updateGeoMap
(GeoMap map) Update the givenGeoMap
in the databaseboolean
updateHighlight
(HighlightData object) boolean
updateIpRange
(IpRange ipRange) updateIpRange.boolean
updateLicenseType
(LicenseType licenseType) updateLicenseType.boolean
Updates an existingCMSRecordNote
boolean
boolean
updateRole
(Role role) updateRole.boolean
updateSearch
(Search search) updateSearch.boolean
updateSlider
(CMSSlider slider) boolean
updateStaticPage.boolean
updateTheme
(ThemeConfiguration theme) boolean
updateTranskribusJob.boolean
updateUploadJob
(UploadJob uploadJob) updateDownloadJob.boolean
updateUsageStatistics
(DailySessionUsageStatistics statistics) boolean
updateUser
(User user) updateUser.boolean
updateUserGroup
(UserGroup userGroup) updateUserGroup.boolean
updateUserRole
(UserRole userRole) updateUserRole.boolean
updateViewerMessage
(ViewerMessage message)
-
Constructor Details
-
JPADAO
Constructor for JPADAO.
- Throws:
DAOException
- if any.
-
JPADAO
Constructor for JPADAO.
- Parameters:
inPersistenceUnitName
- aString
object.- Throws:
DAOException
- if any.
-
-
Method Details
-
getFactory
public jakarta.persistence.EntityManagerFactory getFactory()Getter for the field
factory
.- Specified by:
getFactory
in interfaceIDAO
- Returns:
- a
EntityManagerFactory
object.
-
getEntityManager
public jakarta.persistence.EntityManager getEntityManager()Get a new
EntityManager
from thefactory
- Specified by:
getEntityManager
in interfaceIDAO
- Returns:
EntityManager
for the current thread
-
close
Operation to call after a query or other kind of transaction is complete- Specified by:
close
in 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:
startTransaction
in 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:
commitTransaction
in 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:
commitTransaction
in 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:
handleException
in 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:
handleException
in interfaceIDAO
- Parameters:
em
- EntityManager
-
getAllUsers
getAllUsers.
- Specified by:
getAllUsers
in interfaceIDAO
- Parameters:
refresh
- a boolean.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getUserCount
getUserCount.
- Specified by:
getUserCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- 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:
getUsersByPropertyValue
in interfaceIDAO
- Returns:
- List if users with matching property name/value pair
- Throws:
DAOException
-
getUsersFilterQuery
- Parameters:
param
-- Returns:
- Generated query
-
getUser
getUser.
- Specified by:
getUser
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
User
object. - Throws:
DAOException
- if any.
-
getUserByEmail
getUserByEmail.
- Specified by:
getUserByEmail
in interfaceIDAO
- Parameters:
email
- aString
object.- Returns:
- a
User
object. - Throws:
DAOException
- if any.
-
getUserByOpenId
getUserByOpenId.
- Specified by:
getUserByOpenId
in interfaceIDAO
- Parameters:
identifier
- aString
object.- Returns:
- a
User
object. - Throws:
DAOException
- if any.
-
getUserByNickname
Description copied from interface:IDAO
getUserByNickname.
- Specified by:
getUserByNickname
in interfaceIDAO
- Parameters:
nickname
- aString
object.- Returns:
- a
User
object. - Throws:
DAOException
- if any.- See Also:
-
addUser
addUser.
- Specified by:
addUser
in interfaceIDAO
- Parameters:
user
- aUser
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateUser
updateUser.
- Specified by:
updateUser
in interfaceIDAO
- Parameters:
user
- aUser
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteUser
deleteUser.
- Specified by:
deleteUser
in interfaceIDAO
- Parameters:
user
- aUser
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllUserGroups
getAllUserGroups.
- Specified by:
getAllUserGroups
in interfaceIDAO
- Returns:
- a
List
object. - 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:
getUserGroups
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getUserGroups
getUserGroups.
- Specified by:
getUserGroups
in interfaceIDAO
- Parameters:
owner
- aUser
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getUserGroup
getUserGroup.
- Specified by:
getUserGroup
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
UserGroup
object. - Throws:
DAOException
- if any.
-
getUserGroup
getUserGroup.
- Specified by:
getUserGroup
in interfaceIDAO
- Parameters:
name
- aString
object.- Returns:
- a
UserGroup
object. - Throws:
DAOException
- if any.
-
addUserGroup
addUserGroup.
- Specified by:
addUserGroup
in interfaceIDAO
- Parameters:
userGroup
- aUserGroup
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateUserGroup
updateUserGroup.
(non-Javadoc)- Specified by:
updateUserGroup
in interfaceIDAO
- Parameters:
userGroup
- aUserGroup
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.- See Also:
-
deleteUserGroup
deleteUserGroup.
- Specified by:
deleteUserGroup
in interfaceIDAO
- Parameters:
userGroup
- aUserGroup
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllBookmarkLists
getAllBookmarkLists.
- Specified by:
getAllBookmarkLists
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getPublicBookmarkLists
getPublicBookmarkLists.
- Specified by:
getPublicBookmarkLists
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getBookmarkLists
getBookmarkLists.
- Specified by:
getBookmarkLists
in interfaceIDAO
- Parameters:
user
- aUser
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getBookmarkListCount
Get number of bookmark lists owned by the given user- Specified by:
getBookmarkListCount
in interfaceIDAO
- Returns:
- number of owned bookmark lists
- Throws:
DAOException
-
getBookmarkList
getBookmarkList.
- Specified by:
getBookmarkList
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
BookmarkList
object. - Throws:
DAOException
- if any.
-
getBookmarkList
getBookmarkList.
- Specified by:
getBookmarkList
in interfaceIDAO
- Parameters:
name
- aString
object.user
- aUser
object.- Returns:
- a
BookmarkList
object. - Throws:
DAOException
- if any.
-
addBookmarkList
addBookmarkList.
- Specified by:
addBookmarkList
in interfaceIDAO
- Parameters:
bookmarkList
- aBookmarkList
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateBookmarkList
updateBookmarkList.
- Specified by:
updateBookmarkList
in interfaceIDAO
- Parameters:
bookmarkList
- aBookmarkList
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteBookmarkList
deleteBookmarkList.
- Specified by:
deleteBookmarkList
in interfaceIDAO
- Parameters:
bookmarkList
- aBookmarkList
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllRoles
getAllRoles.
- Specified by:
getAllRoles
in interfaceIDAO
- Returns:
- a
List
object. - 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:
getRole
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
Role
object. - Throws:
DAOException
- if any.
-
getRole
getRole.
- Specified by:
getRole
in interfaceIDAO
- Parameters:
name
- aString
object.- Returns:
- a
Role
object. - Throws:
DAOException
- if any.
-
addRole
addRole.
- Specified by:
addRole
in interfaceIDAO
- Parameters:
role
- aRole
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateRole
updateRole.
- Specified by:
updateRole
in interfaceIDAO
- Parameters:
role
- aRole
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteRole
deleteRole.
- Specified by:
deleteRole
in interfaceIDAO
- Parameters:
role
- aRole
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllUserRoles
getAllUserRoles.
- Specified by:
getAllUserRoles
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getUserRoleCount
Description copied from interface:IDAO
getUserRoleCount.
- Specified by:
getUserRoleCount
in interfaceIDAO
- Parameters:
userGroup
- aUserGroup
object.user
- aUser
object.role
- aRole
object.- Returns:
- Row count
- Throws:
DAOException
- if any.- See Also:
-
getUserRoles
getUserRoles.
- Specified by:
getUserRoles
in interfaceIDAO
- Parameters:
userGroup
- aUserGroup
object.user
- aUser
object.role
- aRole
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
addUserRole
addUserRole.
- Specified by:
addUserRole
in interfaceIDAO
- Parameters:
userRole
- aUserRole
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateUserRole
updateUserRole.
- Specified by:
updateUserRole
in interfaceIDAO
- Parameters:
userRole
- aUserRole
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteUserRole
deleteUserRole.
- Specified by:
deleteUserRole
in interfaceIDAO
- Parameters:
userRole
- aUserRole
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllLicenseTypes
getAllLicenseTypes.
- Specified by:
getAllLicenseTypes
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getRecordLicenseTypes
getRecordLicenseTypes.
- Specified by:
getRecordLicenseTypes
in interfaceIDAO
- Returns:
- a
List
object. - 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:
getLicenseTypes
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - 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:
getCoreLicenseTypes
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getLicenseType
getLicenseType.
- Specified by:
getLicenseType
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
LicenseType
object. - Throws:
DAOException
- if any.
-
getLicenseType
getLicenseType.
- Specified by:
getLicenseType
in interfaceIDAO
- Parameters:
name
- aString
object.- Returns:
- a
LicenseType
object. - Throws:
DAOException
- if any.
-
getLicenseTypes
Description copied from interface:IDAO
Returns all license types that match the given name list.- Specified by:
getLicenseTypes
in interfaceIDAO
- Returns:
- a
LicenseType
object. - Throws:
DAOException
- in case of errors- See Also:
-
getOverridingLicenseType
- Specified by:
getOverridingLicenseType
in interfaceIDAO
- Returns:
- List of license types overriding given licenseType
- Throws:
DAOException
- See Also:
-
addLicenseType
addLicenseType.
- Specified by:
addLicenseType
in interfaceIDAO
- Parameters:
licenseType
- aLicenseType
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateLicenseType
updateLicenseType.
- Specified by:
updateLicenseType
in interfaceIDAO
- Parameters:
licenseType
- aLicenseType
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteLicenseType
deleteLicenseType.
- Specified by:
deleteLicenseType
in interfaceIDAO
- Parameters:
licenseType
- aLicenseType
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllLicenses
getAllLicenses.
- Specified by:
getAllLicenses
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getLicense
getLicense.
- Specified by:
getLicense
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
License
object. - Throws:
DAOException
- if any.
-
getLicenses
- Specified by:
getLicenses
in interfaceIDAO
- Returns:
- List of
LicenseException
s of the given licenseType - Throws:
DAOException
- See Also:
-
getLicenseCount
Description copied from interface:IDAO
Returns the number of licenses that use the given license type.- Specified by:
getLicenseCount
in interfaceIDAO
- Returns:
- Number of existing
License
s of the given licenseType - Throws:
DAOException
- See Also:
-
getDownloadTicket
- Specified by:
getDownloadTicket
in interfaceIDAO
- Returns:
DownloadTicket
with the given id- Throws:
DAOException
-
getDownloadTicketByPasswordHash
- Specified by:
getDownloadTicketByPasswordHash
in interfaceIDAO
- Returns:
DownloadTicket
with the given passwordHash- Throws:
DAOException
-
getActiveDownloadTicketCount
getActiveDownloadTicketCount.
- Specified by:
getActiveDownloadTicketCount
in interfaceIDAO
- Parameters:
filters
- Selected filters- Returns:
- Number of found rows
- Throws:
DAOException
- if any.
-
getActiveDownloadTickets
public List<DownloadTicket> getActiveDownloadTickets(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOExceptiongetActiveDownloadTickets.
- Specified by:
getActiveDownloadTickets
in interfaceIDAO
- Parameters:
first
- First row indexpageSize
- Number of rowssortField
- aString
object.descending
- true if descending order requested; false otherwisefilters
- Selected filters- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getDownloadTicketRequests
- Specified by:
getDownloadTicketRequests
in interfaceIDAO
- Returns:
DownloadTicket
s with the requested status- Throws:
DAOException
-
addDownloadTicket
addDownloadTicket.
- Specified by:
addDownloadTicket
in interfaceIDAO
- Parameters:
downloadTicket
- aDownloadTicket
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateDownloadTicket
updateDownloadTicket.
- Specified by:
updateDownloadTicket
in interfaceIDAO
- Parameters:
downloadTicket
- aDownloadTicket
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteDownloadTicket
deleteDownloadTicket.
- Specified by:
deleteDownloadTicket
in interfaceIDAO
- Parameters:
downloadTicket
- aDownloadTicket
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllIpRanges
getAllIpRanges.
- Specified by:
getAllIpRanges
in interfaceIDAO
- Returns:
- a
List
object. - 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:
getIpRanges
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getIpRange
getIpRange.
- Specified by:
getIpRange
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
IpRange
object. - Throws:
DAOException
- if any.
-
getIpRange
getIpRange.
- Specified by:
getIpRange
in interfaceIDAO
- Parameters:
name
- aString
object.- Returns:
- a
IpRange
object. - Throws:
DAOException
- if any.
-
addIpRange
addIpRange.
- Specified by:
addIpRange
in interfaceIDAO
- Parameters:
ipRange
- aIpRange
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateIpRange
updateIpRange.
- Specified by:
updateIpRange
in interfaceIDAO
- Parameters:
ipRange
- aIpRange
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteIpRange
deleteIpRange.
- Specified by:
deleteIpRange
in interfaceIDAO
- Parameters:
ipRange
- aIpRange
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllCommentGroups
- Specified by:
getAllCommentGroups
in interfaceIDAO
- Returns:
- All existing
CommentGroup
s - Throws:
DAOException
- See Also:
-
getCommentGroupUnfiltered
- Specified by:
getCommentGroupUnfiltered
in interfaceIDAO
- Returns:
CommentGroup
- Throws:
DAOException
- See Also:
-
getCommentGroup
Description copied from interface:IDAO
getCommentGroup.
- Specified by:
getCommentGroup
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
CommentGroup
object. - Throws:
DAOException
- if any.- See Also:
-
addCommentGroup
Description copied from interface:IDAO
addCommentGroup.
- Specified by:
addCommentGroup
in interfaceIDAO
- Parameters:
commentGroup
- aCommentGroup
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.- See Also:
-
updateCommentGroup
Description copied from interface:IDAO
updateCommentGroup.
- Specified by:
updateCommentGroup
in interfaceIDAO
- Parameters:
commentGroup
- aCommentGroup
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.- See Also:
-
deleteCommentGroup
Description copied from interface:IDAO
deleteCommentGroup.
- Specified by:
deleteCommentGroup
in interfaceIDAO
- Parameters:
commentGroup
- aCommentGroup
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.- See Also:
-
getAllComments
getAllComments.
- Specified by:
getAllComments
in interfaceIDAO
- Returns:
- a
List
object. - 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:
getComments
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - 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:
getCommentsOfUser
in 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:
getCommentsForPage
in interfaceIDAO
- Parameters:
pi
- aString
object.page
- a int.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCommentsForWork
getCommentsForWork.
- Specified by:
getCommentsForWork
in interfaceIDAO
- Parameters:
pi
- aString
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getComment
getComment.
- Specified by:
getComment
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
Comment
object. - Throws:
DAOException
- if any.
-
addComment
addComment.
- Specified by:
addComment
in interfaceIDAO
- Parameters:
comment
- aComment
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateComment
updateComment.
- Specified by:
updateComment
in interfaceIDAO
- Parameters:
comment
- aComment
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteComment
deleteComment.
- Specified by:
deleteComment
in interfaceIDAO
- Parameters:
comment
- aComment
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
changeCommentsOwner
Changes ownership of all comments fromfromUser
totoUser
.- Specified by:
changeCommentsOwner
in interfaceIDAO
- Returns:
- Number of updated
Comment
s - Throws:
DAOException
- if any.
-
deleteComments
- Specified by:
deleteComments
in 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:
getPagesWithComments
in interfaceIDAO
- Parameters:
pi
- aString
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAllSearches
getAllSearches.
- Specified by:
getAllSearches
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getSearchCount
getSearchCount.
- Specified by:
getSearchCount
in interfaceIDAO
- Parameters:
owner
- aUser
object.filters
- aMap
object.- 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:
getSearches
in interfaceIDAO
- Parameters:
owner
- aUser
object.first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getSearches
getSearches.
- Specified by:
getSearches
in interfaceIDAO
- Parameters:
owner
- aUser
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getSearch
getSearch.
- Specified by:
getSearch
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
Search
object. - Throws:
DAOException
- if any.
-
addSearch
addSearch.
- Specified by:
addSearch
in interfaceIDAO
- Parameters:
search
- aSearch
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateSearch
updateSearch.
- Specified by:
updateSearch
in interfaceIDAO
- Parameters:
search
- aSearch
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteSearch
deleteSearch.
- Specified by:
deleteSearch
in interfaceIDAO
- Parameters:
search
- aSearch
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllDownloadJobs
getAllDownloadJobs.
- Specified by:
getAllDownloadJobs
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getDownloadJobsForPi
getDownloadJobsForPi.
- Specified by:
getDownloadJobsForPi
in interfaceIDAO
- Parameters:
pi
- Record identifier- Returns:
- List of
DownloadJob
s for given record identfier - Throws:
DAOException
-
getDownloadJob
getDownloadJob.
- Specified by:
getDownloadJob
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
DownloadJob
object. - Throws:
DAOException
- if any.
-
getDownloadJobByIdentifier
getDownloadJobByIdentifier.
- Specified by:
getDownloadJobByIdentifier
in interfaceIDAO
- Parameters:
identifier
- aString
object.- Returns:
- a
DownloadJob
object. - Throws:
DAOException
- if any.
-
getDownloadJobByMetadata
public DownloadJob getDownloadJobByMetadata(String type, String pi, String logId) throws DAOException getDownloadJobByMetadata.
- Specified by:
getDownloadJobByMetadata
in interfaceIDAO
- Parameters:
type
- aString
object.pi
- aString
object.logId
- aString
object.- Returns:
- a
DownloadJob
object. - Throws:
DAOException
- if any.
-
addDownloadJob
addDownloadJob.
- Specified by:
addDownloadJob
in interfaceIDAO
- Parameters:
downloadJob
- aDownloadJob
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateDownloadJob
updateDownloadJob.
- Specified by:
updateDownloadJob
in interfaceIDAO
- Parameters:
downloadJob
- aDownloadJob
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteDownloadJob
deleteDownloadJob.
- Specified by:
deleteDownloadJob
in interfaceIDAO
- Parameters:
downloadJob
- aDownloadJob
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getUploadJobsWithStatus
- Specified by:
getUploadJobsWithStatus
in interfaceIDAO
- Parameters:
status
-JobStatus
- Returns:
- List of
UploadJob
s with given status - Throws:
DAOException
-
getUploadJobsForCreatorId
- Specified by:
getUploadJobsForCreatorId
in interfaceIDAO
- Parameters:
creatorId
- User id of the creator- Returns:
UploadJob
s belonging to user with given ID- Throws:
DAOException
- if any.
-
addUploadJob
addDownloadJob.
- Specified by:
addUploadJob
in interfaceIDAO
- Parameters:
uploadJob
- aDownloadJob
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateUploadJob
updateDownloadJob.
- Specified by:
updateUploadJob
in interfaceIDAO
- Parameters:
uploadJob
- aDownloadJob
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteUploadJob
deleteDownloadJob.
- Specified by:
deleteUploadJob
in interfaceIDAO
- Parameters:
uploadJob
- aDownloadJob
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getAllCMSPages
getAllCMSPages.
- Specified by:
getAllCMSPages
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCmsPageForStaticPage
getCmsPageForStaticPage.
- Specified by:
getCmsPageForStaticPage
in interfaceIDAO
- Parameters:
pageName
- aString
object.- Returns:
- a
CMSPage
object. - 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:
getCMSPages
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.allowedTemplates
- aList
object.allowedSubthemes
- aList
object.allowedCategories
- aList
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCMSPagesWithRelatedPi
public List<CMSPage> getCMSPagesWithRelatedPi(int first, int pageSize, LocalDateTime fromDate, LocalDateTime toDate) throws DAOException getCMSPagesWithRelatedPi.
- Specified by:
getCMSPagesWithRelatedPi
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.fromDate
- aLocalDateTime
object.toDate
- aLocalDateTime
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
isCMSPagesForRecordHaveUpdates
public boolean isCMSPagesForRecordHaveUpdates(String pi, CMSCategory category, LocalDateTime fromDate, LocalDateTime toDate) throws DAOException isCMSPagesForRecordHaveUpdates.
- Specified by:
isCMSPagesForRecordHaveUpdates
in interfaceIDAO
- Parameters:
pi
- aString
object.category
- aCMSCategory
object.fromDate
- aLocalDateTime
object.toDate
- aLocalDateTime
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getCMSPageWithRelatedPiCount
public long getCMSPageWithRelatedPiCount(LocalDateTime fromDate, LocalDateTime toDate) throws DAOException getCMSPageWithRelatedPiCount.
- Specified by:
getCMSPageWithRelatedPiCount
in interfaceIDAO
- Parameters:
fromDate
- aLocalDateTime
object.toDate
- aLocalDateTime
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getCMSPageDefaultViewForRecord
- Specified by:
getCMSPageDefaultViewForRecord
in interfaceIDAO
- Parameters:
pi
- Record identifier- Returns:
CMSPage
- Throws:
DAOException
-
getCMSPage
getCMSPage.
- Specified by:
getCMSPage
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
CMSPage
object. - Throws:
DAOException
- if any.
-
addCMSPage
addCMSPage.
- Specified by:
addCMSPage
in interfaceIDAO
- Parameters:
page
- aCMSPage
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateCMSPage
updateCMSPage.
- Specified by:
updateCMSPage
in interfaceIDAO
- Parameters:
page
- aCMSPage
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteCMSPage
deleteCMSPage.
- Specified by:
deleteCMSPage
in interfaceIDAO
- Parameters:
page
- aCMSPage
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteCMSComponent
- Specified by:
deleteCMSComponent
in interfaceIDAO
- Throws:
DAOException
-
deleteCMSContent
- Specified by:
deleteCMSContent
in interfaceIDAO
- Throws:
DAOException
-
addCMSComponent
- Specified by:
addCMSComponent
in interfaceIDAO
- Throws:
DAOException
-
updatedCMSComponent
public boolean updatedCMSComponent(PersistentCMSComponent persistentCMSComponent) throws DAOException - Specified by:
updatedCMSComponent
in interfaceIDAO
- Throws:
DAOException
-
getCMSComponent
- Specified by:
getCMSComponent
in interfaceIDAO
- Throws:
DAOException
-
getAllCMSMediaItems
getAllCMSMediaItems.
- Specified by:
getAllCMSMediaItems
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAllCMSCollectionItems
getAllCMSCollectionItems.
- Specified by:
getAllCMSCollectionItems
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCMSMediaItemByFilename
getCMSMediaItemByFilename.
- Specified by:
getCMSMediaItemByFilename
in interfaceIDAO
- Parameters:
filename
- aString
object.- Returns:
- a
CMSMediaItem
object. - Throws:
DAOException
- if any.
-
getCMSMediaItem
getCMSMediaItem.
- Specified by:
getCMSMediaItem
in interfaceIDAO
- Parameters:
id
- a long.- Returns:
- a
CMSMediaItem
object. - Throws:
DAOException
- if any.
-
addCMSMediaItem
addCMSMediaItem.
- Specified by:
addCMSMediaItem
in interfaceIDAO
- Parameters:
item
- aCMSMediaItem
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateCMSMediaItem
updateCMSMediaItem.
- Specified by:
updateCMSMediaItem
in interfaceIDAO
- Parameters:
item
- aCMSMediaItem
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteCMSMediaItem
deleteCMSMediaItem.
- Specified by:
deleteCMSMediaItem
in interfaceIDAO
- Parameters:
item
- aCMSMediaItem
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getCMSMediaItemsByCategory
Get a list of allCMSMediaItem
s which contain the given category- Specified by:
getCMSMediaItemsByCategory
in interfaceIDAO
- Returns:
- all containing cmsPages
- Throws:
DAOException
-
getAllTranskribusJobs
getAllTranskribusJobs.
- Specified by:
getAllTranskribusJobs
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getTranskribusJobs
public List<TranskribusJob> getTranskribusJobs(String pi, String transkribusUserId, JobStatus status) throws DAOException getTranskribusJobs.
- Specified by:
getTranskribusJobs
in interfaceIDAO
- Parameters:
pi
- aString
object.transkribusUserId
- aString
object.status
- aJobStatus
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
addTranskribusJob
addTranskribusJob.
- Specified by:
addTranskribusJob
in interfaceIDAO
- Parameters:
job
- aTranskribusJob
object.- Returns:
- true if job added successfully; false otherwise
- Throws:
DAOException
- if any.
-
updateTranskribusJob
updateTranskribusJob.
- Specified by:
updateTranskribusJob
in interfaceIDAO
- Parameters:
job
- aTranskribusJob
object.- Returns:
- true if job updated successfully; false otherwise
- Throws:
DAOException
- if any.
-
deleteTranskribusJob
deleteTranskribusJob.
- Specified by:
deleteTranskribusJob
in interfaceIDAO
- Parameters:
job
- aTranskribusJob
object.- Returns:
- true if job deleted successfully; false otherwise
- Throws:
DAOException
- if any.
-
getAllCampaigns
getAllCampaigns.
- Specified by:
getAllCampaigns
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCampaignCount
getCampaignCount.
- Specified by:
getCampaignCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- 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:
getCampaigns
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCampaign
getCampaign.
- Specified by:
getCampaign
in interfaceIDAO
- Parameters:
id
- aLong
object.- Returns:
- a
Campaign
object. - Throws:
DAOException
- if any.
-
getQuestion
getQuestion.
- Specified by:
getQuestion
in interfaceIDAO
- Parameters:
id
- aLong
object.- Returns:
- a
Question
object. - Throws:
DAOException
- if any.
-
getCampaignStatisticsForRecord
public List<CampaignRecordStatistic> getCampaignStatisticsForRecord(String pi, CrowdsourcingStatus status) throws DAOException getCampaignStatisticsForRecord.
- Specified by:
getCampaignStatisticsForRecord
in interfaceIDAO
- Parameters:
pi
- aString
object.status
- aCrowdsourcingStatus
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCampaignPageStatisticsForRecord
public List<CampaignRecordPageStatistic> getCampaignPageStatisticsForRecord(String pi, CrowdsourcingStatus status) throws DAOException getCampaignPageStatisticsForRecord.
- Specified by:
getCampaignPageStatisticsForRecord
in interfaceIDAO
- Parameters:
pi
- aString
object.status
- aCrowdsourcingStatus
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
addCampaign
addCampaign.
- Specified by:
addCampaign
in interfaceIDAO
- Parameters:
campaign
- aCampaign
object.- Returns:
- true if campaign added successfully; false otherwise
- Throws:
DAOException
- if any.
-
updateCampaign
updateCampaign.
- Specified by:
updateCampaign
in interfaceIDAO
- Parameters:
campaign
- aCampaign
object.- Returns:
- true if campaign updated successfully; false otherwise
- Throws:
DAOException
- if any.
-
deleteCampaign
deleteCampaign.
- Specified by:
deleteCampaign
in interfaceIDAO
- Parameters:
campaign
- aCampaign
object.- Returns:
- true if campaign deleted successfully; false otherwise
- Throws:
DAOException
- if any.
-
deleteCampaignStatisticsForUser
Description copied from interface:IDAO
Deletes given user from the lists of annotators and reviewers an all campaign statistics.- Specified by:
deleteCampaignStatisticsForUser
in interfaceIDAO
- Returns:
- Number of affected campaigns
- Throws:
DAOException
- See Also:
-
changeCampaignStatisticContributors
Description copied from interface:IDAO
ReplacedfromUser
withtoUser
in the lists of annotators and reviewers an all campaign statistics.- Specified by:
changeCampaignStatisticContributors
in interfaceIDAO
- Returns:
- Number of updated rows
- Throws:
DAOException
- See Also:
-
checkAvailability
public boolean checkAvailability()- Specified by:
checkAvailability
in 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:
getUserGroupCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getRoleCount
getRoleCount.
- Specified by:
getRoleCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getLicenseTypeCount
getLicenseTypeCount.
- Specified by:
getLicenseTypeCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getCoreLicenseTypeCount
getCoreLicenseTypeCount.
- Specified by:
getCoreLicenseTypeCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getIpRangeCount
getIpRangeCount.
- Specified by:
getIpRangeCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getCommentCount
public long getCommentCount(Map<String, String> filters, User owner, Set<String> targetPIs) throws DAOExceptiongetCommentCount.
- Specified by:
getCommentCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- 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:
getCMSPageCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.allowedTemplates
- aList
object.allowedSubthemes
- aList
object.allowedCategories
- aList
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getAllStaticPages
getAllStaticPages.
- Specified by:
getAllStaticPages
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
addStaticPage
addStaticPage.
- Specified by:
addStaticPage
in interfaceIDAO
- Parameters:
page
- aCMSStaticPage
object.- Returns:
- Throws:
DAOException
- if any.
-
updateStaticPage
updateStaticPage.
- Specified by:
updateStaticPage
in interfaceIDAO
- Parameters:
page
- aCMSStaticPage
object.- Returns:
- true if page updated successfully; false otherwise
- Throws:
DAOException
- if any.
-
deleteStaticPage
deleteStaticPage.
- Specified by:
deleteStaticPage
in interfaceIDAO
- Parameters:
page
- aCMSStaticPage
object.- 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:
getStaticPageForCMSPage
in interfaceIDAO
- Parameters:
page
- aCMSPage
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.jakarta.persistence.NonUniqueResultException
-
getStaticPageForTypeType
getStaticPageForTypeType.
- Specified by:
getStaticPageForTypeType
in interfaceIDAO
- Parameters:
pageType
- aPageType
object.- Returns:
- a
Optional
object. - Throws:
DAOException
- if any.
-
getCMSCollections
getCMSCollections.
- Specified by:
getCMSCollections
in interfaceIDAO
- Parameters:
solrField
- aString
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
addCMSCollection
addCMSCollection.
- Specified by:
addCMSCollection
in interfaceIDAO
- Parameters:
collection
- aCMSCollection
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateCMSCollection
updateCMSCollection.
- Specified by:
updateCMSCollection
in interfaceIDAO
- Parameters:
collection
- aCMSCollection
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getCMSCollection
getCMSCollection.
- Specified by:
getCMSCollection
in interfaceIDAO
- Parameters:
solrField
- aString
object.solrFieldValue
- aString
object.- Returns:
- a
CMSCollection
object. - Throws:
DAOException
- if any.
-
deleteCMSCollection
deleteCMSCollection.
- Specified by:
deleteCMSCollection
in interfaceIDAO
- Parameters:
collection
- aCMSCollection
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getCMSPagesByCategory
getCMSPagesByCategory.
- Specified by:
getCMSPagesByCategory
in interfaceIDAO
- Parameters:
category
- aCMSCategory
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCMSPagesForSubtheme
- Specified by:
getCMSPagesForSubtheme
in interfaceIDAO
- Returns:
- List of
CMSPage
s that use given subtheme - Throws:
DAOException
-
getCMSPagesForRecord
getCMSPagesForRecord.
- Specified by:
getCMSPagesForRecord
in interfaceIDAO
- Parameters:
pi
- aString
object.category
- aCMSCategory
object.- Returns:
- a
List
object. - 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:
getAllCategories
in interfaceIDAO
- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getCountPagesUsingCategory
- Specified by:
getCountPagesUsingCategory
in interfaceIDAO
- Returns:
- Number of existing CMS pages having the given category
- Throws:
DAOException
-
getCountMediaItemsUsingCategory
- Specified by:
getCountMediaItemsUsingCategory
in interfaceIDAO
- Returns:
- Number of existing CMS media items having the given category
- Throws:
DAOException
-
addCategory
addCategory.
Persist a newCMSCategory
object- Specified by:
addCategory
in interfaceIDAO
- Parameters:
category
- aCMSCategory
object.- Returns:
- true if category added successfully; false otherwise
- Throws:
DAOException
- if any.
-
updateCategory
updateCategory.
Update an existingCMSCategory
object in the persistence context- Specified by:
updateCategory
in interfaceIDAO
- Parameters:
category
- aCMSCategory
object.- Returns:
- true if category updated successfully; false otherwise
- Throws:
DAOException
- if any.
-
deleteCategory
deleteCategory.
Delete aCMSCategory
object from the persistence context- Specified by:
deleteCategory
in interfaceIDAO
- Parameters:
category
- aCMSCategory
object.- Returns:
- true if category deleted successfully; false otherwise
- Throws:
DAOException
- if any.
-
getCategoryByName
getCategoryByName.
Search the persistence context for aCMSCategory
with the given name.- Specified by:
getCategoryByName
in interfaceIDAO
- Parameters:
name
- aString
object.- Returns:
- a
CMSCategory
object. - Throws:
DAOException
- if any.
-
getCategory
getCategory.
Search the persistence context for aCMSCategory
with the given unique id.- Specified by:
getCategory
in interfaceIDAO
- Parameters:
id
- aLong
object.- Returns:
- a
CMSCategory
object. - Throws:
DAOException
- if any.
-
tableExists
tableExists.
Check if the database contains a table of the given name. Used by backward-compatibility routines- Specified by:
tableExists
in interfaceIDAO
- Parameters:
tableName
- aString
object.- Returns:
- a boolean.
- Throws:
SQLException
DAOException
-
columnsExists
columnsExists.
Check if the database contains a column in a table with the given names. Used by backward-compatibility routines- Specified by:
columnsExists
in interfaceIDAO
- Parameters:
tableName
- aString
object.columnName
- aString
object.- Returns:
- a boolean.
- Throws:
SQLException
- if any.DAOException
-
getAnnotation
Annotations *- Specified by:
getAnnotation
in interfaceIDAO
- Parameters:
id
- aLong
object.- Returns:
- a
CrowdsourcingAnnotation
object. - Throws:
DAOException
- if any.
-
getAnnotationsForCampaign
public List<CrowdsourcingAnnotation> getAnnotationsForCampaign(Campaign campaign) throws DAOException getAnnotationsForCampaign.
- Specified by:
getAnnotationsForCampaign
in interfaceIDAO
- Parameters:
campaign
- aCampaign
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAnnotationsForWork
getAnnotationsForWork.
Get all annotations associated with the work of the given pi- Specified by:
getAnnotationsForWork
in interfaceIDAO
- Parameters:
pi
- aString
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAllAnnotations
public List<CrowdsourcingAnnotation> getAllAnnotations(String sortField, boolean descending) throws DAOException - Specified by:
getAllAnnotations
in interfaceIDAO
- Returns:
- List of all existing
CrowdsourcingAnnotation
s, optionally sorted by given sortField - Throws:
DAOException
-
getTotalAnnotationCount
- Specified by:
getTotalAnnotationCount
in interfaceIDAO
- Returns:
- Number of all existing
CrowdsourcingAnnotation
s - Throws:
DAOException
-
getAllAnnotationsByMotivation
public List<CrowdsourcingAnnotation> getAllAnnotationsByMotivation(String motivation) throws DAOException - Specified by:
getAllAnnotationsByMotivation
in interfaceIDAO
- Returns:
- List of
CrowdsourcingAnnotation
s matching given commenting - Throws:
DAOException
-
getAnnotationCountForWork
- Specified by:
getAnnotationCountForWork
in interfaceIDAO
- 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:
getAnnotationsForTarget
in interfaceIDAO
- Parameters:
pi
- aString
object.page
- aInteger
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAnnotationsForTarget
public List<CrowdsourcingAnnotation> getAnnotationsForTarget(String pi, Integer page, String motivation) throws DAOException - Specified by:
getAnnotationsForTarget
in interfaceIDAO
- Throws:
DAOException
-
getAnnotationCountForTarget
getAnnotationCountForTarget.
- Specified by:
getAnnotationCountForTarget
in interfaceIDAO
- Parameters:
pi
- aString
object.page
- aInteger
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getAnnotationsForCampaignAndWork
public List<CrowdsourcingAnnotation> getAnnotationsForCampaignAndWork(Campaign campaign, String pi) throws DAOException getAnnotationsForCampaignAndWork.
- Specified by:
getAnnotationsForCampaignAndWork
in interfaceIDAO
- Parameters:
campaign
- aCampaign
object.pi
- aString
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAnnotationsForCampaignAndTarget
public List<CrowdsourcingAnnotation> getAnnotationsForCampaignAndTarget(Campaign campaign, String pi, Integer page) throws DAOException getAnnotationsForCampaignAndTarget.
- Specified by:
getAnnotationsForCampaignAndTarget
in interfaceIDAO
- Parameters:
campaign
- aCampaign
object.pi
- aString
object.page
- aInteger
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAnnotationsForUserId
public List<CrowdsourcingAnnotation> getAnnotationsForUserId(Long userId, Integer maxResults, String sortField, boolean descending) throws DAOException - Specified by:
getAnnotationsForUserId
in interfaceIDAO
- Returns:
- List of
CrowdsourcingAnnotation
s 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:
getAnnotations
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - 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:
getAnnotations
in interfaceIDAO
- Returns:
- List of
CrowdsourcingAnnotation
s matching given filters - Throws:
DAOException
-
getAnnotationCount
getAnnotationCount.
- Specified by:
getAnnotationCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
addAnnotation
addAnnotation.
- Specified by:
addAnnotation
in interfaceIDAO
- Parameters:
annotation
- aCrowdsourcingAnnotation
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
updateAnnotation
updateAnnotation.
- Specified by:
updateAnnotation
in interfaceIDAO
- Parameters:
annotation
- aCrowdsourcingAnnotation
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
deleteAnnotation
deleteAnnotation.
- Specified by:
deleteAnnotation
in interfaceIDAO
- Parameters:
annotation
- aCrowdsourcingAnnotation
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
getGeoMap
Get theGeoMap
of the given mapId- Specified by:
getGeoMap
in interfaceIDAO
- Returns:
- The GeoMap of the given id or else null
- Throws:
DAOException
-
getAllGeoMaps
Get allGeoMap
s in database- Specified by:
getAllGeoMaps
in 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:
addGeoMap
in interfaceIDAO
- Returns:
- true if successful
- Throws:
DAOException
-
updateGeoMap
Update the givenGeoMap
in the database- Specified by:
updateGeoMap
in interfaceIDAO
- Returns:
- true if successful
- Throws:
DAOException
-
deleteGeoMap
Delete the givenGeoMap
from the database- Specified by:
deleteGeoMap
in interfaceIDAO
- Returns:
- true if successful
- Throws:
DAOException
-
getPagesUsingMap
Return a list of CMS-pages embedding the given map- Specified by:
getPagesUsingMap
in interfaceIDAO
- Returns:
- List of
CMSPage
s that use given map - Throws:
DAOException
-
getPagesUsingMapInSidebar
Return a list of CMS-pages embedding the given map in a sidebar widget- Specified by:
getPagesUsingMapInSidebar
in interfaceIDAO
- Returns:
- List of
CMSPage
s that use given map in sidebar - Throws:
DAOException
-
saveTermsOfUse
- Specified by:
saveTermsOfUse
in interfaceIDAO
- Throws:
DAOException
-
getTermsOfUse
- Specified by:
getTermsOfUse
in interfaceIDAO
- Throws:
DAOException
-
resetUserAgreementsToTermsOfUse
- Specified by:
resetUserAgreementsToTermsOfUse
in 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 ofCMSRecordNote
s- Specified by:
getRecordNotes
in interfaceIDAO
- Returns:
- List of
CMSPage
s that match the given filters - Throws:
DAOException
-
getAllRecordNotes
Get all persistedCMSRecordNote
s- Specified by:
getAllRecordNotes
in interfaceIDAO
- Returns:
- List of all existing
CMSSingleRecordNote
s - Throws:
DAOException
-
getRecordNotesForPi
public List<CMSSingleRecordNote> getRecordNotesForPi(String pi, boolean displayedNotesOnly) throws DAOException Get allCMSRecordNote
s for the given pi- Specified by:
getRecordNotesForPi
in interfaceIDAO
- Parameters:
pi
- The pi of the record.displayedNotesOnly
- set to true to only return notes withCMSRecordNote.isDisplayNote()
set to true- Returns:
- List of
CMSSingleRecordNote
s for the given pi - Throws:
DAOException
-
getAllMultiRecordNotes
public List<CMSMultiRecordNote> getAllMultiRecordNotes(boolean displayedNotesOnly) throws DAOException Get allCMSMultiRecordNote
s. To find notes relating to record, all notes must be check for matching query- Specified by:
getAllMultiRecordNotes
in interfaceIDAO
- Returns:
- List of all existing
CMSSingleRecordNote
s, optionaly filtered by displayed only - Throws:
DAOException
-
getRecordNote
Get aCMSRecordNote
by its id property- Specified by:
getRecordNote
in interfaceIDAO
- Returns:
CMSSingleRecordNote
with the given id- Throws:
DAOException
-
addRecordNote
Persist a newCMSRecordNote
.- Specified by:
addRecordNote
in interfaceIDAO
- Returns:
- true if note added successfully; false otherwise
- Throws:
DAOException
-
updateRecordNote
Updates an existingCMSRecordNote
- Specified by:
updateRecordNote
in interfaceIDAO
- Returns:
- true if note updated successfully; false otherwise
- Throws:
DAOException
-
deleteRecordNote
Deletes an existingCMSRecordNote
- Specified by:
deleteRecordNote
in interfaceIDAO
- Returns:
- true if note deleted successfully; false otherwise
- Throws:
DAOException
-
getAllSliders
- Specified by:
getAllSliders
in interfaceIDAO
- Throws:
DAOException
-
getSlider
- Specified by:
getSlider
in interfaceIDAO
- Throws:
DAOException
-
addSlider
- Specified by:
addSlider
in interfaceIDAO
- Throws:
DAOException
-
updateSlider
- Specified by:
updateSlider
in interfaceIDAO
- Throws:
DAOException
-
deleteSlider
- Specified by:
deleteSlider
in interfaceIDAO
- Throws:
DAOException
-
getPagesUsingSlider
- Specified by:
getPagesUsingSlider
in interfaceIDAO
- Throws:
DAOException
-
getConfiguredThemes
- Specified by:
getConfiguredThemes
in interfaceIDAO
- Throws:
DAOException
-
getTheme
- Specified by:
getTheme
in interfaceIDAO
- Throws:
DAOException
-
addTheme
- Specified by:
addTheme
in interfaceIDAO
- Throws:
DAOException
-
updateTheme
- Specified by:
updateTheme
in interfaceIDAO
- Throws:
DAOException
-
deleteTheme
- Specified by:
deleteTheme
in interfaceIDAO
- Throws:
DAOException
-
getAllCustomWidgets
- Specified by:
getAllCustomWidgets
in interfaceIDAO
- Throws:
DAOException
-
getCustomWidget
- Specified by:
getCustomWidget
in interfaceIDAO
- Throws:
DAOException
-
addCustomWidget
- Specified by:
addCustomWidget
in interfaceIDAO
- Throws:
DAOException
-
updateCustomWidget
- Specified by:
updateCustomWidget
in interfaceIDAO
- Throws:
DAOException
-
deleteCustomWidget
- Specified by:
deleteCustomWidget
in interfaceIDAO
- Throws:
DAOException
-
getPagesUsingWidget
- Specified by:
getPagesUsingWidget
in interfaceIDAO
- Throws:
DAOException
-
getCookieBanner
- Specified by:
getCookieBanner
in interfaceIDAO
- Throws:
DAOException
-
saveCookieBanner
- Specified by:
saveCookieBanner
in interfaceIDAO
- Throws:
DAOException
-
saveDisclaimer
- Specified by:
saveDisclaimer
in interfaceIDAO
- Throws:
DAOException
-
getDisclaimer
Get the single storedDisclaimer
. May return null if no disclaimer has been persisted yet- Specified by:
getDisclaimer
in interfaceIDAO
- Returns:
- the disclaimer or null
- Throws:
DAOException
-
getNumRecordsWithComments
- Specified by:
getNumRecordsWithComments
in interfaceIDAO
- Throws:
DAOException
-
getNativeQueryResults
- Specified by:
getNativeQueryResults
in interfaceIDAO
- Throws:
DAOException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceIDAO
- Throws:
DAOException
-
getAllClientApplications
- Specified by:
getAllClientApplications
in interfaceIDAO
- Throws:
DAOException
-
getClientApplication
- Specified by:
getClientApplication
in interfaceIDAO
- Throws:
DAOException
-
getClientApplicationByClientId
- Specified by:
getClientApplicationByClientId
in interfaceIDAO
- Throws:
DAOException
-
saveClientApplication
- Specified by:
saveClientApplication
in interfaceIDAO
- Throws:
DAOException
-
deleteClientApplication
- Specified by:
deleteClientApplication
in interfaceIDAO
- Throws:
DAOException
-
getAllUsageStatistics
- Specified by:
getAllUsageStatistics
in interfaceIDAO
- Throws:
DAOException
-
getUsageStatistics
- Specified by:
getUsageStatistics
in interfaceIDAO
- Throws:
DAOException
-
getUsageStatistics
public List<DailySessionUsageStatistics> getUsageStatistics(LocalDate start, LocalDate end) throws DAOException - Specified by:
getUsageStatistics
in interfaceIDAO
- Throws:
DAOException
-
addUsageStatistics
- Specified by:
addUsageStatistics
in interfaceIDAO
- Throws:
DAOException
-
updateUsageStatistics
- Specified by:
updateUsageStatistics
in interfaceIDAO
- Throws:
DAOException
-
deleteUsageStatistics
- Specified by:
deleteUsageStatistics
in interfaceIDAO
- Throws:
DAOException
-
getAllCMSPageTemplates
- Specified by:
getAllCMSPageTemplates
in interfaceIDAO
- Throws:
DAOException
-
getCMSPageTemplate
- Specified by:
getCMSPageTemplate
in interfaceIDAO
- Throws:
DAOException
-
addCMSPageTemplate
- Specified by:
addCMSPageTemplate
in interfaceIDAO
- Throws:
DAOException
-
updateCMSPageTemplate
- Specified by:
updateCMSPageTemplate
in interfaceIDAO
- Throws:
DAOException
-
removeCMSPageTemplate
- Specified by:
removeCMSPageTemplate
in interfaceIDAO
- Throws:
DAOException
-
addViewerMessage
- Specified by:
addViewerMessage
in interfaceIDAO
- Throws:
DAOException
-
deleteViewerMessage
- Specified by:
deleteViewerMessage
in interfaceIDAO
- Throws:
DAOException
-
getViewerMessage
- Specified by:
getViewerMessage
in interfaceIDAO
- Throws:
DAOException
-
updateViewerMessage
- Specified by:
updateViewerMessage
in interfaceIDAO
- Throws:
DAOException
-
getViewerMessageByMessageID
- Specified by:
getViewerMessageByMessageID
in interfaceIDAO
- Throws:
DAOException
-
deleteViewerMessagesBefore
- Specified by:
deleteViewerMessagesBefore
in 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:IDAO
getViewerMessages.
- Specified by:
getViewerMessages
in interfaceIDAO
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.descending
- a boolean.filters
- aMap
object.- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getViewerMessageCount
getViewerMessageCount.
- Specified by:
getViewerMessageCount
in interfaceIDAO
- Parameters:
filters
- aMap
object.- Returns:
- a long.
- Throws:
DAOException
- if any.
-
getRecurringTaskTriggers
- Specified by:
getRecurringTaskTriggers
in interfaceIDAO
- Throws:
DAOException
-
getRecurringTaskTrigger
- Specified by:
getRecurringTaskTrigger
in interfaceIDAO
- Throws:
DAOException
-
getRecurringTaskTriggerForTask
- Specified by:
getRecurringTaskTriggerForTask
in interfaceIDAO
- Throws:
DAOException
-
addRecurringTaskTrigger
- Specified by:
addRecurringTaskTrigger
in interfaceIDAO
- Throws:
DAOException
-
updateRecurringTaskTrigger
- Specified by:
updateRecurringTaskTrigger
in interfaceIDAO
- Throws:
DAOException
-
deleteRecurringTaskTrigger
- Specified by:
deleteRecurringTaskTrigger
in interfaceIDAO
- Throws:
DAOException
-
addHighlight
- Specified by:
addHighlight
in interfaceIDAO
- Throws:
DAOException
-
updateHighlight
- Specified by:
updateHighlight
in interfaceIDAO
- Throws:
DAOException
-
deleteHighlight
- Specified by:
deleteHighlight
in interfaceIDAO
- Throws:
DAOException
-
getHighlight
- Specified by:
getHighlight
in interfaceIDAO
- Throws:
DAOException
-
getAllHighlights
- Specified by:
getAllHighlights
in interfaceIDAO
- Throws:
DAOException
-
getHighlightsForDate
- Specified by:
getHighlightsForDate
in 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:
getPastHighlightsForDate
in 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:
getFutureHighlightsForDate
in interfaceIDAO
- Throws:
DAOException
-
getHighlights
public List<HighlightData> getHighlights(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) throws DAOException- Specified by:
getHighlights
in interfaceIDAO
- Throws:
DAOException
-