This file contains 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
<!DOCTYPE html><html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Video For Everybody Test Page</title> | |
<style type="text/css"> | |
body {width: 640px; margin: 0 auto 20px; | |
font: 11px "Helvetica Neue", Arial, sans-serif; color: #3b3d3c;} | |
</style> | |
</head> | |
<body> |
This file contains 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
2014-02-12 23:53:10,637 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - Try to connect to the URL https://www.goodreads.com/book/show/18734728-enterprise-integration-with-wso2-esb?from_search=true ... | |
2014-02-12 23:53:13,221 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - HTTP Response Code 200 | |
2014-02-12 23:53:13,221 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - HTTP Response Message OK | |
2014-02-12 23:53:13,221 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - HTTP Content Length -1 | |
2014-02-12 23:53:13,221 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - HTTP Content Type text/html; charset=utf-8 | |
2014-02-12 23:53:13,221 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - HTTP Cipher Suite TLS_RSA_WITH_AES_256_CBC_SHA | |
2014-02-12 23:53:13,221 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - Certificate Type X.509 | |
2014-02-12 23:53:13,222 [main] INFO it.dontesta.blog.ssl.HTTPSClientExample - Certificate Subject DN CN=*.goodreads.com, O=Goodreads, L=San Francisco, ST=Cal |
This file contains 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
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks | |
RewriteEngine On | |
# Replace <basepath> with the relative web root path to your instance | |
RewriteBase /<basepath> | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^rest/(.*)$ api/rest.php?__sugar_url=$1 [L,QSA] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f |
This file contains 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
SELECT DLFILEENTRY.REPOSITORYID, | |
(SUM(DLFILEENTRY.SIZE_) / 1048576) SIZE_MBYTE | |
FROM DLFILEENTRY | |
GROUP BY DLFILEENTRY.REPOSITORYID | |
ORDER BY SIZE_MBYTE; |
This file contains 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
$ curl -v http://localhost:8080/services/horses.xml | xmllint --format - | |
$ curl -v http://localhost:8080/services/horses.json | jsonlint - | |
## | |
# XML Output | |
## | |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<horses> | |
<count>3</count> | |
<horse> |
This file contains 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"?> | |
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd"> | |
<service-builder package-path="it.dontesta.shirus.labs.liferay.ws.example"> | |
<author>amusarra</author> | |
<namespace>shirus_labs_liferay_ws_example</namespace> | |
<entity name="CustomUsers" local-service="true" remote-service="true"> | |
</entity> | |
<exceptions> | |
<exception>UsersNotFound</exception> | |
</exceptions> |
This file contains 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 com.liferay.portal.model.UserSoap[] getUsersCompanyByTagName(long companyId, String tagName, | |
Integer userStatus, int start, int end) throws PortalException, | |
SystemException { | |
SearchContext searchContext = new SearchContext(); | |
searchContext.setCompanyId(companyId); | |
searchContext.setEntryClassNames(new String[] { User.class.getName() }); |
This file contains 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 UserSoap[] getUsersCompanyByTagName(long companyId, String tagName, | |
Integer userStatus, int start, int end) throws PortalException, | |
SystemException { | |
return CustomUsersLocalServiceUtil.getUsersCompanyByTagName(companyId, tagName, userStatus, start, end); | |
} |
This file contains 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 class TestGetUsersCompanyByTagNameService { | |
static final String LIFERAY_USER_NAME = (System.getProperty("username") != null) ? System | |
.getProperty("username") : "test@liferay.com"; | |
static final String LIFERAY_USER_PASSWORD = (System.getProperty("password") != null) ? System | |
.getProperty("username") : "test"; | |
static final String USER_SERVICE = "Portal_UserService"; | |
/** |
This file contains 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
curl http://localhost:8080/api/jsonws/ShirusLabsExampleServices-portlet.customusers/get-users-company-by-tag-name \ | |
-u test@liferay.com:test \ | |
-d companyId=10157 \ | |
-d tagName='crm' \ | |
-d userStatus=0 \ | |
-d start=0 \ | |
-d end=3 |
OlderNewer