de.uplanet.lucy.server.auxiliaries
Class FileUtil

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.FileUtil

@VelocityCallable(value="singleton")
public final class FileUtil
extends java.lang.Object

Version:
$Revision: 74995 $

Constructor Summary
FileUtil()
           
 
Method Summary
 boolean exists(java.lang.String p_strPath)
          Checks if the given path references a file system object within the portal.
 VMFileInfo getFileInfo(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, IValueHolder<?> p_vh, java.lang.String p_strPageGuid, java.lang.String p_strControlName)
           
 boolean isDirectory(java.lang.String p_strPath)
          Checks if the given path references a directory within the portal.
 boolean isFile(java.lang.String p_strPath)
          Checks if the given path references a file within the portal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

exists

public boolean exists(java.lang.String p_strPath)
               throws java.io.IOException
Checks if the given path references a file system object within the portal.

Parameters:
p_strPath - The path.
Returns:
true if the given path references a file system object within the portal, or false otherwise.
Throws:
java.io.IOException - If an I/O error occurred.
java.lang.SecurityException - If the given path references a file system object outside the portal.

isFile

public boolean isFile(java.lang.String p_strPath)
               throws java.io.IOException
Checks if the given path references a file within the portal.

Parameters:
p_strPath - The file path.
Returns:
true if the given path references a file within the portal, or false otherwise.
Throws:
java.io.IOException - If an I/O error occurred.
java.lang.SecurityException - If the given path references a file outside the portal.

isDirectory

public boolean isDirectory(java.lang.String p_strPath)
                    throws java.io.IOException
Checks if the given path references a directory within the portal.

Parameters:
p_strPath - The directory path.
Returns:
true if the given path references a directory within the portal, or false otherwise.
Throws:
java.io.IOException - If an I/O error occurred.
java.lang.SecurityException - If the given path references a directory outside the portal.

getFileInfo

public VMFileInfo getFileInfo(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                              IValueHolder<?> p_vh,
                              java.lang.String p_strPageGuid,
                              java.lang.String p_strControlName)
                       throws java.lang.Exception
Throws:
java.lang.Exception


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.