Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.sanitizer
Interface Sanitizer

All Known Implementing Classes:
BaseSanitizer, SanitizerWrapper

public interface Sanitizer


Field Summary
static String MODE_ALL
           
static String MODE_BAD_WORDS
           
static String MODE_XSS
           
 
Method Summary
 byte[] sanitize(long companyId, long groupId, long userId, String className, long classPK, String contentType, String[] modes, byte[] bytes, Map<String,Object> options)
           
 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)
           
 

Field Detail

MODE_ALL

static final String MODE_ALL
See Also:
Constant Field Values

MODE_BAD_WORDS

static final String MODE_BAD_WORDS
See Also:
Constant Field Values

MODE_XSS

static final String MODE_XSS
See Also:
Constant Field Values
Method Detail

sanitize

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

sanitize

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
Throws:
SanitizerException

sanitize

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

Liferay 6.1.2-ce-ga3