Skip to content

Instantly share code, notes, and snippets.

@amosfong
amosfong / gist:3619230
Created September 4, 2012 09:41
Groovy script to delete all user's comments and message board posts and then deactivates him
import com.liferay.portal.model.User;
import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portlet.messageboards.model.MBMessage;
import com.liferay.portlet.messageboards.model.MBThread;
import com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil;
import com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil;
import com.liferay.portlet.messageboards.NoSuchMessageException;
import com.liferay.portlet.messageboards.NoSuchThreadException;
// Screen Names of users you want to delete
<script>
alert(document.cookie);
</script>
04-Apr-2017 22:24:48.832 SEVERE [http-nio-8080-exec-8] org.apache.jasper.compiler.Compiler.generateClass Error compiling file: E:\EE_versions\7.0\liferay-dxp-di
gital-enterprise-7.0-sp1\work\com.liferay.osb.customer.journal.web-1.0.0\org\apache\jsp\article\custom_jsp.java
22:24:48,836 ERROR [http-nio-8080-exec-8][BaseJSPFormNavigatorEntry:54] Unable to include JSP /article/custom.jsp
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP__PWC6199: Generated servlet error:_a type with the same simple name is already de
fined by the single-type-import of com.liferay.dynamic.data.mapping.kernel.DDMStructure__PWC6197: An error occurred at line: 28 in the jsp file: /article/custom
.jsp_PWC6199: Generated servlet error:_cannot find symbol_ symbol: variable DDMStructureManagerUtil_ location: class org.apache.jsp.article.custom_jsp__ [Sa
nitized]
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)
at org.apache.jasper.compiler.ErrorDis
@amosfong
amosfong / Yithro
Last active January 22, 2020 01:13
TicketStructure
Add another field for scope (user or org)?
-name
-description
-structure (json)
-fields available
-field options available (based on conditions?)
-conditional fields
{