PwmSettingSyntax.java 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Password Management Servlets (PWM)
  3. * http://code.google.com/p/pwm/
  4. *
  5. * Copyright (c) 2006-2009 Novell, Inc.
  6. * Copyright (c) 2009-2015 The PWM Project
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. package password.pwm.config;
  23. import password.pwm.config.value.*;
  24. public enum PwmSettingSyntax {
  25. STRING(StringValue.factory()),
  26. USER_PERMISSION(UserPermissionValue.factory()),
  27. STRING_ARRAY(StringArrayValue.factory()),
  28. TEXT_AREA(StringValue.factory()),
  29. LOCALIZED_STRING(LocalizedStringValue.factory()),
  30. LOCALIZED_TEXT_AREA(LocalizedStringValue.factory()),
  31. LOCALIZED_STRING_ARRAY(LocalizedStringArrayValue.factory()),
  32. PASSWORD(PasswordValue.factory()),
  33. NUMERIC(NumericValue.factory()),
  34. DURATION(NumericValue.factory()),
  35. BOOLEAN(BooleanValue.factory()),
  36. SELECT(StringValue.factory()),
  37. FORM(FormValue.factory()),
  38. ACTION(ActionValue.factory()),
  39. EMAIL(EmailValue.factory()),
  40. X509CERT(X509CertificateValue.factory()),
  41. CHALLENGE(ChallengeValue.factory()),
  42. OPTIONLIST(OptionListValue.factory()),
  43. FILE(FileValue.factory()),
  44. PROFILE(StringArrayValue.factory()),
  45. VERIFICATION_METHOD(VerificationMethodValue.factory()),
  46. ;
  47. private StoredValue.StoredValueFactory storedValueImpl;
  48. PwmSettingSyntax(StoredValue.StoredValueFactory storedValueImpl) {
  49. this.storedValueImpl = storedValueImpl;
  50. }
  51. public StoredValue.StoredValueFactory getStoredValueImpl() {
  52. return storedValueImpl;
  53. }
  54. }