@Override public List<PluginProperty> getDefaultConfiguration() { PluginProperty url = new PluginProperty(URL_PROPERTY, STRING, "http://localhost:8080"); PluginProperty login = new PluginProperty(LOGIN_PROPERTY, STRING, "user"); PluginProperty password = new PluginProperty(PASSWORD_PROPERTY, STRING, "1234"); return Arrays.asList(url, login, password); }
@Override public List<PluginProperty> getDefaultConfiguration() { PluginProperty width = new PluginProperty(WIDTH_PROPERTY, INT, "100"); PluginProperty height = new PluginProperty(HEIGHT_PROPERTY, INT, "50"); PluginProperty length = new PluginProperty(LENGTH_PROPERTY, INT, "4"); PluginProperty possibleSymbols = new PluginProperty(POSSIBLE_SYMBOLS_PROPERTY, STRING, "0123456789"); return Arrays.asList(width, height, length, possibleSymbols); }
@Override public List<PluginProperty> getDefaultConfiguration() { PluginProperty url = new PluginProperty("URL", STRING, "http://localhost:1234"); return Arrays.asList(url); }
/** * {@inheritDoc} */ @Override public List<PluginProperty> getConfiguration() { PluginProperty orderProperty = new PluginProperty(ORDER_PROPERTY, PluginProperty.Type.INT, String.valueOf(order)); orderProperty.setHint(ORDER_HINT); return Arrays.asList(orderProperty); }
/** * {@inheritDoc} */ @Override public List<PluginProperty> getDefaultConfiguration() { PluginProperty orderProperty = new PluginProperty(ORDER_PROPERTY, PluginProperty.Type.INT, String.valueOf(DEFAULT_ORDER_VALUE)); orderProperty.setHint(ORDER_HINT); return Arrays.asList(orderProperty); }
public static PluginProperty getDefaultPluginConfigurationProperty() { PluginProperty property = new PluginProperty("Property", PluginProperty.Type.BOOLEAN, "true"); PluginConfiguration configuration = new PluginConfiguration("Default name", true, Arrays.asList(property)); property.setPluginConfiguration(configuration); persist(configuration); return property; }