portal

Portlet container like pluto or jetspeed on google app engine?

一个人想着一个人 提交于 2019-11-29 14:38:19
问题 I am trying to build something "portlet server"-ish on the google app engine. (as open source) I'd like to use the JSR168/286 standards, but I think that the restrictions of the app engine will make it somewhere between tricky and impossible. Has anyone tried to run jetspeed or an application that uses pluto internally on the google app engine? Based on my current knowledge of portlets and the google app engine I'm anticipating these problems: A war file with portlets is from the deployment

Serve PDF in Spring Portlet MVC Architecture - Liferay 6.0.6

自作多情 提交于 2019-11-28 08:50:29
I was looking for a way to send a PDF (direct display) file to the browser through Liferay Portal. Found many solutions - the most popular one being writing a Servlet that does the job. I've read about Portlet Resource Serving in JSR 286 Specification, can someone please elaborate on that for Spring 3.0 Portlet MVC? <servlet> <display-name>DownloadServlet</display-name> <servlet-name>DownloadServlet</servlet-name> <servlet-class>com.liferay.portal.pdf.DownloadServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>DownloadServlet</servlet-name> <url-pattern>/DownloadServlet/*</url

Get the current user Liferay using a simple Java code

走远了吗. 提交于 2019-11-28 08:29:05
I'm working with : Liferay 6.0.6 with JBoss 5.1 and Struts2 . My question is, how to get the current user in Liferay once logged in, using a Java code. In your doView/processAction method do following User user = (User) request.getAttribute(WebKeys.USER); or use the ThemeDisplay object. It contains another information like companyId, groupId, ... ThemeDisplay td =(ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY); User user = td.getUser(); Classes ThemeDisplay, User nad WebKeys are part of portal-service.jar. If you need just some id to identify current user you can also use String

Architecture for SaaS based online portal

心已入冬 提交于 2019-11-27 16:59:45
问题 We are planning to prepare a product "online clothing store" based on SaaS model. Different cloth vendors shall register to our portal. They will get web interface to manage own catalog of clothes. When end user register with the system, they can see different catalogs of different vendor. Of course they can do standard search, filter, sort etc on available products. After selection, they will order the items. Respective vendor shall get order of those items, which is selected from his

Serve PDF in Spring Portlet MVC Architecture - Liferay 6.0.6

我们两清 提交于 2019-11-27 02:27:55
问题 I was looking for a way to send a PDF (direct display) file to the browser through Liferay Portal. Found many solutions - the most popular one being writing a Servlet that does the job. I've read about Portlet Resource Serving in JSR 286 Specification, can someone please elaborate on that for Spring 3.0 Portlet MVC? <servlet> <display-name>DownloadServlet</display-name> <servlet-name>DownloadServlet</servlet-name> <servlet-class>com.liferay.portal.pdf.DownloadServlet</servlet-class> </servlet

Get the current user Liferay using a simple Java code

三世轮回 提交于 2019-11-27 02:13:36
问题 I'm working with : Liferay 6.0.6 with JBoss 5.1 and Struts2 . My question is, how to get the current user in Liferay once logged in, using a Java code. 回答1: In your doView/processAction method do following User user = (User) request.getAttribute(WebKeys.USER); or use the ThemeDisplay object. It contains another information like companyId, groupId, ... ThemeDisplay td =(ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY); User user = td.getUser(); Classes ThemeDisplay, User nad WebKeys

JA-SIG(CAS)学习笔记2

安稳与你 提交于 2019-11-27 00:42:43
背景知识: 什么是SSO(Single Sign On)单点登录: 所谓单点登录是指基于用户/会话认证的一个过程,用户只需一次性提供凭证(仅一次登录),就可以访问多个应用。 目前单点登录主要基于Web的多种应用程序,即通过浏览器实现对多个B/S架构应用的统一账户认证。 JA-SIG(CAS)的设计愿景: 简单的说,CAS(Central Authentication Service – 中心认证服务)的目的就是使分布在一个企业内部各个不同异构系统的认证工作集中在一起,通过一个公用的认证系统统一管理和验证用户的身份。在CAS上认证的用户将获得CAS颁发的一个证书,使用这个证书,用户可以在承认CAS证书的各个系统上自由穿梭访问,不需要再次的登录认证。打个比方:对于加入欧盟的国家而言,在他们国家中的公民可以凭借着自己的身份证,在整个欧洲旅行,不用签证。对于企业内部系统而言,CAS就是这个颁发欧盟认证的系统,其它系统都是加入欧盟的国家,它们要共同遵守和承认CAS的认证规则。 因此CAS的设计愿景就是: 1。实现一个易用的、能跨不同Web应用的单点登录认证中心; 2。实现统一的用户身份和密钥管理,减少多套密码系统造成的管理成本和安全漏洞; 3。降低认证模块在IT系统设计中的耦合度,提供更好的SOA设计和更弹性的安全策略 CAS1.0服务架构实现: 传统的用户认证流程

WLAN认证技术

蹲街弑〆低调 提交于 2019-11-26 13:57:46
WLAN安全的发展历程 WLAN认证方式 开放系统认证   开放系统认证 Open system authentication 是缺省使用的认证机制,是最简单的认证算法,即不认证。 认证过程:   客户端发送一个认证请求给选定的AP   该AP发送一个认证成功响应报文给客户端确认该认证并在AP上注册客户端 优点:   开放认证是一个基本的验证机制,可以使用不支持复杂的认证算法的无线设备,802.11协议中认证是面向连接的,对于需要允许设备快速进入网络的场景,可使用开方式身份认证。 缺点:   开放认证没办法检验客户端是否是一个有效的客户端,而不是黑客客户端,如果使用不带WEP加密的开放认证,任何知道无线SSID的用户都可以访问网络。 应用场景:   开放系统认证也叫明文接入,既不关心客户端/用户认证问题,也不关心无线客户端与网络之间所交换数据的加密问题,这种类型的认证方式主要用户公共区域或热点区域,如机场酒店,大堂等 服务区标识符SSID匹配   无线客户端必须设置与无线访问点AP相同的SSID,才能访问AP;如果出示的SSID与AP的SSID不同,那么AP将拒绝它通过本服务区上网。利用SSID设置,可以很好的进行用户群体分组,避免任意漫游带来的安全问题和访问性能问题。可以通过设置隐藏接入点及SSID区域的划分和权限控制来达到保密的目的,因此可以认为SSID是一个简单的口令