com.liferay.document.library.internal.util.DLValidatorImpl
@Deprecated
public final class DLValidatorImpl
extends Object
implements com.liferay.document.library.kernel.util.DLValidator
Constructor and Description |
---|
DLValidatorImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
fixName(String name)
Deprecated.
|
boolean |
isValidName(String name)
Deprecated.
|
protected String |
replaceDLCharLastBlacklist(String title)
Deprecated.
|
protected String |
replaceDLNameBlacklist(String title)
Deprecated.
|
void |
validateDirectoryName(String directoryName)
Deprecated.
|
void |
validateFileExtension(String fileName)
Deprecated.
|
void |
validateFileName(String fileName)
Deprecated.
|
void |
validateFileSize(String fileName,
byte[] bytes)
Deprecated.
|
void |
validateFileSize(String fileName,
File file)
Deprecated.
|
void |
validateFileSize(String fileName,
InputStream is)
Deprecated.
|
void |
validateFileSize(String fileName,
long size)
Deprecated.
|
void |
validateSourceFileExtension(String fileExtension,
String sourceFileName)
Deprecated.
|
void |
validateVersionLabel(String versionLabel)
Deprecated.
|
public String fixName(String name)
fixName
in interface com.liferay.document.library.kernel.util.DLValidator
public boolean isValidName(String name)
isValidName
in interface com.liferay.document.library.kernel.util.DLValidator
public void validateDirectoryName(String directoryName) throws com.liferay.document.library.kernel.exception.FolderNameException
validateDirectoryName
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.FolderNameException
public void validateFileExtension(String fileName) throws com.liferay.document.library.kernel.exception.FileExtensionException
validateFileExtension
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.FileExtensionException
public void validateFileName(String fileName) throws com.liferay.document.library.kernel.exception.FileNameException
validateFileName
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.FileNameException
public void validateFileSize(String fileName, byte[] bytes) throws com.liferay.document.library.kernel.exception.FileSizeException
validateFileSize
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.FileSizeException
public void validateFileSize(String fileName, File file) throws com.liferay.document.library.kernel.exception.FileSizeException
validateFileSize
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.FileSizeException
public void validateFileSize(String fileName, InputStream is) throws com.liferay.document.library.kernel.exception.FileSizeException
validateFileSize
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.FileSizeException
public void validateFileSize(String fileName, long size) throws com.liferay.document.library.kernel.exception.FileSizeException
validateFileSize
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.FileSizeException
public void validateSourceFileExtension(String fileExtension, String sourceFileName) throws com.liferay.document.library.kernel.exception.SourceFileNameException
validateSourceFileExtension
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.SourceFileNameException
public void validateVersionLabel(String versionLabel) throws com.liferay.document.library.kernel.exception.InvalidFileVersionException
validateVersionLabel
in interface com.liferay.document.library.kernel.util.DLValidator
com.liferay.document.library.kernel.exception.InvalidFileVersionException
protected String replaceDLCharLastBlacklist(String title)
protected String replaceDLNameBlacklist(String title)