Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-06-10 07:24:23 +0000
committerEike Stepper2012-06-10 07:24:23 +0000
commit0aedfb4a82e6203143073c560576b33eb74641dd (patch)
treea34511cc506cc9dfead0d53f036b0bdcd7ccfeeb
parentea9a1eba572531816188cc5d02b6d90b97bb5234 (diff)
downloadcdo-0aedfb4a82e6203143073c560576b33eb74641dd.tar.gz
cdo-0aedfb4a82e6203143073c560576b33eb74641dd.tar.xz
cdo-0aedfb4a82e6203143073c560576b33eb74641dd.zip
[380629] Design a default Security model
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380629
-rw-r--r--plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java b/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java
index 3b9c012cdf..854049bdfc 100644
--- a/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java
+++ b/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java
@@ -187,6 +187,7 @@ public class SecurityManager extends Lifecycle implements InternalSecurityManage
public void addCommitHandler(CommitHandler handler)
{
+ checkInactive();
synchronized (commitHandlers)
{
if (!commitHandlers.contains(handler))
@@ -198,6 +199,7 @@ public class SecurityManager extends Lifecycle implements InternalSecurityManage
public void removeCommitHandler(CommitHandler handler)
{
+ checkInactive();
synchronized (commitHandlers)
{
commitHandlers.remove(handler);

Back to the top