Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- PR for JIRA GEOS-7619 - PR for JIRA GEOS-7619
- Loading branch information
afabiani
committed
Jul 20, 2016
1 parent
3801bf7
commit f29e165
Showing
11 changed files
with
274 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/web/core/src/main/java/org/geoserver/web/GeoServerUnlockablePage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* (c) 2016 Open Source Geospatial Foundation - all rights reserved | ||
* This code is licensed under the GPL 2.0 license, available at the root | ||
* application directory. | ||
*/ | ||
package org.geoserver.web; | ||
|
||
/** | ||
* Interface for GeoServer Pages which can simply ignore ConfigurationLock since they are safe. | ||
* | ||
* The developer *MUST* know what he is doing and manage the configuration read/write safely! | ||
* | ||
* @author Alessio Fabiani, GeoSolutions S.A.S. | ||
* | ||
*/ | ||
public interface GeoServerUnlockablePage { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
src/web/core/src/main/java/org/geoserver/web/ServerBusyPage.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html xmlns:wicket="http://wicket.apache.org/"> | ||
<body> | ||
<wicket:extend> | ||
<p wicket:id="serverBusyMessage">Server is currently busy. Please wait...</p> | ||
</wicket:extend> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
src/web/core/src/main/java/org/geoserver/web/ServerBusyPage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* (c) 2016 Open Source Geospatial Foundation - all rights reserved | ||
* This code is licensed under the GPL 2.0 license, available at the root | ||
* application directory. | ||
*/ | ||
package org.geoserver.web; | ||
|
||
import org.apache.wicket.markup.html.basic.Label; | ||
import org.apache.wicket.model.IModel; | ||
import org.apache.wicket.model.ResourceModel; | ||
|
||
/** | ||
* Displays a message suggesting the user to login or to elevate his privileges | ||
*/ | ||
public class ServerBusyPage extends GeoServerBasePage implements GeoServerUnlockablePage { | ||
|
||
public ServerBusyPage() { | ||
IModel model = new ResourceModel( "ServerBusyPage.serverBusyMessage" ); | ||
add(new Label("serverBusyMessage", model)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.