liferay

Liferay startup takes way too long

↘锁芯ラ 提交于 2019-12-21 09:35:56
问题 I'm new to Liferay developing and I’m facing troubles with the startup of my Liferay Tomcat server. It takes almost 3 minutes (169048 ms) which is unacceptable for development. I’d like to get it down to about one minute. Here are the specs of my machine: Intel Core Duo T2300 @ 1.66GHz 4GB RAM (3.24GB in use) Windows 7 Enterprise 32 bit with Service Pack 1 I’m using: Liferay 6.1.1-ce-ga2 bundled with Tomcat 7 Eclipse IDE Juno Release In order to speed things up, I’ve: removed all unnecessary

Integrating Liferay and Alfresco

半腔热情 提交于 2019-12-21 05:14:21
问题 Im using Liferay version 5.2.3 and Alfresco Community Edition.I want to integrate Alfresco with Liferay . I want to show Alfresco as a portlet within Liferay. Can someone please tell me how to go about doing this ? Thank You 回答1: There are a couple well-travelled links on the liferay community site. The most often recommended is this one ... http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Full+Integration+-+Liferay,+Alfresco,+SSO+and+LDAP This one describes a more basic setup :

How to prevent users from deleting a liferay portlet?

爷,独闯天下 提交于 2019-12-21 05:13:14
问题 I have an IFrame portlet in a liferay page. I want some quick fix to prevent logged in users from deleting that portlet. It can be done via user roles, css, code, or whatever. Is this possible? 回答1: I would suggest modifying your themes portlet.vm template. It's pretty straight forward, if you take a quick look at the sevencogs theme: #if ($portlet_display.isShowBackIcon()) <a href="$portlet_back_url" class="portlet-icon-back">#language ("return-to-full-page")</a> #else $theme.iconOptions()

Dynamic columns in liferay-ui:search-container?

天涯浪子 提交于 2019-12-21 03:46:19
问题 I have tried the liferay-ui:search-container to fetch and display the database table records on UI in a table/grid format. By using the liferay-ui:search-container I am getting the output as shown below, I am fetching the USER_ table records in the above screen shot. Problem: I wanted to make the grid columns dynamic like, I wanted to enable an option for end user to remove the unwanted columns and add the wanted columns in the respective grid/table. EX: In the above screen shot the the

Removing Custom Permissions/Actions from a Portlet

独自空忆成欢 提交于 2019-12-21 02:49:09
问题 I have been able to define custom portlet actions/permissions based on this example in Liferay Plugins SDK https://github.com/liferay/liferay-plugins/tree/master/portlets/sample-permissions-portlet I want to know the necessary steps I need to take to remove the custom portlet actions/permissions (not model permissions) from a portlet. I remember observing that when I re-deploy a portlet with modified custom actions/permissions, the old custom actions/permissions stick around. I tried deleting

How to get global (company) group id in Liferay?

喜夏-厌秋 提交于 2019-12-20 19:42:39
问题 How to get the global (company) group id in Liferay without accessing ThemeDisplay ? P.S.: with ThemeDisplay it is simple: themeDisplay.getCompanyGroupId() . 回答1: When you have only one Company in your portal: Company company = CompanyLocalServiceUtil.getCompanyByMx(PropsUtil.get(PropsKeys.COMPANY_DEFAULT_WEB_ID)); long globalGroupId = company.getGroup().getGroupId(); 回答2: Extending yellow's answer, you can find the company if you know some value of the Portal Instance ( Company ): If you

Remove java exception breakpoints when debugging Liferay in eclipse

三世轮回 提交于 2019-12-20 10:58:08
问题 By debugging of Liferay Portal, that is tomcat application, eclipse make usual stop at ThreadPoolExecutor$Worker.run() line: 912 although I don't set a breakpoint at this class. The ThreadPoolExecutor isn't a class of my application, I think that belongs to tomcat. My Question is: what is wrong here, and why eclipse stopt here? And is it possible to set such "external breakpoints" in eclipse to ignore? 回答1: You can fix this immediately by opening the Markers view and delete the Java Exception

How to download documents from liferay from outside application ..using liferay jsonws or any other way

纵然是瞬间 提交于 2019-12-20 07:59:05
问题 Hi i am using liferay/api/secure/jsonws services to upload documents, getting documents, from a outside application , in the same way i want to download the documents also, i checked my liferay jsonws , there is no method or service which i can use for download , or i don't know about it , please suggest me a way to download documents from outside application , by using jsonws or any other way is also fine. Edit after i got to know how to download document. Hi I tried to download liferay

i am getting error while using skype gradle dependencies in liferay portlet

一世执手 提交于 2019-12-20 07:37:08
问题 I am developing a project in Liferay portlet where I have to use skype Gradle dependencies to send a message on skype group. I put the dependencies (compile group: 'com.github.taksan', name: 'skype-java-API', version: '1.7') in build.gradle and deployed. It's working fine. But whenever I import or use the skype package, I am getting an error like Unresolved requirement: Import-Package: com.skype_ [Sanitized] how to resolve this problem and if possible could you give me a code or suggestion?

How to fix an error `Java heap space` when downloading large files (GB) using Liferay

时间秒杀一切 提交于 2019-12-20 06:27:41
问题 I am using this code to download an existing file from the server on Liferay (6.2) into a local pc: ` File file = getFile(diskImage.getImageType(), diskImage.getId()); HttpServletRequest httpReq = PortalUtil.getHttpServletRequest(request); HttpServletResponse httpResp = PortalUtil.getHttpServletResponse(response); httpResp.setContentType("application/octet-stream"); httpResp.setHeader("Content-Transfer-Encoding", "binary"); httpResp.setHeader("Content-Length", String.valueOf(file.length()));