|
||||||||||
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 |
NAMECONFLICT_ERROR
|
static int |
NAMECONFLICT_OVERWRITE
|
static int |
NAMECONFLICT_UNDEFINED
|
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 |
actionCopy(PageContext pc,
Resource directory,
String strDestination,
String serverPassword,
Object acl,
int storage,
ResourceFilter filter,
boolean recurse,
int nameconflict)
|
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 |
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 |
setDestination(String destination)
|
void |
setDirectory(String directory)
set the value directory The name of the directory to perform the action against. |
void |
setFilter(Object filter)
sets a 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 |
setNameconflict(String nameconflict)
set the value nameconflict Action to take if destination directory is the same as that of a file in the directory. |
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)
|
static int |
toNameconflict(String nameconflict)
|
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
public static final int NAMECONFLICT_ERROR
public static final int NAMECONFLICT_OVERWRITE
public static final int NAMECONFLICT_UNDEFINED
Constructor Detail |
---|
public Directory()
Method Detail |
---|
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class TagImpl
public void setFilter(Object filter) throws PageException
pattern
-
PageException
public void setFilter(UDF filter) throws PageException
PageException
public void setFilter(String pattern)
public void setAcl(String acl) throws ApplicationException
charset
- value to set
ApplicationException
public void setAcl(Object acl)
public void setStoreacl(Object acl)
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 setDestination(String destination)
public void setName(String name)
name
- value to setpublic void setRecurse(boolean recurse)
recurse
- The recurse to set.public void setNameconflict(String nameconflict) throws ApplicationException
nameconflict
- value to set
ApplicationException
public static int toNameconflict(String nameconflict) throws ApplicationException
ApplicationException
public int doStartTag() throws PageException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
PageException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class TagImpl
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 static void actionCopy(PageContext pc, Resource directory, String strDestination, String serverPassword, Object acl, int storage, ResourceFilter filter, boolean recurse, int nameconflict) 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 |