@@ -0,0 +1,1232 @@
+/*%0A * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.%0A *%0A * Copyright (c) 2014, Gluu%0A */%0A%0Apackage org.xdi.model;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.gluu.site.ldap.persistence.annotation.LdapEnum;%0A%0A/**%0A * Specify type of script location%0A * %0A * @author Yuriy Movchan Date: 10/07/2015%0A */%0Apublic enum ScriptLocationType implements LdapEnum %7B%0A%0A%09LDAP(%22ldap%22, %22Ldap%22), FILE(%22file%22, %22File%22);%0A%0A%09private String value;%0A%09private String displayName;%0A%0A%09private static Map%3CString, ScriptLocationType%3E mapByValues = new HashMap%3CString, ScriptLocationType%3E();%0A%0A%09static %7B%0A%09%09for (ScriptLocationType enumType : values()) %7B%0A%09%09%09mapByValues.put(enumType.getValue(), enumType);%0A%09%09%7D%0A%09%7D%0A%0A%09private ScriptLocationType(String value, String displayName) %7B%0A%09%09this.value = value;%0A%09%09this.displayName = displayName;%0A%09%7D%0A%0A%09public String getValue() %7B%0A%09%09return value;%0A%09%7D%0A%0A%09public String getDisplayName() %7B%0A%09%09return displayName;%0A%09%7D%0A%0A%09public static ScriptLocationType getByValue(String value) %7B%0A%09%09return mapByValues.get(value);%0A%09%7D%0A%0A%09public Enum%3C? extends LdapEnum%3E resolveByValue(String value) %7B%0A%09%09return getByValue(value);%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return value;%0A%09%7D%0A%0A%7D%0A

Add scrip location type