|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.ext.tag.TagImpl
railo.runtime.tag.Directory
public final class Directory
Handles interactions with directories.
Field Summary | |
---|---|
static ResourceFilter |
DIRECTORY_FILTER
|
static ResourceFilter |
FILE_FILTER
|
static int |
LIST_INFO_ARRAY_NAME
|
static int |
LIST_INFO_ARRAY_PATH
|
static int |
LIST_INFO_QUERY_ALL
|
static int |
LIST_INFO_QUERY_NAME
|
static int |
TYPE_ALL
|
static int |
TYPE_DIR
|
static int |
TYPE_FILE
|
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
Directory()
|
Method Summary | |
---|---|
static void |
actionCreate(PageContext pc,
Resource directory,
String serverPassword,
boolean doParent,
int mode,
Object acl,
int storage)
create a directory |
static void |
actionDelete(PageContext pc,
Resource dir,
boolean forceDelete,
String serverPassword)
delete directory |
static Object |
actionList(PageContext pageContext,
Resource directory,
String serverPassword,
int type,
ResourceFilter filter,
ResourceAndResourceNameFilter nameFilter,
int listInfo,
boolean recurse,
String sort)
list all files and directories inside a directory |
static void |
actionRename(PageContext pc,
Resource directory,
String strNewdirectory,
String serverPassword,
Object acl,
int storage)
rename a directory to a new Name |
static ResourceAndResourceNameFilter |
createFilter(Object filter)
sets a filter |
static ResourceAndResourceNameFilter |
createFilter(String pattern)
|
static ResourceAndResourceNameFilter |
createFilter(UDF filter)
|
int |
doEndTag()
|
int |
doStartTag()
|
void |
release()
|
void |
setAcl(Object acl)
|
void |
setAcl(String acl)
set the value acl used only for s3 resources, for all others ignored |
void |
setAction(String action)
set the value action Defines the action to be taken with directory(ies) specified in directory. |
void |
setDirectory(String directory)
set the value directory The name of the directory to perform the action against. |
void |
setFilter(Object filter)
|
void |
setFilter(String pattern)
|
void |
setFilter(UDF filter)
|
void |
setListinfo(String strListinfo)
|
void |
setMode(String mode)
set the value mode Used with action = "Create" to define the permissions for a directory on UNIX and Linux platforms. |
void |
setName(String name)
set the value name Required for action = "list". |
void |
setNewdirectory(String newdirectory)
set the value newdirectory Required for action = "rename". |
void |
setRecurse(boolean recurse)
|
void |
setServerpassword(String serverPassword)
|
void |
setSort(String sort)
set the value sort Optional for action = "list". |
void |
setStorage(String storage)
set the value storage used only for s3 resources, for all others ignored |
void |
setStoreacl(Object acl)
|
void |
setStorelocation(String storage)
|
void |
setType(String strType)
|
Methods inherited from class railo.runtime.ext.tag.TagImpl |
---|
getParent, required, required, required, required, setPageContext, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_ALL
public static final int TYPE_FILE
public static final int TYPE_DIR
public static final ResourceFilter DIRECTORY_FILTER
public static final ResourceFilter FILE_FILTER
public static final int LIST_INFO_QUERY_ALL
public static final int LIST_INFO_QUERY_NAME
public static final int LIST_INFO_ARRAY_NAME
public static final int LIST_INFO_ARRAY_PATH
Constructor Detail |
---|
public Directory()
Method Detail |
---|
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class TagImpl
Tag.release()
public static ResourceAndResourceNameFilter createFilter(Object filter) throws PageException
pattern
-
PageException
public static ResourceAndResourceNameFilter createFilter(UDF filter) throws PageException
PageException
public static ResourceAndResourceNameFilter createFilter(String pattern) throws PageException
PageException
public void setFilter(Object filter) throws PageException
PageException
public void setFilter(UDF filter) throws PageException
PageException
public void setFilter(String pattern) throws PageException
PageException
public void setAcl(String acl) throws ApplicationException
charset
- value to set
ApplicationException
public void setAcl(Object acl) throws ApplicationException
ApplicationException
public void setStoreacl(Object acl) throws ApplicationException
ApplicationException
public void setStorage(String storage) throws PageException
charset
- value to set
PageException
public void setStorelocation(String storage) throws PageException
PageException
public void setServerpassword(String serverPassword)
public void setListinfo(String strListinfo)
public void setDirectory(String directory)
directory
- value to setpublic void setAction(String action)
action
- value to setpublic void setSort(String sort)
sort
- value to setpublic void setMode(String mode) throws PageException
mode
- value to set
PageException
public void setNewdirectory(String newdirectory)
newdirectory
- value to setpublic void setName(String name)
name
- value to setpublic void setRecurse(boolean recurse)
recurse
- The recurse to set.public int doStartTag() throws PageException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
PageException
Tag.doStartTag()
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class TagImpl
Tag.doEndTag()
public static Object actionList(PageContext pageContext, Resource directory, String serverPassword, int type, ResourceFilter filter, ResourceAndResourceNameFilter nameFilter, int listInfo, boolean recurse, String sort) throws PageException
PageException
public static void actionCreate(PageContext pc, Resource directory, String serverPassword, boolean doParent, int mode, Object acl, int storage) throws PageException
PageException
public static void actionDelete(PageContext pc, Resource dir, boolean forceDelete, String serverPassword) throws PageException
dir
- forceDelete
-
PageException
public static void actionRename(PageContext pc, Resource directory, String strNewdirectory, String serverPassword, Object acl, int storage) throws PageException
PageException
public void setType(String strType) throws ApplicationException
type
- the type to set
ApplicationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |