com.ibm.portal.resolver.data
Interface DataSourceChecksum

All Superinterfaces:
Addressable, DataSource, DataSourceFragment, Disposable, TimeStamped
All Known Implementing Classes:
AbstractDataSource

public interface DataSourceChecksum
extends DataSource

Provides the checksum for a data source. May be optionally implemented by DataSource implementations.

Since:
8.0.0.1
Note:
This interface is designed to be implemented by clients.

Field Summary
static long NONE
          special checksum value indicating no checksum is available
 
Fields inherited from interface com.ibm.portal.resolver.data.DataSource
CONTENT_TYPE_UNKNOWN, CREATION_UNKNOWN, EXPIRATION_UNKNOWN, LAST_MODIFICATION_UNKNOWN, MAX_AGE_INFINITE, MAX_AGE_NONE, ROOT_DATE
 
Fields inherited from interface com.ibm.portal.resolver.data.Addressable
EMPTY_PARAMETERS
 
Method Summary
 long getChecksum()
          Returns the checksum of the data source.
 boolean isWeak()
          Returns whether this is a "strong" or "weak" checksum.
 
Methods inherited from interface com.ibm.portal.resolver.data.DataSource
getContentType, getCreated, getExpiration, getLastModified
 
Methods inherited from interface com.ibm.portal.resolver.data.Addressable
getParameters, getURI
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Field Detail

NONE

static final long NONE
special checksum value indicating no checksum is available

See Also:
Constant Field Values
Method Detail

getChecksum

long getChecksum()
Returns the checksum of the data source.

Returns:
the checksum of the data source. The special value NONE indicates that no checksum has been computed.

isWeak

boolean isWeak()
Returns whether this is a "strong" or "weak" checksum. A "strong" checksum changes, whenever any aspect of the resources the data source represents change, the "weak" checksum only changes when significant changes to the resources occured.

Returns:
true if the checksum is "weak", false otherwise.