Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.sanitizer
Class BaseSanitizer

java.lang.Object
  extended by com.liferay.portal.kernel.sanitizer.BaseSanitizer
All Implemented Interfaces:
Sanitizer

public abstract class BaseSanitizer
extends Object
implements Sanitizer


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.sanitizer.Sanitizer
MODE_ALL, MODE_BAD_WORDS, MODE_XSS
 
Constructor Summary
BaseSanitizer()
           
 
Method Summary
 byte[] sanitize(long companyId, long groupId, long userId, String className, long classPK, String contentType, String[] modes, byte[] bytes, Map<String,Object> options)
           
abstract  void sanitize(long companyId, long groupId, long userId, String className, long classPK, String contentType, String[] modes, InputStream inputStream, OutputStream outputStream, Map<String,Object> options)
           
 String sanitize(long companyId, long groupId, long userId, String className, long classPK, String contentType, String[] modes, String s, Map<String,Object> options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSanitizer

public BaseSanitizer()
Method Detail

sanitize

public byte[] sanitize(long companyId,
                       long groupId,
                       long userId,
                       String className,
                       long classPK,
                       String contentType,
                       String[] modes,
                       byte[] bytes,
                       Map<String,Object> options)
                throws SanitizerException
Specified by:
sanitize in interface Sanitizer
Throws:
SanitizerException

sanitize

public abstract void sanitize(long companyId,
                              long groupId,
                              long userId,
                              String className,
                              long classPK,
                              String contentType,
                              String[] modes,
                              InputStream inputStream,
                              OutputStream outputStream,
                              Map<String,Object> options)
                       throws SanitizerException
Specified by:
sanitize in interface Sanitizer
Throws:
SanitizerException

sanitize

public String sanitize(long companyId,
                       long groupId,
                       long userId,
                       String className,
                       long classPK,
                       String contentType,
                       String[] modes,
                       String s,
                       Map<String,Object> options)
                throws SanitizerException
Specified by:
sanitize in interface Sanitizer
Throws:
SanitizerException

Liferay 6.1.2-ce-ga3