/** * @param sName * @param dParentDirectory * @return ItemManager ID */ protected static String createID(String sName, Directory dParentDirectory) { return MD5Processor.hash( new StringBuilder(dParentDirectory.getDevice().getName()) .append(dParentDirectory.getRelativePath()) .append(sName) .toString()); }
/** * Return hashcode for this item * * @param sName item name * @return ItemManager ID */ protected static String createID(String sName) { return MD5Processor.hash(sName); }
/** * Return hashcode for this item. * * @param sName item name * @param discId DOCUMENT_ME * @return ItemManager ID */ protected static String createID(String sName, long discId) { return MD5Processor.hash(sName + discId); }