예제 #1
0
 /**
  * @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());
 }
예제 #2
0
 /**
  * Return hashcode for this item
  *
  * @param sName item name
  * @return ItemManager ID
  */
 protected static String createID(String sName) {
   return MD5Processor.hash(sName);
 }
예제 #3
0
 /**
  * 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);
 }