This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/profile.d/lportal.sh | |
JAVA_HOME="/usr/java/jdk1.6.0_29" | |
JAVA_BIN="${JAVA_HOME}/bin" | |
LIFERAY_HOME="/app/liferay-portal-6.0.6" | |
JBOSS_HOME="${LIFERAY_HOME}/jboss-5.1.0" | |
JBOSS_USER=liferay | |
JBOSS_BIND_ADDR="0.0.0.0" | |
JBOSS_HOST="0.0.0.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $Id: jboss_init_redhat.sh 81068 2008-11-14 15:14:35Z [email protected] $ | |
# | |
# JBoss Control Script | |
# | |
# To use this script run it as root - it will switch to the specified user | |
# | |
# Here is a little (and extremely primitive) startup/shutdown script | |
# for RedHat systems. It assumes that JBoss lives in /usr/local/jboss, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## IFrame Portlet | |
## | |
# | |
# Specify a role name that a user must be associated with in order to | |
# configure the IFrame portlet to use the @password@ token. This token is | |
# used to post the password of users who access this portlet in order to | |
# automatically login to the framed site. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getPassword( | |
PortletRequest portletRequest, String password) | |
throws PortalException, SystemException { | |
if (!isPasswordTokenEnabled(portletRequest)) { | |
return StringPool.BLANK; | |
} | |
if (Validator.isNull(password) || password.equals("@password@")) { | |
password = PortalUtil.getUserPassword(portletRequest); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>it.dontesta.liferay.hook.sugarcrm</groupId> | |
<artifactId>liferay-hook-sugarcrm</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<name>LiferayHookSugarCRM</name> | |
<description>Maven Liferay 6.1 Hook Example</description> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
package it.shirus.labs.sugarcrm.client.soap; | |
import static org.junit.Assert.*; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.math.BigInteger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang='en_us'><body><script type="text/javascript" src="http://sugarcrmpgsql-shiruslabs.rhcloud.com/cache/include/javascript/sugar_grp1.js?v=QMfyElAturj9vuK-tY9lzw"></script> | |
<script type="text/javascript" src="http://sugarcrmpgsql-shiruslabs.rhcloud.com/cache/include/javascript/calendar.js?v=QMfyElAturj9vuK-tY9lzw"></script> | |
<form id="WebToLeadForm" action="http://sugarcrmpgsql-shiruslabs.rhcloud.com/index.php?entryPoint=WebToLeadCapture" method="POST" name="WebToLeadForm"> | |
<table style="border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; padding: 10px 6px 12px 10px; background-color: #e9f3ff; font-size: 12px; width: 100%; background-position: 50% 0%; background-repeat: repeat no-repeat;"> | |
<tbody> | |
<tr style="color: #0069e1; font-family: Arial,Verdana,Helvetica,sans-serif; font-size: 18px; font-weight: bold; margin-bottom: 0px; margin-top: 0px;" align="center"> | |
<td colspan="4"> | |
<h2>Web to lead form for Campaign</h2> | |
</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="SugarCRMProxy" | |
transports="http" | |
statistics="enable" | |
trace="enable" | |
startOnLoad="true"> | |
<target> | |
<outSequence> | |
<send/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sequence xmlns="http://ws.apache.org/ns/synapse" name="SugarCRMProxyLBAccessForbidden" trace="enable"> | |
<makefault version="soap11"> | |
<code xmlns:soap11Env="http://schemas.xmlsoap.org/soap/envelope/" value="soap11Env:VersionMismatch"/> | |
<reason value="403.6 - IP address rejected. Status code in response to a request from a client for a web page or resource to indicate that the server can be reached and understood the request, but refuses to take any further action. "/> | |
<role></role> | |
</makefault> | |
<send/> | |
</sequence> |