diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/persistence/IProjectDAO.java b/Kieker.WebGUI/src/main/java/kieker/webgui/persistence/IProjectDAO.java index d65ce62f9a58c23a5867c53c40b8fef775ba09cf..97f634a599c1a2b25acd289e67ba61d122cf14ce 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/persistence/IProjectDAO.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/persistence/IProjectDAO.java @@ -153,7 +153,9 @@ public interface IProjectDAO { * @param username * The name of the user who saves the project. * @param analysisLayout - * The current layout of the analysis graph. It is valid if this parameter is null. + * The current layout of the analysis graph. It is valid if this parameter is null. In this case the stored layout will not be changed. + * @param cockpitLayout + * The current layout of the cockpit. It is valid if this parameter is null. In this case the stored layout will not be changed. * * @throws ProjectNotExistingException * If a project with the given name does not exist. @@ -286,7 +288,7 @@ public interface IProjectDAO { public abstract String getLastUser(final String projectName); /** - * Delivers the stored layout for the given project. + * Delivers the stored analysis layout for the given project. * * @param projectName * The name of the project. @@ -296,6 +298,14 @@ public interface IProjectDAO { @PreAuthorize("isAuthenticated()") public abstract String getAnalysisLayout(String projectName); + /** + * Delivers the stored cockpit layout for the given project. + * + * @param projectName + * The name of the project. + * + * @return The layout string as it is stored within the meta data. If this isn't available, null will be returned. + */ @PreAuthorize("isAuthenticated()") public abstract String getCockpitLayout(String projectName); diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/service/IProjectService.java b/Kieker.WebGUI/src/main/java/kieker/webgui/service/IProjectService.java index 2927a8e37fd38776737de59acc15aac584a241c9..f36a4281035d8548863898e0ae9fa5969fcd7c13 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/service/IProjectService.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/service/IProjectService.java @@ -163,7 +163,9 @@ public interface IProjectService { * @param username * The name of the user who saves the project. * @param analysisLayout - * The current layout of the analysis graph. It is valid if this parameter is null. + * The current layout of the analysis graph. It is valid if this parameter is null. In this case the stored layout will not be changed. + * @param cockpitLayout + * The current layout of the cockpit. It is valid if this parameter is null. In this case the stored layout will not be changed. * * @throws ProjectNotExistingException * If a project with the given name does not exist. @@ -388,7 +390,7 @@ public interface IProjectService { public boolean deleteLibrary(String projectName, String libName) throws IOException; /** - * Delivers the stored layout for the given project. + * Delivers the stored analysis layout for the given project. * * @param projectName * The name of the project. @@ -398,6 +400,14 @@ public interface IProjectService { @PreAuthorize("isAuthenticated()") public abstract String getAnalysisLayout(String projectName); + /** + * Delivers the stored cockpit layout for the given project. + * + * @param projectName + * The name of the project. + * + * @return The layout string as it is stored within the meta data. If this isn't available, null will be returned. + */ @PreAuthorize("isAuthenticated()") public abstract String getCockpitLayout(String projectName); }