public interface UpdatePolicyAnalyzer
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEffectiveUpdatePolicy(RepositorySystemSession session,
java.lang.String policy1,
java.lang.String policy2)
Returns the policy with the shorter update interval.
|
boolean |
isUpdatedRequired(RepositorySystemSession session,
long lastModified,
java.lang.String policy)
Determines whether the specified modification timestamp satisfies the freshness constraint expressed by the given
update policy.
|
java.lang.String getEffectiveUpdatePolicy(RepositorySystemSession session, java.lang.String policy1, java.lang.String policy2)
session
- The repository system session during which the request is made, must not be null
.policy1
- A policy to compare, may be null
.policy2
- A policy to compare, may be null
.boolean isUpdatedRequired(RepositorySystemSession session, long lastModified, java.lang.String policy)
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
.true
if the specified timestamp is older than acceptable by the update policy, false
otherwise.