public class CmsUgcSessionSecurityUtil extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCreateContent(CmsObject cms,
CmsUgcConfiguration config)
Checks whether a new XML content may be created and throws an exception if this is not the case.
|
static void |
checkCreateUpload(CmsObject cms,
CmsUgcConfiguration config,
java.lang.String name,
long size)
Checks whether an uploaded file can be created in the VFS, and throws an exception otherwise.
|
public static void checkCreateContent(CmsObject cms, CmsUgcConfiguration config) throws CmsUgcException
cms - the current CMS contextconfig - the form configurationCmsUgcException - if something goes wrongpublic static void checkCreateUpload(CmsObject cms, CmsUgcConfiguration config, java.lang.String name, long size) throws CmsUgcException
cms - the current CMS contextconfig - the form configurationname - the file name of the uploaded filesize - the size of the uploaded fileCmsUgcException - if something goes wrong