Interface I_CmsSubscriptionDriver

    • Method Detail

      • getDateLastVisitedBy

        long getDateLastVisitedBy​(CmsDbContext dbc,
                                  java.lang.String poolName,
                                  CmsUser user,
                                  CmsResource resource)
                           throws CmsException
        Returns the date when the resource was last visited by the user.

        Parameters:
        dbc - the database context
        poolName - the name of the database pool to use
        user - the user to check the date
        resource - the resource to check the date
        Returns:
        the date when the resource was last visited by the user
        Throws:
        CmsException - if something goes wrong
      • initSqlManager

        CmsSqlManager initSqlManager​(java.lang.String classname)
        Initializes the SQL manager for this driver.

        To obtain JDBC connections from different pools, further {online|offline|history} pool Urls have to be specified.

        Parameters:
        classname - the classname of the SQL manager
        Returns:
        the SQL manager for this driver
      • readSubscribedDeletedResources

        java.util.List<I_CmsHistoryResourcereadSubscribedDeletedResources​(CmsDbContext dbc,
                                                                            java.lang.String poolName,
                                                                            CmsUser user,
                                                                            java.util.List<CmsGroup> groups,
                                                                            CmsResource parent,
                                                                            boolean includeSubFolders,
                                                                            long deletedFrom)
                                                                     throws CmsDataAccessException
        Returns the subscribed history resources that were deleted.

        Parameters:
        dbc - the database context
        poolName - the name of the database pool to use
        user - the user that subscribed to the resource
        groups - the groups to check subscribed resources for
        parent - the parent resource (folder) of the deleted resources, if null all deleted resources will be returned
        includeSubFolders - indicates if the sub folders of the specified folder path should be considered, too
        deletedFrom - the time stamp from which the resources should have been deleted
        Returns:
        the subscribed history resources that were deleted
        Throws:
        CmsDataAccessException - if something goes wrong
      • readSubscribedResources

        java.util.List<CmsResourcereadSubscribedResources​(CmsDbContext dbc,
                                                            java.lang.String poolName,
                                                            CmsSubscriptionFilter filter)
                                                     throws CmsDataAccessException
        Returns the resources that were subscribed by a user or group set in the filter.

        Parameters:
        dbc - the database context
        poolName - the name of the database pool to use
        filter - the filter that is used to get the subscribed resources
        Returns:
        the resources that were subscribed by a user or group set in the filter
        Throws:
        CmsDataAccessException - if something goes wrong
      • unsubscribeAllDeletedResources

        void unsubscribeAllDeletedResources​(CmsDbContext dbc,
                                            java.lang.String poolName,
                                            long deletedTo)
                                     throws CmsDataAccessException
        Unsubscribes all deleted resources that were deleted before the specified time stamp.

        Parameters:
        dbc - the database context
        poolName - the name of the database pool to use
        deletedTo - the time stamp to which the resources have been deleted
        Throws:
        CmsDataAccessException - if something goes wrong