mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-08 14:08:33 +00:00
complete mapping for a project info
This commit is contained in:
parent
10d4792ad0
commit
00df85a93a
3 changed files with 20 additions and 2 deletions
2
TODO
2
TODO
|
@ -16,7 +16,7 @@ http://rundeck.org/1.2.1/RunDeck-Guide.html#rundeck-api
|
||||||
12. Running Adhoc Commands - OK
|
12. Running Adhoc Commands - OK
|
||||||
13. Running Adhoc Scripts - TODO
|
13. Running Adhoc Scripts - TODO
|
||||||
14. Listing Projects - OK
|
14. Listing Projects - OK
|
||||||
15. Getting Project Info - TODO
|
15. Getting Project Info - OK
|
||||||
16. Listing History - TODO
|
16. Listing History - TODO
|
||||||
17. Creating History Event Reports - TODO
|
17. Creating History Event Reports - TODO
|
||||||
18. Listing Resources - OK (XML only, YAML not supported yet)
|
18. Listing Resources - OK (XML only, YAML not supported yet)
|
||||||
|
|
|
@ -30,6 +30,8 @@ public class RundeckProject implements Serializable {
|
||||||
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
|
private String resourceModelProviderUrl;
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -46,9 +48,18 @@ public class RundeckProject implements Serializable {
|
||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getResourceModelProviderUrl() {
|
||||||
|
return resourceModelProviderUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResourceModelProviderUrl(String resourceModelProviderUrl) {
|
||||||
|
this.resourceModelProviderUrl = resourceModelProviderUrl;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "RundeckProject [name=" + name + ", description=" + description + "]";
|
return "RundeckProject [name=" + name + ", description=" + description + ", resourceModelProviderUrl="
|
||||||
|
+ resourceModelProviderUrl + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -57,6 +68,7 @@ public class RundeckProject implements Serializable {
|
||||||
int result = 1;
|
int result = 1;
|
||||||
result = prime * result + ((description == null) ? 0 : description.hashCode());
|
result = prime * result + ((description == null) ? 0 : description.hashCode());
|
||||||
result = prime * result + ((name == null) ? 0 : name.hashCode());
|
result = prime * result + ((name == null) ? 0 : name.hashCode());
|
||||||
|
result = prime * result + ((resourceModelProviderUrl == null) ? 0 : resourceModelProviderUrl.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +91,11 @@ public class RundeckProject implements Serializable {
|
||||||
return false;
|
return false;
|
||||||
} else if (!name.equals(other.name))
|
} else if (!name.equals(other.name))
|
||||||
return false;
|
return false;
|
||||||
|
if (resourceModelProviderUrl == null) {
|
||||||
|
if (other.resourceModelProviderUrl != null)
|
||||||
|
return false;
|
||||||
|
} else if (!resourceModelProviderUrl.equals(other.resourceModelProviderUrl))
|
||||||
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@ public class ProjectParser implements XmlNodeParser<RundeckProject> {
|
||||||
|
|
||||||
project.setName(StringUtils.trimToNull(projectNode.valueOf("name")));
|
project.setName(StringUtils.trimToNull(projectNode.valueOf("name")));
|
||||||
project.setDescription(StringUtils.trimToNull(projectNode.valueOf("description")));
|
project.setDescription(StringUtils.trimToNull(projectNode.valueOf("description")));
|
||||||
|
project.setResourceModelProviderUrl(StringUtils.trimToNull(projectNode.valueOf("resources/providerURL")));
|
||||||
|
|
||||||
return project;
|
return project;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue