Skip to content

Commit

Permalink
Add source code
Browse files Browse the repository at this point in the history
Add source code
  • Loading branch information
alirezagoli committed Dec 30, 2020
1 parent 39e7108 commit 8b5e9c6
Show file tree
Hide file tree
Showing 243 changed files with 39,952 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-7-oracle">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=GuestDiscussion-portlet&amp;ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=%24%7Bliferay_sdk_dir%3AGuestDiscussion-portlet%7D%2Fivy-settings.xml&amp;loadSettingsOnDemand=false&amp;ivyUserDir=%24%7Bliferay_sdk_dir%3AGuestDiscussion-portlet%7D%2F.ivy&amp;propertyFiles=">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>
37 changes: 37 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>GuestDiscussion-portlet</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions .settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
7 changes: 7 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
3 changes: 3 additions & 0 deletions .settings/org.eclipse.jst.jsp.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
validateFragments=false
validation.use-project-settings=true
8 changes: 8 additions & 0 deletions .settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="GuestDiscussion-portlet">
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/>
<property name="context-root" value="GuestDiscussion-portlet"/>
<property name="java-output-path" value="/GuestDiscussion-portlet/docroot/WEB-INF/classes"/>
</wb-module>
</project-modules>
12 changes: 12 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.prefs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<root>
<facet id="liferay.portlet">
<node name="libprov">
<attribute name="provider-id" value="com.liferay.ide.eclipse.plugin.portlet.libraryProvider"/>
</node>
</facet>
<facet id="jst.jsf">
<node name="libprov">
<attribute name="provider-id" value="jsf-no-op-library-provider"/>
</node>
</facet>
</root>
12 changes: 12 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Liferay v6.2 CE (Tomcat 7)"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="liferay.portlet" version="6.0"/>
<installed facet="jst.jsf" version="2.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.container
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
1 change: 1 addition & 0 deletions .tern-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}
6 changes: 6 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE project>

<project name="GuestDiscussion-portlet" basedir="." default="deploy">
<import file="../build-common-portlet.xml" />
</project>
3 changes: 3 additions & 0 deletions docroot/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

43 changes: 43 additions & 0 deletions docroot/WEB-INF/classes/Language_en_US.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
javax.portlet.title=Guest Discussion
javax.portlet.short-title=Guest Discussion
javax.portlet.keywords=Discussion
commentbox.user.empty=You need to be logged in to create a comment.
commentbox.guest.name=Your Name
commentbox.guest.email=Email
commentbox.editor.notclicked=Leave a comment...
commentbox.editor.save=Post
commentbox.editor.savedraft=Save Draft
commentbox.editor.clear=Clear
commentbox.editor.cancel=Cancel
commentbox.editor.submitting=Submitting
commentbox.comments.empty=There are no comments yet.
commentbox.comments.comment.likecount=Likes
commentbox.comments.comment.dislikecount=Dislikes
commentbox.comments.comment.like=Like
commentbox.comments.comment.dislike=Dislike
commentbox.comments.comment.spam=Spam
commentbox.comments.comment.edit=Edit
commentbox.comments.comment.delete=Delete
commentbox.comments.comment.reply=Reply
commentbox.comments.comment.deletedmsg=This comment was deleted by the Author
commentbox.comments.comment.new.single=Show new Comment
commentbox.comments.comment.new.multiple=Show {0} new Comments
commentbox.comments.comment.newreply.single=Show new reply
commentbox.comments.comment.newreplies.multiple=Show {0} new replies
commentbox.comments.comment.typinguser.single=One typing User...
commentbox.comments.comment.typinguser.multiple={0} typing Users...
Select-Topic=Select Title
Verify-Comments=Verify Comments
Discussion-Topic=Discussion Topic
New-Topic=New Topic
There-is-no-unverified-comment=There is no unverified comment.
There-is-no-title=There is no title.
Guest-Name=Guest Name
Are-you-sure-about-deleting-this-title=Are you sure about deleting this title?
Deleting-title=Deleting title
Are-you-sure-about-deleting-this-comment=Are you sure about deleting this comment?
Deleting-comment=Deleting comment
Reply-to=Reply to
inform-by-email=Notify you when we received a new reply to your comment
empty-title-message=The configuration of this place has not set yet. Please contact admin.
inform-by-email-help=if you choose this option, you will be notified by email when we receive a new answer to your comment
53 changes: 53 additions & 0 deletions docroot/WEB-INF/classes/Language_fa.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
javax.portlet.title=نظر مهمان
javax.portlet.short-title=نظر مهمان
javax.portlet.keywords=نظر
commentbox.user.empty=You need to be logged in to create a comment.
commentbox.guest.name=نام شما
commentbox.guest.email=ایمیل
commentbox.editor.notclicked=Leave a comment...
commentbox.editor.save=ارسال
commentbox.editor.savedraft=ذخیره پیش نویس
commentbox.editor.clear=پاک کردن
commentbox.editor.cancel=لغو
commentbox.editor.submitting=Submitting
commentbox.comments.empty=هیچ پیامی برای این موضوع ارسال نشده است.
commentbox.comments.comment.likecount=موافق ها
commentbox.comments.comment.dislikecount=مخالف ها
commentbox.comments.comment.like=موافق
commentbox.comments.comment.dislike=مخالف
commentbox.comments.comment.spam=Spam
commentbox.comments.comment.edit=Edit
commentbox.comments.comment.delete=Delete
commentbox.comments.comment.reply=پاسخ
commentbox.comments.comment.deletedmsg=This comment was deleted by the Author
commentbox.comments.comment.new.single=Show new Comment
commentbox.comments.comment.new.multiple=Show {0} new Comments
commentbox.comments.comment.newreply.single=Show new reply
commentbox.comments.comment.newreplies.multiple=Show {0} new replies
commentbox.comments.comment.typinguser.single=One typing User...
commentbox.comments.comment.typinguser.multiple={0} typing Users...
Select-Topic=انتخاب موضوع
Verify-Comments=تایید پیام ها
Discussion-Topic=موضوع بحث
New-Topic=موضوع جدید
Add=اضافه کردن
Please-enter--a-topic-first=لطفا ابتدا یک موضوع وارد کنید!
Choose=انتخاب کردن
Comment=پیام
There-is-no-unverified-comment=پیام تایید نشده ای وجود ندارد.
There-is-no-title=موضوعی وجود ندارد.
Guest-Name=نام مهمان
Verify=تایید
Unverify=عدم تایید
Delete=حذف
Titles=موضوع ها
Are-you-sure-about-deleting-this-title=آیا از حذف این موضوع اطمینان دارید؟
Deleting-title=حذف موضوع
Are-you-sure-about-deleting-this-comment=آیا از حذف این پیام اطمینان دارید؟
Deleting-comment=حذف پیام
Yes=بلی
No=خیر
Reply-to=پاسخ به
inform-by-email=اطلاع رسانی هنگام دریافت پاسخ جدید به پیام شما
empty-title-message=تنظیمات لازم برای این بخش انجام نشده است. لطفا با مدیر تماس حاصل نمایید.
inform-by-email-help=در صورت انتخاب این گزینه، در صورتی که برای نظرهای شما پاسخی درج شد، از طریق ایمیل به شما اطلاع‌رسانی می‌شود.
126 changes: 126 additions & 0 deletions docroot/WEB-INF/classes/META-INF/base-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0"?>

<beans
default-destroy-method="destroy"
default-init-method="afterPropertiesSet"
xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
>
<bean class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.spring.aop.ServiceBeanAutoProxyCreator" />
<constructor-arg>
<map>
<entry key="beanMatcher">
<bean class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.spring.aop.ServiceBeanMatcher" />
</bean>
</entry>
<entry key="methodInterceptor" value-ref="serviceAdvice" />
</map>
</constructor-arg>
</bean>
<bean class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.spring.bean.BeanReferenceAnnotationBeanPostProcessor" />
</bean>
<bean class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.spring.context.PortletBeanFactoryCleaner" />
</bean>
<bean id="portletClassLoader" class="com.liferay.portal.kernel.portlet.PortletClassLoaderUtil" factory-method="getClassLoader" />
<bean id="servletContextName" class="com.liferay.portal.kernel.portlet.PortletClassLoaderUtil" factory-method="getServletContextName" />
<bean id="basePersistence" abstract="true">
<property name="dataSource" ref="liferayDataSource" />
<property name="sessionFactory" ref="liferaySessionFactory" />
</bean>
<bean id="serviceAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.spring.aop.SkipAdvice" />
<constructor-arg>
<map>
<entry key="nextMethodInterceptor" value-ref="accessControlAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="accessControlAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.security.ac.AccessControlAdvice" />
<constructor-arg>
<map>
<entry key="accessControlAdvisor">
<bean class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.security.ac.AccessControlAdvisorImpl" />
</bean>
</entry>
<entry key="nextMethodInterceptor" value-ref="portalResiliencyAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="portalResiliencyAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.resiliency.service.PortalResiliencyAdvice" />
<constructor-arg>
<map>
<entry key="nextMethodInterceptor" value-ref="serviceMonitorAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="serviceMonitorAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.monitoring.statistics.service.ServiceMonitorAdvice" />
<constructor-arg>
<map>
<entry key="nextMethodInterceptor" value-ref="asyncAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="asyncAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.messaging.async.AsyncAdvice" />
<constructor-arg>
<map>
<entry key="defaultDestinationName" value="liferay/async_service" />
<entry key="nextMethodInterceptor" value-ref="threadLocalCacheAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="threadLocalCacheAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.cache.ThreadLocalCacheAdvice" />
<constructor-arg>
<map>
<entry key="nextMethodInterceptor" value-ref="bufferedIncrementAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="bufferedIncrementAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.increment.BufferedIncrementAdvice" />
<constructor-arg>
<map>
<entry key="nextMethodInterceptor" value-ref="indexableAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="indexableAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.search.IndexableAdvice" />
<constructor-arg>
<map>
<entry key="nextMethodInterceptor" value-ref="systemEventAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="systemEventAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.systemevent.SystemEventAdvice" />
<constructor-arg>
<map>
<entry key="nextMethodInterceptor" value-ref="transactionAdvice" />
</map>
</constructor-arg>
</bean>
<bean id="transactionAdvice" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.spring.transaction.TransactionInterceptorFactoryBean" />
<constructor-arg>
<map>
<entry key="platformTransactionManager" value-ref="liferayTransactionManager" />
<entry key="transactionAttributeSource" value-ref="transactionAttributeSource" />
</map>
</constructor-arg>
</bean>
<bean id="transactionAttributeSource" class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.spring.transaction.AnnotationTransactionAttributeSource" />
</bean>
</beans>
19 changes: 19 additions & 0 deletions docroot/WEB-INF/classes/META-INF/cluster-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>

<beans
default-destroy-method="destroy"
default-init-method="afterPropertiesSet"
xmlns="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"
>
<bean class="com.liferay.portal.kernel.spring.util.SpringFactoryUtil" factory-method="newBean">
<constructor-arg value="com.liferay.portal.cluster.ClusterableChainableMethodAdviceInjector" />
<constructor-arg>
<map>
<entry key="parentChainableMethodAdvice" value-ref="serviceAdvice" />
</map>
</constructor-arg>
</bean>
</beans>
Loading

0 comments on commit 8b5e9c6

Please sign in to comment.