Skip to content

Instantly share code, notes, and snippets.

View jamesfalkner's full-sized avatar

James Falkner jamesfalkner

View GitHub Profile
#set ($portletNamespace = $request.portlet-namespace)
#if ($request.lifecycle == "RENDER_PHASE")
<div id="${portletNamespace}map"><!-- --></div>
<script type="text/javascript">
AUI().use(
"aui-base", "aui-io-plugin", "aui-io-request",
function(A) {
A.io.request(
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.6.0_29-b11-402-11M3527 (Apple Inc.)
Bundle-ManifestVersion: 2
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: Liferay, Inc.
Bundle-Version: 6.1.0
Export-Package: com.liferay;version="6.1.0",com.liferay.counter;versio
n="6.1.0",com.liferay.counter.model;version="6.1.0",com.liferay.count
er.model.impl;version="6.1.0",com.liferay.counter.service;version="6.
#* @vtlvariable name="portletNamespace" type="java.lang.String" *#
#* @vtlvariable name="portal" type="com.liferay.portal.util.Portal" *#
#* @vtlvariable name="getterUtil" type="com.liferay.portal.kernel.util.GetterUtil" *#
#* @vtlvariable name="stringUtil" type="com.liferay.portal.kernel.util.StringUtil" *#
#* @vtlvariable name="max-members" type="com.liferay.portlet.journal.util.TemplateNode" *#
#* @vtlvariable name="team-name" type="com.liferay.portlet.journal.util.TemplateNode" *#
#* @vtlvariable name="section-members" type="com.liferay.portlet.journal.util.TemplateNode" *#
#* @vtlvariable name="groupId" type="java.lang.String" *#
#* @vtlvariable name="sectionMembers" type="java.lang.String" *#
#* @vtlvariable name="locale" type="java.util.Locale" *#
Calendar now = Calendar.getInstance();
Calendar lastmonth = Calendar.getInstance();
lastmonth.add(Calendar.MONTH, -1);
DynamicQuery q = DynamicQueryFactoryUtil.forClass(MBThread.class);
/* threads with categoryId == -1 are for things other than message boards, like comments on blogs, etc */
q.add(RestrictionsFactoryUtil.ne("categoryId", -1L));
q.add(RestrictionsFactoryUtil.eq("groupId", 14L));
q.add(RestrictionsFactoryUtil.eq("companyId", 1L));
q.add(RestrictionsFactoryUtil.eq("status", 0L));
q.add(RestrictionsFactoryUtil.between("lastPostDate", now.getTime(), lastmonth.getTime()));
*** /tmp/gftmp/WEB-INF/liferay-web.xml 2012-01-04 17:58:10.000000000 -0500
--- ./liferay-web.xml 2012-01-12 15:55:40.672479775 -0500
***************
*** 402,415 ****
<filter-class>com.liferay.portal.servlet.filters.sso.cas.CASFilter</filter-class>
</filter>
<filter>
- <filter-name>SSO Ntlm Filter</filter-name>
- <filter-class>com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter</filter-class>
- </filter>
[#|2012-01-12T16:31:22.084-0500|SEVERE|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=main;|WebModule[]PWC1270: Exception starting filter Invoker Filter - REQUEST
java.lang.NoClassDefFoundError: javax/servlet/Filter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2128)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1317)
@jamesfalkner
jamesfalkner / Custom
Created January 23, 2012 16:50
Custom
package pt.agap2.custom_login;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@jamesfalkner
jamesfalkner / asd
Created January 23, 2012 16:51
asd
package pt.agap2.custom_login;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
./document_library/10154/0/document_thumbnail
./document_library/10154/0/document_thumbnail/10180
./document_library/10154/0/document_thumbnail/10180/229
./document_library/10154/0/document_thumbnail/10180/229/11493
./document_library/10154/0/document_thumbnail/10180/229/11493/11494.png
./document_library/10154/0/document_thumbnail/10180/229/11493/11494.png/1.0
./document_library/10154/0/document_thumbnail/10546
./document_library/10154/0/document_thumbnail/10546/207
./document_library/10154/0/document_thumbnail/10546/207/10703
./document_library/10154/0/document_thumbnail/10546/207/10703/10704.png
AUI().use("anim-color", "anim-easing", "aui-base", "aui-live-search", "liferay-poller", "stylesheet", "swfobject", function (a) {
var h = a.Lang;
var d = h.now;
var f = a.config.doc;
var e = a.config.win.webkitNotifications;
var c = 0;
var g = 1;
var b = '\u004e\u0065\u0077\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u0020\u0066\u0072\u006f\u006d\u0020\u007b\u0030\u007d';
Liferay.namespace("Chat");
a.one(f.documentElement).toggleClass("desktop-notifications", !!e);