Package org.primefaces.util

Examples of org.primefaces.util.StringEncrypter.decrypt()


        if(dynamicContentId != null && library != null && library.equals(Constants.LIBRARY)) {
            StreamedContent streamedContent = null;
            boolean cache = Boolean.valueOf(params.get(Constants.DYNAMIC_CONTENT_CACHE_PARAM));
           
            try {
                String dynamicContentEL = strEn.decrypt(dynamicContentId);               
                ExternalContext externalContext = context.getExternalContext();
                
                if(dynamicContentEL != null) {
                    ELContext eLContext = context.getELContext();
                    ValueExpression ve = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), dynamicContentEL, StreamedContent.class);
View Full Code Here


                BarcodeGenerator generator = generators.get(params.get("gen"));
                String format = params.get("fmt");
                int orientation = Integer.parseInt(params.get("ori"));
                boolean cache = Boolean.valueOf(params.get(Constants.DYNAMIC_CONTENT_CACHE_PARAM));
                StringEncrypter strEn = RequestContext.getCurrentInstance().getEncrypter();
                String value = strEn.decrypt(encryptedValue);
               
                if(AgentUtils.isLessThanIE(context, 9)) {
                    format = "png";
                }
               
View Full Code Here

        String encryptedValue = (String) params.get(Constants.DYNAMIC_CONTENT_PARAM);
       
        if(encryptedValue != null) {
            boolean cache = Boolean.valueOf(params.get(Constants.DYNAMIC_CONTENT_CACHE_PARAM));
            StringEncrypter strEn = RequestContext.getCurrentInstance().getEncrypter();
            String value = strEn.decrypt(encryptedValue);               
            ExternalContext externalContext = context.getExternalContext();

            externalContext.setResponseStatus(200);
            externalContext.setResponseContentType("image/png");
           
View Full Code Here

        if(dynamicContentId != null && library != null && library.equals(Constants.LIBRARY)) {
            StreamedContent streamedContent = null;
            boolean cache = Boolean.valueOf(params.get(Constants.DYNAMIC_CONTENT_CACHE_PARAM));
           
            try {
                String dynamicContentEL = strEn.decrypt(dynamicContentId);               
                ExternalContext externalContext = context.getExternalContext();
                
                if(dynamicContentEL != null) {
                    ELContext eLContext = context.getELContext();
                    ValueExpression ve = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), dynamicContentEL, StreamedContent.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.