[seam-commits] Seam SVN: r8439 - in branches/Seam_2_0_FP: src/main/org/jboss/seam/mail and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Jul 8 04:09:08 EDT 2008


Author: manaRH
Date: 2008-07-08 04:09:08 -0400 (Tue, 08 Jul 2008)
New Revision: 8439

Removed:
   branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/Meldware.java
   branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/MeldwareUser.java
Modified:
   branches/Seam_2_0_FP/build/core.pom.xml
   branches/Seam_2_0_FP/build/root.pom.xml
Log:
SEAMFP-10

Modified: branches/Seam_2_0_FP/build/core.pom.xml
===================================================================
--- branches/Seam_2_0_FP/build/core.pom.xml	2008-07-08 04:55:59 UTC (rev 8438)
+++ branches/Seam_2_0_FP/build/core.pom.xml	2008-07-08 08:09:08 UTC (rev 8439)
@@ -203,18 +203,6 @@
     </dependency>
 
     <dependency>
-      <groupId>org.buni.meldware</groupId>
-      <artifactId>meldware-mailjmx</artifactId>
-      <optional>true</optional>
-    </dependency>
-
-    <dependency>
-      <groupId>org.buni.meldware</groupId>
-      <artifactId>meldware-mailapi</artifactId>
-      <optional>true</optional>
-    </dependency>
-
-    <dependency>
       <groupId>org.drools</groupId>
       <artifactId>drools-core</artifactId>
       <optional>true</optional>

Modified: branches/Seam_2_0_FP/build/root.pom.xml
===================================================================
--- branches/Seam_2_0_FP/build/root.pom.xml	2008-07-08 04:55:59 UTC (rev 8438)
+++ branches/Seam_2_0_FP/build/root.pom.xml	2008-07-08 08:09:08 UTC (rev 8439)
@@ -563,18 +563,6 @@
       </dependency>
 
       <dependency>
-        <groupId>org.buni.meldware</groupId>
-        <artifactId>meldware-mailjmx</artifactId>
-        <version>1.0M8</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.buni.meldware</groupId>
-        <artifactId>meldware-mailapi</artifactId>
-        <version>1.0M8</version>
-      </dependency>
-
-      <dependency>
         <groupId>org.drools</groupId>
         <artifactId>drools-core</artifactId>
         <version>${version.drools}</version>

Deleted: branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/Meldware.java
===================================================================
--- branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/Meldware.java	2008-07-08 04:55:59 UTC (rev 8438)
+++ branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/Meldware.java	2008-07-08 08:09:08 UTC (rev 8439)
@@ -1,79 +0,0 @@
-package org.jboss.seam.mail;
-
-import static org.jboss.seam.ScopeType.APPLICATION;
-import static org.jboss.seam.annotations.Install.BUILT_IN;
-
-import java.util.List;
-
-import org.buni.meldware.mail.management.AdminTool;
-import org.buni.meldware.mail.util.MMJMXUtil;
-import org.jboss.seam.annotations.Create;
-import org.jboss.seam.annotations.Install;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.Startup;
-import org.jboss.seam.annotations.intercept.BypassInterceptors;
-import org.jboss.seam.log.Log;
-import org.jboss.seam.log.Logging;
-
-/**
- * Creates meldware users, mailboxes and aliases
- *
- */
- at Name("org.jboss.seam.mail.meldware")
- at Startup
- at Scope(APPLICATION)
- at BypassInterceptors
- at Install(precedence=BUILT_IN, classDependencies="org.buni.meldware.mail.mailbox.Mailbox", value=false)
-public class Meldware
-{
-   
-   private List<MeldwareUser> users;
-   
-   private List<String> domains;
-   
-   private Log log = Logging.getLog(Meldware.class);
-   
-   @Create
-   public void create()
-   {
-      // TODO Support domain creation as well.  Currently they are written out to file.
-      
-         log.info("Creating users and mailboxes");
-         //MailboxService ms = MMJMXUtil.getMBean("meldware.mail:type=MailboxManager,name=MailboxManager", MailboxService.class);
-         AdminTool at = MMJMXUtil.getMBean("meldware.mail:type=MailServices,name=AdminTool", AdminTool.class);
-         
-         for (MeldwareUser meldwareUser : getUsers())
-         {
-            at.createUser(meldwareUser.getUsername(), meldwareUser.getPassword(), meldwareUser.getRoles());
-            // TODO This won't work on AS 4.2
-            /*Mailbox mbox = ms.createMailbox(meldwareUser.getUsername());
-            for (String alias : meldwareUser.getAliases())
-            {
-               ms.createAlias(mbox.getId(), alias);
-            }*/
-            log.info("Created #0 #1 #2", meldwareUser.isAdministrator() ? "administrator" : "user", meldwareUser.getUsername(), meldwareUser.getAliases() == null || meldwareUser.getAliases().size() == 0 ? "" : "with aliases " + meldwareUser.getAliases());
-         }
-      }
-   
-   public List<MeldwareUser> getUsers()
-   {
-      return users;
-   }
-   
-   public void setUsers(List<MeldwareUser> users)
-   {
-      this.users = users;
-   }
-   
-   public List<String> getDomains()
-   {
-      return domains;
-   }
-   
-   public void setDomains(List<String> domains)
-   {
-      this.domains = domains;
-   }
-
-}

Deleted: branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/MeldwareUser.java
===================================================================
--- branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/MeldwareUser.java	2008-07-08 04:55:59 UTC (rev 8438)
+++ branches/Seam_2_0_FP/src/main/org/jboss/seam/mail/MeldwareUser.java	2008-07-08 08:09:08 UTC (rev 8439)
@@ -1,84 +0,0 @@
-package org.jboss.seam.mail;
-
-import static org.jboss.seam.ScopeType.APPLICATION;
-import static org.jboss.seam.annotations.Install.BUILT_IN;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.jboss.seam.annotations.Install;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.intercept.BypassInterceptors;
-
- at Name("org.jboss.seam.mail.meldwareUser")
- at Scope(APPLICATION)
- at BypassInterceptors
- at Install(precedence=BUILT_IN, dependencies="org.jboss.seam.mail.meldware", value=false)
-public class MeldwareUser
-{
-   
-   private String username;
-   private String password;
-   
-   private boolean administrator;
-   
-   private List<String> aliases = new ArrayList<String>();
-
-   public boolean isAdministrator()
-   {
-      return administrator;
-   }
-
-   public void setAdministrator(boolean admin)
-   {
-      this.administrator = admin;
-   }
-
-   public List<String> getAliases()
-   {
-      return aliases;
-   }
-
-   public void setAliases(List<String> aliases)
-   {
-      this.aliases = aliases;
-   }
-
-   public String getPassword()
-   {
-      return password;
-   }
-
-   public void setPassword(String password)
-   {
-      this.password = password;
-   }
-
-   public String getUsername()
-   {
-      return username;
-   }
-
-   public void setUsername(String username)
-   {
-      this.username = username;
-   }
-   
-   public List<String> getRoles()
-   {
-      return getRoles(this);
-   }
-   
-   private static List<String> getRoles(MeldwareUser user)
-   {
-      List<String> roles = new ArrayList<String>();
-      roles.add("calendaruser");
-      if (user.isAdministrator())
-      {
-         roles.add("adminuser");
-      }
-      return roles;
-   }
-
-}




More information about the seam-commits mailing list