X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fproject%2FProject.java;h=c54f211de9de171636fc569c88889c1a14261561;hb=1b87930e43eb7d14068a21ed0b488f28cc6ce49b;hp=b6c514b8e5964aa6fb6235921d110505c18f50df;hpb=3d68925f513f8e31eb34dcb1fc11e70faee847e7;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/project/Project.java b/src/net/pterodactylus/jsite/project/Project.java index b6c514b..c54f211 100644 --- a/src/net/pterodactylus/jsite/project/Project.java +++ b/src/net/pterodactylus/jsite/project/Project.java @@ -77,6 +77,28 @@ public class Project extends AbstractBean { private List virtualEntries = new ArrayList(); /** + * Creates a new project. + */ + public Project() { + /* do nothing. */ + } + + /** + * Clones the given project. + * + * @param project + */ + Project(Project project) { + this.name = project.name; + this.description = project.description; + this.publicKey = project.publicKey; + this.privateKey = project.privateKey; + this.basePath = project.basePath; + this.basePathEntries.addAll(project.basePathEntries); + this.virtualEntries.addAll(project.virtualEntries); + } + + /** * Returns the internal ID. * * @return The internal ID