@Override public void setConfigAttributes(Object attributes) { if (attributes == null) { return; } super.setConfigAttributes(attributes); Map map = (Map) attributes; if (map.containsKey(URL)) { this.url = new HgUrlArgument((String) map.get(URL)); } } }
@Override public void setConfigAttributes(Object attributes) { if (attributes == null) { return; } super.setConfigAttributes(attributes); Map map = (Map) attributes; if (map.containsKey(BRANCH)) { String branchName = (String) map.get(BRANCH); this.branch = StringUtils.isBlank(branchName) ? DEFAULT_BRANCH: branchName; } if (map.containsKey(URL)) { this.url = new UrlArgument((String) map.get(URL)); } this.shallowClone = "true".equals(map.get(SHALLOW_CLONE)); }
@Override public void setConfigAttributes(Object attributes) { if (attributes == null) { return; } super.setConfigAttributes(attributes); Map map = (Map) attributes; if (map.containsKey(URL)) { this.url = new UrlArgument((String) map.get(URL)); } if (map.containsKey(USERNAME)) { this.userName = (String) map.get(USERNAME); } if (map.containsKey(PASSWORD_CHANGED) && "1".equals(map.get(PASSWORD_CHANGED))) { String passwordToSet = (String) map.get(PASSWORD); resetPassword(passwordToSet); } this.checkExternals = "true".equals(map.get(CHECK_EXTERNALS)); }
@Override public void setConfigAttributes(Object attributes) { if (attributes == null) { return; } super.setConfigAttributes(attributes); Map map = (Map) attributes; if (map.containsKey(URL)) { this.url = new UrlArgument((String) map.get(URL)); } if (map.containsKey(USERNAME)) { this.userName = (String) map.get(USERNAME); } if (map.containsKey(DOMAIN)) { this.domain = (String) map.get(DOMAIN); } if (map.containsKey(PASSWORD_CHANGED) && "1".equals(map.get(PASSWORD_CHANGED))) { String passwordToSet = (String) map.get(PASSWORD); resetPassword(passwordToSet); } if (map.containsKey(PROJECT_PATH)) { this.projectPath = (String) map.get(PROJECT_PATH); } }
@Override public void setConfigAttributes(Object attributes) { if (attributes == null) { return; } super.setConfigAttributes(attributes); Map map = (Map) attributes; if (map.containsKey(SERVER_AND_PORT)) { this.serverAndPort = (String) map.get(SERVER_AND_PORT); } if (map.containsKey(VIEW)) { setView((String) map.get(VIEW)); } if (map.containsKey(USERNAME)) { this.userName = (String) map.get(USERNAME); } if (map.containsKey(PASSWORD_CHANGED) && "1".equals(map.get(PASSWORD_CHANGED))) { String passwordToSet = (String) map.get(PASSWORD); resetPassword(passwordToSet); } setUseTickets("true".equals(map.get(USE_TICKETS))); }