org.xiruss.repository.client.importers
Interface BosMemberNameGenerator

All Known Implementing Classes:
BosMemberNameGeneratorBase, DefaultBosMemberNameGenerator

public interface BosMemberNameGenerator

Classes that generate names for BOS members based on some business-case-specific heuristic, which could be hashing of filenames, use of absolute paths of input files, URLs, or a separately-created mapping from input files or storage objects to member name. BOS member names need not be unique within the BOS as BOS members have a separate key (i.e., their canonical file path).


Method Summary
 java.lang.String generateMemberName(java.lang.Object memberObj)
          Given a member object, returns a key that is unique across the current set of BOS members.
 void setBos(BoundedObjectSet bos)
          Makes the BOS under construction available to the key generator.
 

Method Detail

setBos

void setBos(BoundedObjectSet bos)
Makes the BOS under construction available to the key generator. The key generator should never mutate the BOS.

Parameters:
bos -

generateMemberName

java.lang.String generateMemberName(java.lang.Object memberObj)
Given a member object, returns a key that is unique across the current set of BOS members.

Returns:
member key value.