/*
 * Copyright 2011 DTO Solutions, Inc. (http://dtosolutions.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package com.dtolabs.rundeck.core.plugins.configuration;

/**
 * Constants that govern the different ways a {@link Property.Type.String} can be rendered.
 * 
 * @author Kim Ho <a href="mailto:kim.ho@salesforce.com">kim.ho@salesforce.com</a>
 */
public class StringRenderingConstants {
    
    public static final String SELECTION_ACCESSOR_KEY = "selectionAccessor";
    public static final String STORAGE_PATH_ROOT_KEY = "storage-path-root";
    public static final String STORAGE_FILE_META_FILTER_KEY = "storage-file-meta-filter";
    /**
     * Rendering option key to set the display type of a String property
     */
    public static final String DISPLAY_TYPE_KEY = "displayType";

    /**
     * Values that can be specified for a key of {@link #DISPLAY_TYPE_KEY}
     */
    public enum DisplayType {
        SINGLE_LINE,
        MULTI_LINE,
        PASSWORD
    }
    public enum SelectionAccessor{
        STORAGE_PATH,
    }
}

@@ -759,17 +759,17 @@
 rty.Type
-.
+#
 String%7D 
@@ -994,24 +994,97 @@
 nAccessor%22;%0A
+    public static final String VALUE_CONVERSION_KEY = %22valueConversion%22;%0A
     public s
@@ -1574,71 +1574,492 @@
 WORD
-%0A    %7D%0A    public enum SelectionAccessor%7B%0A        STORAGE_PATH,
+;%0A        public boolean equalsOrString(Object o) %7B%0A            return this == o %7C%7C toString().equals(o);%0A        %7D%0A    %7D%0A    public enum SelectionAccessor%7B%0A        STORAGE_PATH;%0A%0A        public boolean equalsOrString(Object o) %7B%0A            return this == o %7C%7C toString().equals(o);%0A        %7D%0A    %7D%0A    public enum ValueConversion%7B%0A        STORAGE_PATH_AUTOMATIC_READ;%0A%0A        public boolean equalsOrString(Object o) %7B%0A            return this == o %7C%7C toString().equals(o);%0A        %7D
 %0A   

Add valueConversion renderingOption for auto loading storage data