Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn F. Cook2011-08-02 20:05:39 +0000
committerRyan D. Brooks2011-08-02 20:05:39 +0000
commita75fa5b6a515a19ae050b72a1d53ce1abc8b40c8 (patch)
tree9954703c59c080aca59a1e8e00187561b598ea32 /plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java
parentd24f7321717fdd9b86a82724d03f5b0731720ca3 (diff)
downloadorg.eclipse.osee-a75fa5b6a515a19ae050b72a1d53ce1abc8b40c8.tar.gz
org.eclipse.osee-a75fa5b6a515a19ae050b72a1d53ce1abc8b40c8.tar.xz
org.eclipse.osee-a75fa5b6a515a19ae050b72a1d53ce1abc8b40c8.zip
refinement[bgz_350331]: Migrate PurgeAttributeType to server side command line
Deleted the BLAM: PurgeAttributeType. Deleted unreferenced method: AttributeTypeManager.purgeAttributeType(). Removed reference to deleted BLAM from org.eclipse.osee.framework.ui.skynet/plugin.xml.
Diffstat (limited to 'plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java')
-rw-r--r--plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java
index f92abb05258..2b73bdd9e6f 100644
--- a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java
+++ b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java
@@ -215,6 +215,23 @@ public class ServerAdminCommandProvider implements CommandProvider {
return Operations.executeAsJob(operation, false);
}
+ public Job _purge_attribute_type(CommandInterpreter ci) {
+ OperationLogger logger = new CommandInterpreterLogger(ci);
+
+ //to be purged
+ final Collection<String> attributeTypes = new ArrayList<String>();
+
+ for (String arg = ci.nextArgument(); Strings.isValid(arg); arg = ci.nextArgument()) {
+ attributeTypes.add(arg);
+ }
+
+ IOperation operation =
+ new PurgeAttributeType(Activator.getOseeDatabaseService(), logger,
+ attributeTypes.toArray(new String[attributeTypes.size()]));
+
+ return Operations.executeAsJob(operation, false);
+ }
+
@Override
public String getHelp() {
StringBuilder sb = new StringBuilder();
@@ -233,6 +250,7 @@ public class ServerAdminCommandProvider implements CommandProvider {
sb.append(" schedule <delay seconds> <iterations> <command> - runs the command after the specified delay and repeat given number of times\n");
sb.append(" purge_relation_type -force excute the operation, relationType1 ...\n");
sb.append(" parse_dir - converts the given file into a formatted CSV file\n");
+ sb.append(" purge_attribute_type <attr ids> - deletes specified rows from osee_artifact_type_attributes and osee_attribute_type\n");
sb.append(" prune_workspace [preserve_file_pattern] workspace_path purge_file_pattern - delete files that are found in workspace_path and whose filenames match purge_file_pattern. Any filename that matches the optional preserve_file_pattern are not deleted\n");
sb.append(" find_invalid_utf8 - finds invalid UTF8 chars in table osee_attribute\n");
sb.append(" consolidate_relations - consolidate rows of relations\n");

Back to the top