Dekoh platform API

dekoh.portal.fwk.persistence
Class Directory

java.lang.Object
  extended by dekoh.portal.fwk.persistence.Directory

public class Directory
extends Object

Directory is an Entity that represents URL to the directory containing DigitalObject. Together with fileName this forms the URL to the DigitalObject content.

Since:
Oct 17, 2006

Constructor Summary
protected Directory()
          Deprecated. Method Directory is deprecated
 
Method Summary
 boolean equals(Object o)
           
static Directory getDirectory(File dir, DIOEntityManager entityManager)
           
static Directory getDirectory(URL dirPath, DIOEntityManager entityManager)
           
 String getDirPath()
           
 int getId()
           
static Directory getOrCreateSearchDirectory(File dir, DIOEntityManager em)
           
static Directory getOrCreateSearchDirectory(URL dirPath, DIOEntityManager em)
           
 int hashCode()
           
protected  void setDirPath(String dirPath)
           
 File toFile()
          Convert the URL of the directory to a local file path.
static URL toURL(File file)
           
protected static void verifyDirLength(File dir)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Directory

protected Directory()
Deprecated. Method Directory is deprecated

Method Detail

getOrCreateSearchDirectory

public static Directory getOrCreateSearchDirectory(File dir,
                                                   DIOEntityManager em)

verifyDirLength

protected static void verifyDirLength(File dir)

getOrCreateSearchDirectory

public static Directory getOrCreateSearchDirectory(URL dirPath,
                                                   DIOEntityManager em)

getDirectory

public static Directory getDirectory(File dir,
                                     DIOEntityManager entityManager)
Parameters:
dir -
entityManager -
Returns:
Directory Entity if it exists,
Throws:
NoResultException - if no such Directory Entity exists.

getDirectory

public static Directory getDirectory(URL dirPath,
                                     DIOEntityManager entityManager)

getId

public int getId()

setDirPath

protected void setDirPath(String dirPath)

getDirPath

public String getDirPath()

toFile

public File toFile()
Convert the URL of the directory to a local file path.

Returns:

toURL

public static URL toURL(File file)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers