Author: bdaw
Date: 2011-09-12 19:43:07 -0400 (Mon, 12 Sep 2011)
New Revision: 7363
Modified:
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipTypeDAOImpl.java
portal/trunk/pom.xml
Log:
GTNPORTAL-2092 - Upgrade to JCR 1.14.0-GA
Modified:
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipTypeDAOImpl.java
===================================================================
---
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipTypeDAOImpl.java 2011-09-12
23:30:20 UTC (rev 7362)
+++
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipTypeDAOImpl.java 2011-09-12
23:43:07 UTC (rev 7363)
@@ -21,7 +21,7 @@
import org.exoplatform.commons.utils.ListenerStack;
import org.exoplatform.services.organization.MembershipType;
-import org.exoplatform.services.organization.MembershipTypeEventListener;
+//import org.exoplatform.services.organization.MembershipTypeEventListener;
import org.exoplatform.services.organization.MembershipTypeHandler;
import org.exoplatform.services.organization.impl.MembershipTypeImpl;
import org.gatein.common.logging.LogLevel;
@@ -70,25 +70,25 @@
this.orgService = orgService;
}
- public void addMembershipTypeEventListener(MembershipTypeEventListener listener)
- {
- if (listener == null)
- {
- throw new IllegalArgumentException("Listener cannot be null");
- }
+// public void addMembershipTypeEventListener(MembershipTypeEventListener listener)
+// {
+// if (listener == null)
+// {
+// throw new IllegalArgumentException("Listener cannot be null");
+// }
+//
+// listeners_.add(listener);
+// }
+//
+// public void removeMembershipTypeEventListener(MembershipTypeEventListener listener)
+// {
+// if (listener == null)
+// {
+// throw new IllegalArgumentException("Listener cannot be null");
+// }
+// listeners_.remove(listener);
+// }
- listeners_.add(listener);
- }
-
- public void removeMembershipTypeEventListener(MembershipTypeEventListener listener)
- {
- if (listener == null)
- {
- throw new IllegalArgumentException("Listener cannot be null");
- }
- listeners_.remove(listener);
- }
-
final public MembershipType createMembershipTypeInstance()
{
return new MembershipTypeImpl();
@@ -116,14 +116,14 @@
if (broadcast)
{
- preSave(mt, true);
+// preSave(mt, true);
}
getIdentitySession().getRoleManager().createRoleType(mt.getName());
if (broadcast)
{
- postSave(mt, true);
+// postSave(mt, true);
}
@@ -151,14 +151,14 @@
if (broadcast)
{
- preSave(mt, true);
+// preSave(mt, true);
}
updateMembershipType(mt);
if (broadcast)
{
- postSave(mt, true);
+// postSave(mt, true);
}
return mt;
@@ -223,14 +223,14 @@
{
if (broadcast)
{
- preDelete(mt);
+// preDelete(mt);
}
getIdentitySession().getRoleManager().removeRoleType(mt.getName());
if (broadcast)
{
- postDelete(mt);
+// postDelete(mt);
}
}
@@ -356,40 +356,40 @@
return;
}
- private void preSave(MembershipType membershipType, boolean isNew) throws Exception
- {
- for (int i = 0; i < listeners_.size(); i++)
- {
- MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
- listener.preSave(membershipType, isNew);
- }
- }
+// private void preSave(MembershipType membershipType, boolean isNew) throws Exception
+// {
+// for (int i = 0; i < listeners_.size(); i++)
+// {
+// MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
+// listener.preSave(membershipType, isNew);
+// }
+// }
+//
+// private void postSave(MembershipType membershipType, boolean isNew) throws
Exception
+// {
+// for (int i = 0; i < listeners_.size(); i++)
+// {
+// MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
+// listener.postSave(membershipType, isNew);
+// }
+// }
+//
+// private void preDelete(MembershipType membershipType) throws Exception
+// {
+// for (int i = 0; i < listeners_.size(); i++)
+// {
+// MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
+// listener.preDelete(membershipType);
+// }
+// }
+//
+// private void postDelete(MembershipType membershipType) throws Exception
+// {
+// for (int i = 0; i < listeners_.size(); i++)
+// {
+// MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
+// listener.postDelete(membershipType);
+// }
+// }
- private void postSave(MembershipType membershipType, boolean isNew) throws Exception
- {
- for (int i = 0; i < listeners_.size(); i++)
- {
- MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
- listener.postSave(membershipType, isNew);
- }
- }
-
- private void preDelete(MembershipType membershipType) throws Exception
- {
- for (int i = 0; i < listeners_.size(); i++)
- {
- MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
- listener.preDelete(membershipType);
- }
- }
-
- private void postDelete(MembershipType membershipType) throws Exception
- {
- for (int i = 0; i < listeners_.size(); i++)
- {
- MembershipTypeEventListener listener =
(MembershipTypeEventListener)listeners_.get(i);
- listener.postDelete(membershipType);
- }
- }
-
}
Modified: portal/trunk/pom.xml
===================================================================
--- portal/trunk/pom.xml 2011-09-12 23:30:20 UTC (rev 7362)
+++ portal/trunk/pom.xml 2011-09-12 23:43:07 UTC (rev 7363)
@@ -38,7 +38,7 @@
<properties>
<org.exoplatform.kernel.version>2.3.0-GA</org.exoplatform.kernel.version>
-
<org.exoplatform.core.version>2.4.0-GA-CP01</org.exoplatform.core.version>
+
<org.exoplatform.core.version>2.4.0-GA-CP02</org.exoplatform.core.version>
<org.exoplatform.ws.version>2.2.0-GA</org.exoplatform.ws.version>
<org.exoplatform.jcr.version>1.14.0-GA</org.exoplatform.jcr.version>
<org.shindig.version>2.0.2-Beta02</org.shindig.version>
Show replies by date