dekoh.portal.fwk.persistence
Class Directory
java.lang.Object
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 |
Directory
protected Directory()
- Deprecated. Method Directory is deprecated
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
© 2009 Pramati Technologies - Dekoh - Portal for Developers