public static String translateScriptProtect ( int scriptProtect ) { if ( scriptProtect == ApplicationContext . SCRIPT_PROTECT_NONE ) return "none" ; if ( scriptProtect == ApplicationContext . SCRIPT_PROTECT_ALL ) return "all" ; Array arr = new ArrayImpl ( ) ; if ( ( scriptProtect & ApplicationContext . SCRIPT_PROTECT_CGI ) > 0 ) arr . appendEL ( "cgi" ) ; if ( ( scriptProtect & ApplicationContext . SCRIPT_PROTECT_COOKIE ) > 0 ) arr . appendEL ( "cookie" ) ; if ( ( scriptProtect & ApplicationContext . SCRIPT_PROTECT_FORM ) > 0 ) arr . appendEL ( "form" ) ; if ( ( scriptProtect & ApplicationContext . SCRIPT_PROTECT_URL ) > 0 ) arr . appendEL ( "url" ) ; try { return ListUtil . arrayToList ( arr , "," ) ; } catch ( PageException e ) { return "none" ; } }
translate int definition of script protect to string definition