|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.webapps.bean
Class BeanFileFolder

java.lang.Objectcom.RuntimeCollective.webapps.bean.BeanFileFolder
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- WebFolder
- public class BeanFileFolder
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Object that represents a folder containing files associated with an EntityBean.
| Field Summary | |
protected javax.naming.directory.DirContext |
ivBaseContext
The base context for the webapp |
private java.lang.String |
ivBeanId
The id of the bean that this folder is for |
protected javax.naming.directory.DirContext |
ivContext
The context of this folder. |
protected java.lang.String |
ivDirBase
The base directory for this folder. |
private boolean |
ivValid
|
private static java.lang.String |
RESOURCES_ATTR
|
private static java.lang.String |
RESOURCES_JNDI_NAME
JNDI resources name. |
| Constructor Summary | |
BeanFileFolder(EntityBean bean,
java.lang.String dirBase)
Construct a folder for this bean and base directory. |
|
| Method Summary | |
boolean |
delete()
Delete this bean's folder, including all files. |
void |
deleteAllFiles()
Delete all the files in this bean's folder, but not the folder itself. |
java.util.Vector |
getAllFiles(java.io.FilenameFilter filter)
Find all the files in this bean's folder (and its subdirectories). |
javax.naming.directory.DirContext |
getContext()
Get the DirContext of the folder |
java.lang.String |
getDirUrl()
Get the URL, relative to the doc root, of the directory for this folder. |
java.lang.String |
getFilePath(java.lang.String fileName)
The path to a file within this folder. |
java.lang.String |
getPath()
The complete file path of this bean's folder. |
java.lang.Object |
getResource(java.lang.String fileName)
Get the JNDI resource associated with a file in this folder. |
boolean |
isValid()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
RESOURCES_ATTR
private static final java.lang.String RESOURCES_ATTR
- See Also:
- Constant Field Values
RESOURCES_JNDI_NAME
private static final java.lang.String RESOURCES_JNDI_NAME
- JNDI resources name.
- See Also:
- Constant Field Values
ivContext
protected javax.naming.directory.DirContext ivContext
- The context of this folder.
ivBaseContext
protected javax.naming.directory.DirContext ivBaseContext
- The base context for the webapp
ivDirBase
protected java.lang.String ivDirBase
- The base directory for this folder.
ivBeanId
private java.lang.String ivBeanId
- The id of the bean that this folder is for
ivValid
private boolean ivValid
| Constructor Detail |
BeanFileFolder
public BeanFileFolder(EntityBean bean, java.lang.String dirBase)
- Construct a folder for this bean and base directory.
If no such directory exists on
the file system, then one will be created.
| Method Detail |
getDirUrl
public java.lang.String getDirUrl()
- Get the URL, relative to the doc root, of the directory for this folder.
isValid
public boolean isValid()
getPath
public java.lang.String getPath()
- The complete file path of this bean's folder. (Not including trailing "/").
getFilePath
public java.lang.String getFilePath(java.lang.String fileName)
- The path to a file within this folder.
getContext
public javax.naming.directory.DirContext getContext()
- Get the DirContext of the folder
getResource
public java.lang.Object getResource(java.lang.String fileName) throws javax.naming.NamingException
- Get the JNDI resource associated with a file in this folder.
getAllFiles
public java.util.Vector getAllFiles(java.io.FilenameFilter filter)
- Find all the files in this bean's folder (and its subdirectories).
deleteAllFiles
public void deleteAllFiles()
throws java.lang.SecurityException
- Delete all the files in this bean's folder, but not the
folder itself.
delete
public boolean delete()
throws java.lang.SecurityException
- Delete this bean's folder, including all files.
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.RuntimeCollective.webapps.bean.BeanFileFolder