Modifier and Type | Field and Description |
---|---|
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_DEFAULT |
static int |
TYPE_ALL |
static int |
TYPE_DIR |
static int |
TYPE_FILE |
Constructor and Description |
---|
Directory() |
Modifier and Type | Method and Description |
---|---|
static void |
actionCopy(PageContext pc,
Resource directory,
String strDestination,
String serverPassword,
boolean createPath,
Object acl,
int storage,
ResourceFilter filter,
boolean recurse,
int nameconflict) |
static void |
actionCreate(PageContext pc,
Resource directory,
String serverPassword,
boolean createPath,
int mode,
Object acl,
int storage,
int nameConflict)
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,
boolean createPath,
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 |
setCreatepath(boolean createPath) |
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 |
setFilterdelimiters(String patternDelimiters) |
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) |
getParent, required, required, required, required, setPageContext, setPageContext, setParent
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_DEFAULT
public Directory()
public void release()
public void setCreatepath(boolean createPath)
public void setFilter(Object filter) throws PageException
filter
- PageException
public void setFilter(UDF filter) throws PageException
PageException
public void setFilterdelimiters(String patternDelimiters)
public void setAcl(String acl) throws ApplicationException
acl
- value to setApplicationException
public void setStoreacl(Object acl)
public void setStorage(String storage) throws PageException
storage
- value to setPageException
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 setPageException
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 setApplicationException
public int doStartTag() throws PageException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
PageException
public int 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 createPath, int mode, Object acl, int storage, int nameConflict) 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, boolean createPath, Object acl, int storage) throws PageException
PageException
public static void actionCopy(PageContext pc, Resource directory, String strDestination, String serverPassword, boolean createPath, Object acl, int storage, ResourceFilter filter, boolean recurse, int nameconflict) throws PageException
PageException
public void setType(String strType) throws ApplicationException
strType
- the type to setApplicationException
Copyright © 2015 Lucee