org.palo.api.subsets
Interface SubsetStorageHandler

All Known Implementing Classes:
SubsetIOHandler, SubsetStorageHandlerImpl

public interface SubsetStorageHandler

SubsetStorageHandler

A simple interface for handling storage related subset functionalities.

Version:
$Id: SubsetStorageHandler.html,v 1.5 2009/07/09 11:01:46 ArndHouben Exp $

Method Summary
 boolean canRead(int subsetType)
          Checks if current user is allowed to read any Subset2s of given type.
 boolean canWrite(int subsetType)
          Checks if current user is allowed to write any Subset2s of given type.
 void convert(Subset[] legacySubsets, int type, boolean remove)
          Tries to convert the given legacy subsets into new Subset2s of given type.
 void reset()
          Resets this storage handler.
 

Method Detail

canRead

boolean canRead(int subsetType)
Checks if current user is allowed to read any Subset2s of given type. The subset type must be one of the predefined subset type constants.

Parameters:
subsetType - a valid subset type constant
Returns:
true if user is allowed to read subsets of given type, false otherwise

canWrite

boolean canWrite(int subsetType)
Checks if current user is allowed to write any Subset2s of given type. The subset type must be one of the predefined subset type constants.

Parameters:
subsetType - a valid subset type constant
Returns:
true if user is allowed to write subsets of given type, false otherwise

convert

void convert(Subset[] legacySubsets,
             int type,
             boolean remove)
Tries to convert the given legacy subsets into new Subset2s of given type.

Parameters:
legacySubsets -
type -
remove -

reset

void reset()
Resets this storage handler. This will clear all internal used caches too.