summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntje Fuhrmann2012-10-22 07:37:04 (EDT)
committerStephan Born2012-10-22 07:37:04 (EDT)
commit3b0d4cc06f9d06b1ead6ed672cc97755669b613c (patch)
tree319e391e3e28c19784cec9a1c13cc41f4fcec13a
parent216144aa6ea62290b474c992e49a0317c8e9d527 (diff)
downloadorg.eclipse.stardust.engine-3b0d4cc06f9d06b1ead6ed672cc97755669b613c.zip
org.eclipse.stardust.engine-3b0d4cc06f9d06b1ead6ed672cc97755669b613c.tar.gz
org.eclipse.stardust.engine-3b0d4cc06f9d06b1ead6ed672cc97755669b613c.tar.bz2
Jira-ID: CRNT-26760
Sysconsole command auditTrail dropPartition does not require password. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/engine@60216 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/pojo/AuditTrailPartitionManager.java2
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/AlterAuditTrailCommand.java2
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/SchemaHelper.java3
3 files changed, 4 insertions, 3 deletions
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/pojo/AuditTrailPartitionManager.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/pojo/AuditTrailPartitionManager.java
index b95697a..dd1e542 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/pojo/AuditTrailPartitionManager.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/pojo/AuditTrailPartitionManager.java
@@ -31,7 +31,7 @@ public class AuditTrailPartitionManager
public static void dropAuditTrailPartition(String partitionId, String password)
{
Utils.initCarnotEngine(partitionId);
- SchemaHelper.alterAuditTrailDropPartition(partitionId);
+ SchemaHelper.alterAuditTrailDropPartition(partitionId, password);
}
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/AlterAuditTrailCommand.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/AlterAuditTrailCommand.java
index e5983a8..2c530f2 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/AlterAuditTrailCommand.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/AlterAuditTrailCommand.java
@@ -301,7 +301,7 @@ public class AlterAuditTrailCommand extends AuditTrailCommand
String partitionId = (String) options.get(PARTITION_DROP);
Utils.initCarnotEngine(partitionId);
- SchemaHelper.alterAuditTrailDropPartition(partitionId);
+ SchemaHelper.alterAuditTrailDropPartition(partitionId, password);
print("Deletion of partition and contained data from AuditTrail done.");
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/SchemaHelper.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/SchemaHelper.java
index 46c243a..afee3fa 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/SchemaHelper.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/runtime/beans/SchemaHelper.java
@@ -1365,11 +1365,12 @@ public class SchemaHelper
}
}
- public static void alterAuditTrailDropPartition(String partitionId)
+ public static void alterAuditTrailDropPartition(String partitionId, String password)
{
IAuditTrailPartition partition = AuditTrailPartitionBean.findById(partitionId);
Session session = (Session) SessionFactory
.getSession(SessionFactory.AUDIT_TRAIL);
+ verifySysopPassword(session, password);
// Delete for all models in given partition the runtime data (process instances, ...).
Iterator iter = session.getIterator(ModelPersistorBean.class, QueryExtension