Commit 0fd6f264 authored by Greg Messner's avatar Greg Messner
Browse files

Added static getPathWithNamespace(String, String) method (#380).

parent 28e25f09
......@@ -646,4 +646,15 @@ public class Project {
public String toString() {
return (JacksonJson.toJsonString(this));
}
/**
* Formats a fully qualified project path based on the provided namespace and project path.
*
* @param namespace the namespace, either a user name or group name
* @param path the project path
* @return a fully qualified project path based on the provided namespace and project path
*/
public static final String getPathWithNammespace(String namespace, String path) {
return (namespace.trim() + "/" + path.trim());
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment