View Javadoc

1   /*
2    * Copyright (c) 2007 Creative Sphere Limited.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *
10   *   Creative Sphere - initial API and implementation
11   *
12   */
13  package org.abstracthorizon.mercury.accounts.spring;
14  
15  import org.abstracthorizon.mercury.common.SimpleStorageManagerBeanInfo;
16  
17  /**
18   * Bean info for {@link MaildirKeystoreStorageManager} class
19   *
20   * @author Daniel Sendula
21   */
22  public class MaildirKeystoreStorageManagerBeanInfo extends SimpleStorageManagerBeanInfo {
23  
24      /**
25       * Constructor
26       */
27      public MaildirKeystoreStorageManagerBeanInfo() {
28          super(MaildirKeystoreStorageManager.class);
29      }
30  
31      /**
32       * Constructor
33       * @param cls class
34       */
35      protected MaildirKeystoreStorageManagerBeanInfo(Class<?> cls) {
36          super(cls);
37      }
38  
39      /**
40       * Init method
41       */
42      public void init() {
43          super.init();
44  
45  
46          addProperty("mailboxesPath", "Path where accounts are created. Each account will be in separate directory", true, false);
47          addProperty("keyStoreFile", "Path to keystore file", true, false);
48          addProperty("keyStorePassword", "Keystore password", true, false);
49          addProperty("keyStoreType", "Keystore type", true, false);
50          addProperty("keyStoreProvider", "Keystore provider", true, false);
51  
52          char[] charArray = new char[0];
53  
54          addParameterDescriptions(
55                  addMethod("addMailbox", "Adds new mailbox", String.class, String.class, charArray.getClass()),
56                  "Mailbox name", "Domain name", "Password");
57          addParameterDescriptions(
58                  addMethod("changeMailboxPassword", "Changes mailbox password", String.class, String.class, charArray.getClass(), charArray.getClass()),
59                  "Mailbox name", "Domain name", "Old password", "New password");
60          addParameterDescriptions(
61                  addMethod("changeMailboxPassword", "Changes mailbox password (administrators method)", false, false, String.class, String.class, charArray.getClass()),
62                  "Mailbox name", "Domain name", "New password");
63  
64      }
65  
66  }