Class DefaultUpdatePolicyAnalyzer

    • Method Detail

      • isUpdatedRequired

        public boolean isUpdatedRequired​(RepositorySystemSession session,
                                         long lastModified,
                                         String policy)
        Description copied from interface: UpdatePolicyAnalyzer
        Determines whether the specified modification timestamp satisfies the freshness constraint expressed by the given update policy.
        Specified by:
        isUpdatedRequired in interface UpdatePolicyAnalyzer
        Parameters:
        session - The repository system session during which the check is made, must not be null.
        lastModified - The timestamp to check against the update policy.
        policy - The update policy, may be null.
        Returns:
        true if the specified timestamp is older than acceptable by the update policy, false otherwise.