|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fckeditor.handlers.ExtensionsHandler
public class ExtensionsHandler
Handler which manages the allowed and denied extensions for each resource type. The
extensions are preset by the properties managed by PropertiesLoader
.
Hint: It's recommend to use either allowed or denied extensions for one file type.
Never use both at the same time! That's why denied extensions of a file type will be
deleted, if you set the allowed one and vice versa.
Constructor Summary | |
---|---|
ExtensionsHandler()
|
Method Summary | |
---|---|
static java.util.Set<java.lang.String> |
getExtensionsAllowed(ResourceTypeHandler type)
Getter for the allowed extensions of a file type. |
static java.util.Set<java.lang.String> |
getExtensionsDenied(ResourceTypeHandler type)
Getter for the denied extensions of a file type. |
static boolean |
isAllowed(ResourceTypeHandler type,
java.lang.String extension)
Checks, if an extension is allowed for a file type. |
static void |
setExtensionsAllowed(ResourceTypeHandler type,
java.lang.String extensionsList)
Setter for the allowed extensions of a file type. |
static void |
setExtensionsDenied(ResourceTypeHandler type,
java.lang.String extensionsList)
Setter for the denied extensions of a file type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionsHandler()
Method Detail |
---|
public static java.util.Set<java.lang.String> getExtensionsAllowed(ResourceTypeHandler type)
type
- The file type.
public static void setExtensionsAllowed(ResourceTypeHandler type, java.lang.String extensionsList)
type
- The file type.extensionsList
- Required format: ext1|ext2|ext3
public static java.util.Set<java.lang.String> getExtensionsDenied(ResourceTypeHandler type)
type
- The file type.
public static void setExtensionsDenied(ResourceTypeHandler type, java.lang.String extensionsList)
type
- The file type.extensionsList
- Required format: ext1|ext2|ext3
public static boolean isAllowed(ResourceTypeHandler type, java.lang.String extension)
type
- extension
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |